blawar / nut

GNU General Public License v3.0
1.12k stars 193 forks source link

Nut is killed with no useful error message #406

Open douglaslps opened 2 years ago

douglaslps commented 2 years ago

I'm running nut inside a docker container and for some reason, it is looping loading titles and showing a Killed error with no additional details of the actual failure. You can see the logs below. I have the impression that this might be disk space-related, but I couldn't prove it yet. Any help is appreciated.

loading blacklist /nut/conf/blacklist.online.txt
could not load keys.txt, all crypto operations will fail
loaded user guest
                        ,;:;;,
                       ;;;;;
               .=',    ;:;;:,
              /_', "=. ';:;:;
              @=:__,  \,;:;:'
                _(\.=  ;:;;'
               `"_(  _/="`
                `"'
downloading titledb files

  0% 0.00/42.3M [00:00<?, ?B/s]
  2% 1.05M/42.3M [00:00<00:04, 8.63MB/s]
  7% 3.15M/42.3M [00:00<00:04, 9.08MB/s]
 10% 4.19M/42.3M [00:00<00:04, 9.18MB/s]
 15% 6.29M/42.3M [00:00<00:03, 10.2MB/s]
 20% 8.39M/42.3M [00:00<00:03, 11.1MB/s]
 25% 10.5M/42.3M [00:00<00:02, 11.3MB/s]
 30% 12.6M/42.3M [00:01<00:02, 10.1MB/s]
 37% 15.7M/42.3M [00:01<00:02, 11.1MB/s]
 42% 17.8M/42.3M [00:01<00:02, 11.2MB/s]
 47% 19.9M/42.3M [00:02<00:03, 6.64MB/s]
 50% 21.0M/42.3M [00:02<00:05, 4.14MB/s]
 52% 22.0M/42.3M [00:03<00:06, 3.07MB/s]
 54% 23.1M/42.3M [00:03<00:07, 2.47MB/s]
 57% 24.1M/42.3M [00:04<00:08, 2.07MB/s]
 59% 25.2M/42.3M [00:05<00:09, 1.83MB/s]
 62% 26.2M/42.3M [00:05<00:08, 1.81MB/s]
 64% 27.3M/42.3M [00:05<00:06, 2.39MB/s]
 67% 28.3M/42.3M [00:06<00:05, 2.52MB/s]
 69% 29.4M/42.3M [00:06<00:05, 2.57MB/s]
 74% 31.5M/42.3M [00:06<00:03, 3.28MB/s]
 77% 32.5M/42.3M [00:07<00:02, 3.68MB/s]
 84% 35.7M/42.3M [00:07<00:01, 4.59MB/s]
 89% 37.7M/42.3M [00:07<00:00, 5.97MB/s]
 94% 39.8M/42.3M [00:07<00:00, 6.20MB/s]
 97% 40.9M/42.3M [00:08<00:00, 5.90MB/s]
 99% 41.9M/42.3M [00:08<00:00, 6.02MB/s]

could not get title id from filename, name needs to contain [titleId] : titledb/db.nza
unknown extension titledb/db.nza
loaded titledb/BG.en.json in 2.4284146379795857 seconds
loaded titledb/BR.en.json in 1.9166137750144117 seconds
loaded titledb/BR.pt.json in 5.507364007004071 seconds
Killed

Done.
-------------------------------------

[cont-init.d] 03-update-titledb: exited 0.
[cont-init.d] done.
[services.d] starting services
[services.d] done.
loading blacklist /nut/conf/blacklist.online.txt
could not load keys.txt, all crypto operations will fail
loaded user guest
                        ,;:;;,
                       ;;;;;
               .=',    ;:;;:,
              /_', "=. ';:;:;
              @=:__,  \,;:;:'
                _(\.=  ;:;;'
               `"_(  _/="`
                `"'
downloading titledb files

  0% 0.00/42.3M [00:00<?, ?B/s]
  2% 1.05M/42.3M [00:00<00:05, 6.90MB/s]
  5% 2.10M/42.3M [00:00<00:05, 6.86MB/s]
 10% 4.19M/42.3M [00:00<00:04, 7.87MB/s]
 15% 6.29M/42.3M [00:00<00:04, 8.37MB/s]
 20% 8.39M/42.3M [00:00<00:03, 8.98MB/s]
 25% 10.5M/42.3M [00:01<00:03, 8.33MB/s]
 32% 13.6M/42.3M [00:01<00:02, 10.5MB/s]
 37% 15.7M/42.3M [00:01<00:02, 10.8MB/s]
 42% 17.8M/42.3M [00:01<00:02, 10.8MB/s]
 47% 19.9M/42.3M [00:01<00:02, 11.2MB/s]
 52% 22.0M/42.3M [00:02<00:02, 7.37MB/s]
 54% 23.1M/42.3M [00:02<00:03, 6.07MB/s]
 57% 24.1M/42.3M [00:02<00:03, 5.12MB/s]
 59% 25.2M/42.3M [00:03<00:03, 4.38MB/s]
 62% 26.2M/42.3M [00:03<00:04, 3.82MB/s]
 64% 27.3M/42.3M [00:03<00:04, 3.40MB/s]
 67% 28.3M/42.3M [00:04<00:04, 3.05MB/s]
 69% 29.4M/42.3M [00:04<00:04, 2.76MB/s]
 72% 30.4M/42.3M [00:05<00:04, 2.56MB/s]
 74% 31.5M/42.3M [00:05<00:04, 2.57MB/s]
 77% 32.5M/42.3M [00:06<00:03, 2.53MB/s]
 79% 33.6M/42.3M [00:06<00:03, 2.85MB/s]
 82% 34.6M/42.3M [00:06<00:02, 3.08MB/s]
 84% 35.7M/42.3M [00:06<00:01, 3.35MB/s]
 87% 36.7M/42.3M [00:07<00:01, 3.78MB/s]
 89% 37.7M/42.3M [00:07<00:01, 3.97MB/s]
 92% 38.8M/42.3M [00:07<00:00, 4.35MB/s]
 94% 39.8M/42.3M [00:07<00:00, 4.44MB/s]
 97% 40.9M/42.3M [00:08<00:00, 4.33MB/s]
 99% 41.9M/42.3M [00:08<00:00, 4.55MB/s]

could not get title id from filename, name needs to contain [titleId] : titledb/db.nza
unknown extension titledb/db.nza
loaded titledb/BG.en.json in 2.8233920100028627 seconds
loaded titledb/BR.en.json in 2.719140698987758 seconds
loaded titledb/BR.pt.json in 8.48986075699213 seconds
./run: line 8:   274 Killed                  s6-setuidgid nut /usr/local/bin/python /nut/nut.py --scan --server
loading blacklist /nut/conf/blacklist.online.txt
...
douglaslps commented 2 years ago

titledb (and conf) folder needs to be writeable/a mount

They both are. I see new content on the titledb directory. Including the files mentioned in the logs (like BG.en.json).

introkun commented 2 years ago

@douglaslps could you please provide your docker file?

douglaslps commented 2 years ago

I'm running it on Portainer (on top of OpenMediaVault) and I don't really have a docker file :( Sorry.

BestPig commented 2 years ago

Killed is generally when you are running out of memory and the linux OOM Killer killed it to free some memory. You should see logs in /var/log/syslog of with the dmesg command

V-Karch commented 1 week ago

@BestPig

Killed is generally when you are running out of memory and the linux OOM Killer killed it to free some memory. You should see logs in /var/log/syslog of with the dmesg command

Thank you so much for this! I was looking for the same thing and it turns out my Raspberry Pi 2B just doesn't have the RAM available even with swap space to run nut

[1727191.528254] Out of memory: Killed process 4496 (python) total-vm:1110876kB, anon-rss:851256kB, file-rss:128kB, shmem-rss:0kB, UID:1000 pgtables:1064kB oom_score_adj:0

I only had the following available

Memory: 111.82 MiB / 920.94 MiB (12%) Swap: 27.68 MiB / 200.00 MiB (14%)

I'll just need to buy one with more available RAM