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

Error on Synology DSM 7 #43

Open
rfg81 opened this issue Jul 29, 2021 · 5 comments
Open

Error on Synology DSM 7 #43

rfg81 opened this issue Jul 29, 2021 · 5 comments

Comments

@rfg81
Copy link

rfg81 commented Jul 29, 2021

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

@giorgiooriani
Copy link

giorgiooriani commented Jul 30, 2021

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.

@aaccioly
Copy link

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
Copy link

aaccioly commented Aug 1, 2021

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 \
      libstdc++@v3.10 \
      chromium@v3.10 \
      harfbuzz@v3.10 \
      nss@v3.10 \
      freetype@v3.10 \
      ttf-freefont@v3.10 \
      tzdata@v3.10 \
      curl@v3.10 \
    && 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.

Petterderhaag added a commit to Petterderhaag/docker-gphotos-sync that referenced this issue Dec 8, 2021
Even older version of chrome; per JakeWharton#43 (comment)
@benwicks
Copy link

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

@gc-ss
Copy link

gc-ss commented Dec 31, 2021

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 #47 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants