Erno 12

Get help, report and discuss bugs.
Post Reply
Panja
Posts: 119
Joined: 11 Aug 2015, 07:42

Erno 12

Post by Panja » 30 Jul 2019, 07:04

Since a few days I'm getting a strange problem when unpacking.

Code: Select all

ERROR	Tue Jul 30 2019 08:56:11	series/VideoSort: Could not start post-process-script series/VideoSort.py for The Handmaid's Tale - S03E08: errno 12
ERROR	Tue Jul 30 2019 08:56:04	series/VideoSort: Could not start post-process-script series/VideoSort.py for The Handmaid's Tale - S03E08: errno 12
ERROR	Tue Jul 30 2019 08:56:02	series/VideoSort: Could not start post-process-script series/VideoSort.py for The Handmaid's Tale - S03E08: errno 12
ERROR	Tue Jul 30 2019 08:56:01	Unpack for The Handmaid's Tale - S03E08 failed
ERROR	Tue Jul 30 2019 08:54:22	Unrar: Could not start unpack for The Handmaid's Tale - S03E08: errno 12
Any one have a clue?
Running v21.0 in Docker.
Has been running flawless for years.

sanderj
Posts: 184
Joined: 10 Feb 2014, 21:46

Re: Erno 12

Post by sanderj » 30 Jul 2019, 11:00

Docker ... so ... on Linux?

AFAIK Errno 12 is often/always "[Errno 12] Cannot allocate memory" in combination with pyathon, so a memory allocation problem of your system.
Last edited by sanderj on 30 Jul 2019, 13:52, edited 1 time in total.

Panja
Posts: 119
Joined: 11 Aug 2015, 07:42

Re: Erno 12

Post by Panja » 30 Jul 2019, 11:46

Thanks for the reply!

It's running it on a Synology NAS (DS415+).
I've replaced the standard 2GB ram for 8GB ram.

At the moment I'm running @ 27% ram when checking resources on my NAS.

Though when restarting the docker instance did fix (temp?) my problem.

Hmmm strange...

sanderj
Posts: 184
Joined: 10 Feb 2014, 21:46

Re: Erno 12

Post by sanderj » 30 Jul 2019, 13:30

Panja wrote:
30 Jul 2019, 11:46

Though when restarting the docker instance did fix (temp?) my problem.
That's the way to handle a docker instance: if/when it doesn't behave like it should, kill/restart it.

However ... if it happens more often that would be strange indeed: VideoSort.py seems to be a plain python script (no strange, memory hungry system calls) so memory problems should not occur.

... Unless another process (maybe nzbget itself, although unlikely) had eaten all the memory ... Or the docker instance had limited amount of RAM (via --memory)
Last edited by sanderj on 30 Jul 2019, 13:41, edited 1 time in total.

Panja
Posts: 119
Joined: 11 Aug 2015, 07:42

Re: Erno 12

Post by Panja » 30 Jul 2019, 13:36

I did not set an environment --memory.

I do have another post download script running but that script is not memory hungry as far as I can tell.
I'll post it here for reference.

Code: Select all

#!/bin/sh

###########################################
### NZBGET POST-PROCESSING SCRIPT       ###

# Plex libray update --> movies-classics.

### NZBGET POST-PROCESSING SCRIPT       ###
###########################################

wget --no-check-certificate --delete-after "https://ip_of_plex_server:32400/library/sections/1/refresh?X-Plex-Token=Plex_token_xyz" >/dev/null 2>&1

exit 93;

sanderj
Posts: 184
Joined: 10 Feb 2014, 21:46

Re: errno 12

Post by sanderj » 30 Jul 2019, 14:00

Oh, wait ... I should read better:

Code: Select all

Could not start post-process-script series/VideoSort.py for The Handmaid's Tale - S03E08: errno 12
and

Code: Select all

Unrar: Could not start unpack for The Handmaid's Tale - S03E08: errno 12
So the problem is not in VideoSort.py itself, but with starting VideoSort.py. And yes, that is a fork (heavy OS call). Apparantly memory (or number of PIDs) was exhausted in / for your docker instance.

It's probably this line:

Code: Select all

daemon/util/Script.cpp:600:		PrintMessage(Message::mkError, "Could not start %s: errno %i", *m_infoName, errno);
So apparantly the fork in "pid_t pid = fork();" failed.
Last edited by sanderj on 31 Jul 2019, 19:11, edited 1 time in total.

Panja
Posts: 119
Joined: 11 Aug 2015, 07:42

Re: Erno 12

Post by Panja » 30 Jul 2019, 14:11

I have updated my Docker instance to the latest (LinuxServer.io image) and rebooted the NAS afterwards.
I'll have a look how it goes now.

Thanks

sanderj
Posts: 184
Joined: 10 Feb 2014, 21:46

Re: Erno 12

Post by sanderj » 30 Jul 2019, 14:18

Also worth monitoring: usage by docker itself:

Code: Select all

$ top -bn1 | grep -e VIRT -e docker
  PID USER      PR  NI    VIRT    RES    SHR S  %CPU  %MEM     TIME+ COMMAND
31572 root      20   0  984184  72948  39252 S   0,0   1,9   0:01.43 dockerd
32056 sander    20   0  954836  49864  29880 S   0,0   1,3   0:00.15 docker

Panja
Posts: 119
Joined: 11 Aug 2015, 07:42

Re: Erno 12

Post by Panja » 31 Jul 2019, 18:40

It seems to be fixed now.
Running the latest linuxserver.io docker image (and rebooting the NAS).
Been downloading a few things without any problems.

Thanks for the help Sander! Helemaal top!

Post Reply

Who is online

Users browsing this forum: No registered users and 58 guests