Git Product home page Git Product logo

Comments (9)

tobegit3hub avatar tobegit3hub commented on May 25, 2024

And I have this issue.

➜ sudo docker run --name some-sentry --link some-mysql:mysql -d sentry
e888fcf2976a9ce90f80b28bb4c822c07f7e0235e3980e2a33ea7ddeb0ff18ce                
➜ sudo docker logs some-sentry
Traceback (most recent call last):
  File "/usr/local/bin/sentry", line 9, in <module>
    load_entry_point('sentry==6.4.4', 'console_scripts', 'sentry')()
  File "/usr/local/lib/python2.7/site-packages/sentry/utils/runner.py", line 310, in main
    initializer=initialize_app,
  File "/usr/local/lib/python2.7/site-packages/logan/runner.py", line 167, in run_app
    configure_app(config_path=config_path, **kwargs)
  File "/usr/local/lib/python2.7/site-packages/logan/runner.py", line 89, in configure_app
    raise ValueError("Configuration file does not exist at %r" % (config_path,))
ValueError: Configuration file does not exist at '/.sentry/sentry.conf.py'

from docker-sentry.

tianon avatar tianon commented on May 25, 2024

That second issue is indicative of having a Docker version that's too old; I'd guess you're running 1.0, but definitely something lower than 1.3.

That's related to the first issue as well. When Docker starts your sentry container, it's not setting HOME properly (which was added in 1.3+; you could also try adding it manually via -e HOME=/root), and thus Sentry can't find the default configuration file (which is where we figure out the connection details for the database; see https://github.com/docker-library/sentry/blob/08e7bf99eee1e7a879422fc474b73a6fafecbc31/sentry.conf.py).

from docker-sentry.

tianon avatar tianon commented on May 25, 2024

Err, sorry, that should've been -e HOME=/home/user.

from docker-sentry.

tianon avatar tianon commented on May 25, 2024

(see https://github.com/docker-library/sentry/blob/08e7bf99eee1e7a879422fc474b73a6fafecbc31/Dockerfile#L20)

from docker-sentry.

tobegit3hub avatar tobegit3hub commented on May 25, 2024

Thanks @tianon for replying. I hope the readme could give more processes in detail so that everyone could run it step by step 😃

from docker-sentry.

tianon avatar tianon commented on May 25, 2024
$ docker run -d --name some-postgres postgres
da03aa22c60d48228a30cb43cb13c1ebe5a61e04eee3833cc5073efdd386c3d2
$ docker run -d --name some-sentry -p 9000:9000 --link some-postgres:postgres sentry
000e21d383d61b1243750acc034a9585e5677ffcf4411ed90b9ae1701987daab
$ docker logs -f some-sentry
... wait for:
2015-01-06 21:01:50 [1] [INFO] Listening at: http://0.0.0.0:9000 (1)
^C
$ curl -sSL 'http://localhost:9000'



<!DOCTYPE html>
<html lang="en">
    <head>
....

from docker-sentry.

tobegit3hub avatar tobegit3hub commented on May 25, 2024

It works for me with docker 1.4 😃

The username and password that sentry uses are the default username and password of mysql or postgres containers, right?

from docker-sentry.

tobegit3hub avatar tobegit3hub commented on May 25, 2024

I have another question about the default username and password. The document is pool and I can find out them after reading the source files.

from docker-sentry.

tobegit3hub avatar tobegit3hub commented on May 25, 2024

I can reset the username and password by following the tutorial. Thanks again.

from docker-sentry.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.