Skip to content

Sync Unreachable from Web app (self-hosted) #1192

Description

@sergio-ns

Describe the issue
I have a fully self-hosted Standard Notes installation via docker containers (sync, web and filesafe although I can't get this last one to work with my WebDav but this is a different story).

It currently works perfectly from mobile (both Android and iOS) and Windows desktop: all notes get synchronized nicely across all devices .

But I can't get the web app to work (actually it did work initially but I've changed some components in the deployment, added File Safe and now it doesn't, so, let's assume it never worked).

To Reproduce
Steps to reproduce the behavior:

  1. Open the browser to the domain where the standard notes web server is running (e.g. https://sn.mydomain.com)
  2. The application page opens
  3. Click on the "Account" button located at the bottom left: the sign-in / registration panel opens
  4. Click on Sign-in
  5. Enter the credentials (email, password)
  6. Click on Advanced Options
  7. Enter the Sync Server Domain name (e.g. https://sn_sync.mydomain.com)
  8. Click on "Sign In"
  9. The message "Generating Login Keys" appears for a brief moment
  10. The login panel closes
  11. The "Account" button label at the bottom left turns red
  12. By clicking on that button again, the login panel opens and shows a red text box saying: Sync Unreachable, Hmmm...we can't seem to sync your account. The reason: Unknown Error". The "Syncing" icon spins forever

Expected behavior
After step 8 the login panel should close and the notes should start synchronizing.
I just performed the same procedure in the Windows desktop app and it went flawlessly.

Screenshots
See here

Desktop (please complete the following information):

  • Windows 10
  • Tried with Firefox, Chrome and Edge

Additional context
standard notes web is deployed in a docker container with the following command:
docker run -d -p 3001:3001 --name "standard_notes_web" --env-file=standard_notes_web_env --network=mynetwork --restart always standardnotes/web:stable
The env file used by this container is:

RAILS_ENV=production
PORT=3001
WEB_CONCURRENCY=0
RAILS_LOG_TO_STDOUT=true
RAILS_SERVE_STATIC_FILES=true
SECRET_KEY_BASE=[my secret key]
APP_HOST=https://sn.mydomain.com

EXTENSIONS_MANAGER_LOCATION=extensions/extensions-manager/dist/index.html
BATCH_MANAGER_LOCATION=extensions/batch-manager/dist/index.min.html
SF_DEFAULT_SERVER=https://sn_sync.mydomain.com

# Datadog
DATADOG_ENABLED=false

Question on the web server SECRET_KEY_BASE variable: must this match the namesake env variable of the syncing server?

Thanks
S.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions