Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Self-Hosted problem register #565

quanticware opened this issue May 28, 2019 · 3 comments


None yet
2 participants
Copy link

commented May 28, 2019

I installed self-hosted server from docker.
It's works, when I put ip address:, I have the message:

Hi! You're not supposed to be here.

But when I try to register with web app, app or other, (I fill in advanced server I have this message:

A server error occurred while trying to register. Please try again.

I try to find something in logs with docker logs, but only see the nginx access log.

What I can do?


This comment has been minimized.

Copy link

commented May 28, 2019

You'd need to check the app logs, located in the main application root directory under logs/production.log. That would probably tell you something useful.

Note also that accessing your server via IP address will only work with the desktop app. If you're using the web app at, since that page is loaded with HTTPS, your server will also need a valid HTTPS certificate.


This comment has been minimized.

Copy link

commented May 29, 2019

Thanks, I found this:

2019-05-29 08:25:30.464 [INFO ] Started POST "/auth" for **FILTERED** at 2019-05-29 08:25:30 +0000 (pid:10)
2019-05-29 08:25:30.464 [INFO ] Processing by Api::AuthController#register as */* (pid:10)
2019-05-29 08:25:30.464 [INFO ] Parameters: {"password"=>"[FILTERED]", "email"=>"xxxxxxxxxx", "pw_nonce"=>"28d2345f7f708a838a42f234b3da87d502bcb186b529ffd84c498da3469aa270", "pw_cost"=>110000, "identifier"=>"xxxxxxxxxx", "version"=>"003", "auth"=>{"password"=>"[FILTERED]", "email"=>"xxxxxxxxxx", "pw_nonce"=>"28d2345f7f708a838a42f234b3da87d502bcb186b529ffd84c498da3469aa270", "pw_cost"=>110000, "identifier"=>"xxxxxxxxxx", "version"=>"003"}} (pid:10)
2019-05-29 08:25:30.465 [WARN ] Can't verify CSRF token authenticity. (pid:10)
2019-05-29 08:25:30.465 [INFO ] Completed 500 Internal Server Error in 1ms (pid:10)
2019-05-29 08:25:30.466 [FATAL]  (pid:10)
2019-05-29 08:25:30.466 [FATAL] Mysql2::Error (Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)): (pid:10)
2019-05-29 08:25:30.466 [FATAL]  (pid:10)
2019-05-29 08:25:30.466 [FATAL] app/controllers/api/auth_controller.rb:73:in `register' (pid:10)

I try to found, but not understand (I begin in docker world):

CONTAINER ID        IMAGE               COMMAND                  CREATED             STATUS              PORTS                    NAMES
cd6da4e6e627        rubyserver_web      "nginx -g 'daemon of…"   3 days ago          Up 3 days >80/tcp       rubyserver_web_1
28a4aa4188ca        rubyserver_app      "./docker/entrypoint…"   3 days ago          Up 3 days >3000/tcp   rubyserver_app_1
bea1d0e56efe        mysql:latest        "docker-entrypoint.s…"   3 days ago          Up 3 days           3306/tcp, 33060/tcp      rubyserver_db_1

It seems to can't connect to db.


SECRET_KEY_BASE=use "bundle exec rake secret"

DB_DATABASE: standardfile

My .env.db.production:

What I can change to make more beautiful world? :D


This comment has been minimized.

Copy link

commented May 29, 2019

See if this helps: standardfile/ruby-server#68

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.