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

[HELP] infinite loop i can't figure out #12

Open
wougzy opened this issue Nov 11, 2023 · 0 comments
Open

[HELP] infinite loop i can't figure out #12

wougzy opened this issue Nov 11, 2023 · 0 comments
Assignees
Labels
help wanted Extra attention is needed

Comments

@wougzy
Copy link

wougzy commented Nov 11, 2023

Hi,

I managed to get the container running on my Synology NAS. I had a bit of trouble initially with permission issues, but I believe I've resolved everything now. However, I could use some help with an issue—I'm still encountering an error at startup that I can't seem to figure out and the program seems to be stuck in an endless loop. I'm having trouble pinpointing what I might have done wrong.

tail of the log:

downloading titledb files
[NUT API Script] Using api url: http://localhost:9000/api
[NUT API Script] Executing scan failed!
[NUT API Script] Using api url: http://localhost:9000/api
[NUT API Script] Executing scan failed!
...

Thanks! (And thanks for the project!)

System configuration:
DSM 7.2-64570 Update 3

Output of docker version:

Client:
 Version:           20.10.23
 API version:       1.41
 Go version:        go1.19.1
 Git commit:        876964a
 Built:             Fri Sep  8 08:19:45 2023
 OS/Arch:           linux/arm64
 Context:           default
 Experimental:      true

Server:
 Engine:
  Version:          20.10.23
  API version:      1.41 (minimum version 1.12)
  Go version:       go1.19.1
  Git commit:       5fcb1cf
  Built:            Fri Sep  8 08:17:14 2023
  OS/Arch:          linux/arm64
  Experimental:     false
 containerd:
  Version:          v1.6.15
  GitCommit:        b23a389d8c181697302d163356e97dec04eb8d88
 runc:
  Version:          v1.1.4
  GitCommit:        5af893d
 docker-init:
  Version:          0.19.0
  GitCommit:        ed96d00

Output of docker ps -a -f "ancestor=shawly/nut":

CONTAINER ID   IMAGE     COMMAND   CREATED   STATUS    PORTS     NAMES

Output of docker logs CONTAINERNAME (replace CONTAINERNAME with your nut container's name):

s6-svwait: fatal: unable to subscribe to events for /var/run/s6/services/s6-fdholderd: Operation timed out
[s6-finish] waiting for services.
[s6-finish] sending all processes the TERM signal.
[s6-finish] sending all processes the KILL signal and exiting.
[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] 00-adduser: executing... 
usermod: no changes
-------------------------------------
GID/UID
-------------------------------------
User uid:    1026
User gid:    100
-------------------------------------
[cont-init.d] 00-adduser: exited 0.
[cont-init.d] 01-create_configs: executing... 
-------------------------------------
Checking conf folder... 
-------------------------------------
Downloading latest blacklist.online.txt...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed

  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
100  1615  100  1615    0     0   4271      0 --:--:-- --:--:-- --:--:--  4283
Found keys.txt! Copying back to /nut...
'/nut/conf/keys.txt' -> '/nut/keys.txt'
Changing ownership of /nut/conf folder...
-------------------------------------
[cont-init.d] 01-create_configs: exited 0.
[cont-init.d] 02-fix-ownership: executing... 
-------------------------------------
Checking ownership of /nut folder
-------------------------------------
USER_ID differs from default, adjusting ownership...
GROUP_ID differs from default, adjusting ownership...
Done.
-------------------------------------
[cont-init.d] 02-fix-ownership: exited 0.
[cont-init.d] 03-update-titledb: executing... 
-------------------------------------
Updating titledb...
-------------------------------------
TITLEDB_UPDATE was disabled, skipping titledb update.
Done.
-------------------------------------
[cont-init.d] 03-update-titledb: exited 0.
[cont-init.d] 04-update-crontabs: executing... 
-------------------------------------
Updating /etc/crontabs/root...
-------------------------------------
Checking if there is a crontab user in your users.conf...
Found crontab user!
Found schedule for command scan: 0/30 * * * *
Added scan schedule to /etc/crontabs/root...
Done.
-------------------------------------
[cont-init.d] 04-update-crontabs: exited 0.
[cont-init.d] done.
[services.d] starting services
[services.d] done.
loading blacklist /nut/conf/blacklist.online.txt
loaded user guest
loaded user crontab
                        ,;:;;,
                       ;;;;;
               .=',    ;:;;:,
              /_', "=. ';:;:;
              @=:__,  \,;:;:'
                _(\.=  ;:;;'
               `"_(  _/="`
                `"'
downloading titledb files
[NUT API Script] Using api url: http://localhost:9000/api
[NUT API Script] Executing scan failed!

Output of id (you should be logged in with the user that owns your games directory):

uid=1026(yz) gid=100(users) groups=100(users),101(administrators)

Output of docker exec --user nut CONTAINERNAME id (replace CONTAINERNAME with your nut container's name):

uid=1026(nut) gid=100(users) groups=100(users)

Output of ls -l /path/to/your/games/folder:

total 4
drwxrwxrwx 2 yz users 4096 Nov 10 21:30 images

Output of docker exec CONTAINERNAME ls -l /nut/titles (replace CONTAINERNAME with your nut container's name):

total 4
drwxrwxrwx 2 nut users 4096 Nov 10 20:30 images

My docker run command or my docker-compose.yml:

docker run -d --name=nut -e USER_ID=1026 -e GROUP_ID=100 -p 9001:9000 -v /volume1/nut/titles:/nut/titles:rw -v /volume1/nut/conf:/nut/conf:rw -v /volume1/nut/_NSPOUT:/nut/_NSPOUT:rw -v /volume1/nut/titledb:/nut/titledb:rw shawly/nut
@wougzy wougzy added the help wanted Extra attention is needed label Nov 11, 2023
@wougzy wougzy changed the title [HELP] [HELP] infinite loop i can't figure out Nov 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants