docker-gphotos-sync icon indicating copy to clipboard operation
docker-gphotos-sync copied to clipboard

Error on Synology DSM 7

Open rfg81 opened this issue 3 years ago • 5 comments

I'm trying to follow this guide (https://github.com/JakeWharton/docker-gphotos-sync) using portainer but I'm getting this error (Error relocating /usr/lib/libnspr4.so) and I couldn't find a solution on google. Could you please help me out?

This is the log:

[s6-init] making user provided files available at /var/run/s6/etc...exited 0. [s6-init] ensuring user provided files have correct perms...exited 0. [fix-attrs.d] applying ownership & permissions fixes... [fix-attrs.d] done. [cont-init.d] executing container initialization scripts... [cont-init.d] 10-adduser.sh: executing... Initializing container

User uid: 1024 User gid: 100

[cont-init.d] 10-adduser.sh: exited 0. [cont-init.d] 20-cron.sh: executing...

Initializing cron
*

[cont-init.d] 20-cron.sh: exited 0. [cont-init.d] done. [services.d] starting services [services.d] done. INFO: Starting sync.sh PID 215 Thu Jul 29 18:00:00 UTC 2021 2021/07/29 18:00:01 Session Dir: /tmp/gphotos-cdp 2021/07/29 18:00:03 chrome failed to start: Error relocating /usr/lib/libnspr4.so: gettid: symbol not found INFO: Starting sync.sh PID 234 Thu Jul 29 19:00:00 UTC 2021 2021/07/29 19:00:01 Session Dir: /tmp/gphotos-cdp 2021/07/29 19:00:03 chrome failed to start: Error relocating /usr/lib/libnspr4.so: gettid: symbol not found

This is what I have in portainer: version: '2' services: gphotos-sync: container_name: gphotos-sync image: jakewharton/gphotos-sync:latest restart: unless-stopped volumes: - /volume1/docker/gphotos-cdp:/tmp/gphotos-cdp - /volume1/photo/gphotos-sync:/download environment: - TZ=${TZ} #hourly - "CRON=0 * * * *" #Optional: - "HEALTHCHECK_ID=..." - PUID=1024 - PGID=100

rfg81 avatar Jul 29 '21 20:07 rfg81

same exact issue here. Logs below

Initializing container

User uid: 1026 User gid: 101

[cont-init.d] 10-adduser.sh: exited 0. [cont-init.d] 20-cron.sh: executing...

Not running in cron mode

[cont-init.d] 20-cron.sh: exited 0. [cont-init.d] done. [services.d] starting services crond[198]: crond (busybox 1.31.1) started, log level 6 [services.d] done. INFO: Starting sync.sh PID 208 Fri Jul 30 14:25:07 UTC 2021 2021/07/30 14:25:08 Session Dir: /tmp/gphotos-cdp 2021/07/30 14:25:10 chrome failed to start: Error relocating /usr/lib/libnspr4.so: gettid: symbol not found [cmd] /app/sync.sh exited 1 [cont-finish.d] executing container finish scripts... [cont-finish.d] done. [s6-finish] waiting for services. [s6-finish] sending all processes the TERM signal. [s6-finish] sending all processes the KILL signal and exiting.

giorgiooriani avatar Jul 30 '21 14:07 giorgiooriani

Sane exact error but on a QNAP:

[s6-init] making user provided files available at /var/run/s6/etc...exited 0.
[s6-init] ensuring user provided files have correct perms...exited 0.
[fix-attrs.d] applying ownership & permissions fixes...
[fix-attrs.d] done.
[cont-init.d] executing container initialization scripts...
[cont-init.d] 10-adduser.sh: executing...

Initializing container

User uid: 1001
User gid: 1001

[cont-init.d] 10-adduser.sh: exited 0.
[cont-init.d] 20-cron.sh: executing...

Not running in cron mode

[cont-init.d] 20-cron.sh: exited 0.
[cont-init.d] done.
[services.d] starting services
crond[198]: crond (busybox 1.31.1) started, log level 6
[services.d] done.
INFO: Starting sync.sh PID 208 Sat Jul 31 22:23:55 UTC 2021
2021/07/31 22:23:55 Session Dir: /tmp/gphotos-cdp
2021/07/31 22:23:57 chrome failed to start:
Error relocating /usr/lib/libnspr4.so: gettid: symbol not found
[cmd] /app/sync.sh exited 1
[cont-finish.d] executing container finish scripts...
[cont-finish.d] done.
[s6-finish] waiting for services.
[s6-finish] sending all processes the TERM signal.
[s6-finish] sending all processes the KILL signal and exiting.

aaccioly avatar Jul 31 '21 22:07 aaccioly

So, changing the build file to download an older version of chromium gets around the issue:

# Installs latest Chromium package.
RUN echo @v3.10 http://nl.alpinelinux.org/alpine/v3.10/community > /etc/apk/repositories \
    && echo @v3.10 http://nl.alpinelinux.org/alpine/v3.10/main  >> /etc/apk/repositories \
    && echo >> /etc/apk/repositories \
    && apk add --no-cache \
      [email protected] \
      [email protected] \
      [email protected] \
      [email protected] \
      [email protected] \
      [email protected] \
      [email protected] \
      [email protected] \
    && rm -rf /var/cache/* \
    && mkdir /var/cache/apk

Nevertheless I hit the problem described in #25 despite using the correct volumes. For now I'm back at using rclone and its working well.

aaccioly avatar Aug 01 '21 00:08 aaccioly

I tried making this change locally and it causes another issue with that version of alpine. I got:

[cont-init.d] 10-adduser.sh: executing...
/var/run/s6/etc/cont-init.d/10-adduser.sh: line 26: groupmod: not found
/var/run/s6/etc/cont-init.d/10-adduser.sh: line 27: usermod: not found
id: unknown user abc
id: unknown user abc

Initializing container

User uid:
User gid:

chown: unknown user/group abc:abc
[cont-init.d] 10-adduser.sh: exited 1.

This seems to be the same/similar issue to #46

benwicks avatar Dec 23 '21 15:12 benwicks

Feel free to comment out most of https://github.com/JakeWharton/docker-gphotos-sync/blob/trunk/root/etc/cont-init.d/10-adduser.sh

The better solution would be to use the alpine native commands for groupmod, usermod

Tracking at https://github.com/JakeWharton/docker-gphotos-sync/pull/47#issuecomment-1003293122

gc-ss avatar Dec 31 '21 07:12 gc-ss