syncing-server
syncing-server copied to clipboard
Installing on Pi Not Working
Hello! I have been playing around with setting up Standard Notes and, maybe, paying for it for the extensions if it worked out. As the moile/desktop apps look great!
I have been trying to setup this via Docker Compose on my Pi but its not working. From the looks of things, it appears something in there isn't designed for ARM processors. Any guidance on how to resolve this issue, if possible pls?
Hey there @aashish108!
We haven't deployed the syncing-server
on a Raspberry Pi, but we can definitely take a look at it :)
What error messages are you getting when setting this up?
Hey there! I'm getting a message saying exec errors (can't remember 100%) - I researched it myself and its cos somethings not built for ARM CPUS but only X86.
@aashish108, we recently added support for Raspberry Pi. Please try it out when you get a chance and let me know :)
Thanks @johnny243 !I will take a look ;)
I had a look @johnny243 and I am getting DB errors :(
So its not a simple docker-compose up. I tried to work with it but became a little unsure of a few things. I then tried to create my own compose file but no progress.
Thanks!
W, [2020-03-05T19:12:35.960281 #6] WARN -- : DEPRECATION WARNING: ActiveSupport.halt_callback_chains_on_return_false= is deprecated and will be removed in Rails 5.2. (called from <top (required)> at /syncing-server/config/initializers/new_framework_defaults.rb:23)
D, [2020-03-05T19:12:36.927641 #6] DEBUG -- : Access denied for user 'std_notes_user'@'172.25.0.3' (using password: YES) excluded from capture: DSN not set
rails aborted!
Mysql2::Error: Access denied for user 'std_notes_user'@'172.25.0.3' (using password: YES)
Could you please run docker ps
and paste the output here?
Here it is @johnny243, note that I have other containers running:
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
d23aaef44550 syncing-server_app "bash -c 'bundle exe…" 26 hours ago Restarting (1) 28 seconds ago syncing-server_app_1
18ad9196e2bf tobi312/rpi-mariadb "docker-entrypoint.s…" 27 hours ago Up 26 hours 3306/tcp syncing-server_db_1
0f3d9414b3c8 linuxserver/calibre-web "/init" 13 days ago Up 13 days 0.0.0.0:8386->8083/tcp calibre-web
5d59182cf86e ugeek/wallabag:arm "/entrypoint.sh wall…" 2 weeks ago Up 2 weeks 0.0.0.0:8385->80/tcp my-cloud-infrastructure_wallabag_1
a65a86fe38c8 miniflux/miniflux:latest "/usr/bin/miniflux" 2 weeks ago Up 2 weeks 0.0.0.0:8384->8080/tcp my-cloud-infrastructure_miniflux_1
6b11ea32264d docker.pkg.github.com/aashish108/seafile-docker-pi/seafile:6.3.4-pi "/sbin/my_init -- /s…" 2 weeks ago Up 2 weeks 0.0.0.0:8380->8380/tcp, 0.0.0.0:8382->8382/tcp, 0.0.0.0:8381->80/tcp seafile
1b50b84b1c7b postgres "docker-entrypoint.s…" 2 weeks ago Up 2 weeks 5432/tcp my-cloud-infrastructure_miniflux-db_1
c43c22555073 redis:alpine "docker-entrypoint.s…" 2 weeks ago Up 2 weeks 6379/tcp my-cloud-infrastructure_wallabag-redis_1
bf7691cdfa06 linuxserver/freshrss "/init" 2 weeks ago Up 2 weeks 443/tcp, 0.0.0.0:8383->80/tcp my-cloud-infrastructure_freshrss_1
25463577dac1 postgres "docker-entrypoint.s…" 2 weeks ago Up 2 weeks 5432/tcp my-cloud-infrastructure_freshrss-db_1
06ca7b010d2b tomsquest/docker-radicale "docker-entrypoint.s…" 2 weeks ago Up 2 weeks (healthy) 0.0.0.0:5232->5232/tcp radicale
Thanks.
:thinking: It seems that the app container is restarting because it can not establish a connection with the database container. Let's try and run everything from scratch. Please execute the following commands:
- Stop Standard Notes related containers (used Container IDs from above output):
docker stop d23aaef44550 18ad9196e2bf
- Remove the containers:
docker rm d23aaef44550 18ad9196e2bf
- Remove the database volume:
docker volume rm syncing-server_std_notes_db
- Update your local copy of the
syncing-server
repo. For that,cd
into the directory and then:
git checkout master && git pull
- Finally, build and start up the containers:
docker-compose -f docker-compose.yml -f docker-compose.raspberry-pi.yml up -d
Let me know if this helps! :smile:
Something is up with this compose file or the .env file. I have followed the directions perfectly and am seeing the same thing. Access denied for user 'std_notes_user'@'172.25.0.3' (using password: YES). Cleaned, started from scratch, etc.
I'm sorry to hear that! I've passed on this info to the team for review.
So apparently I didn't change DB_HOST to = db. I didn't see that in the doc anywhere so not sure where I was supposed to find it during install.
That's strange, the docker-compose.yml file should set DB_HOST
to db
for you. I'll have a look at this just in case!
Thanks for reporting! :smiley: