syncing-server icon indicating copy to clipboard operation
syncing-server copied to clipboard

Installing on Pi Not Working

Open aashish108 opened this issue 5 years ago • 12 comments

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?

aashish108 avatar Feb 06 '20 10:02 aashish108

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?

johnny243 avatar Feb 06 '20 22:02 johnny243

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 avatar Feb 07 '20 07:02 aashish108

@aashish108, we recently added support for Raspberry Pi. Please try it out when you get a chance and let me know :)

johnny243 avatar Feb 26 '20 20:02 johnny243

Thanks @johnny243 !I will take a look ;)

aashish108 avatar Mar 03 '20 20:03 aashish108

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)

aashish108 avatar Mar 05 '20 19:03 aashish108

Could you please run docker ps and paste the output here?

johnny243 avatar Mar 06 '20 02:03 johnny243

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.

aashish108 avatar Mar 06 '20 21:03 aashish108

: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:

  1. Stop Standard Notes related containers (used Container IDs from above output):
docker stop d23aaef44550 18ad9196e2bf
  1. Remove the containers:
docker rm d23aaef44550 18ad9196e2bf
  1. Remove the database volume:
docker volume rm syncing-server_std_notes_db
  1. Update your local copy of the syncing-server repo. For that, cd into the directory and then:
git checkout master && git pull
  1. 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:

johnny243 avatar Mar 07 '20 02:03 johnny243

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.

yetdog avatar Mar 18 '20 22:03 yetdog

I'm sorry to hear that! I've passed on this info to the team for review.

JaspalSuri avatar Mar 18 '20 22:03 JaspalSuri

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.

yetdog avatar Mar 18 '20 22:03 yetdog

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:

johnny243 avatar Mar 18 '20 23:03 johnny243