Movies being copied to unsorted folder

Support for Synology NAS, QNAP NAS and other Embedded Linux systems
Post Reply
WaveDave1988
Posts: 6
Joined: 19 Sep 2020, 04:58

Movies being copied to unsorted folder

Post by WaveDave1988 »

Hi there,

Since a couple of weeks, Filebot sometimes copies all my movies I downloaded to another folder called "unsorted". So usually I would just move them back to where they were and start the process again. It usually works the second time (renaming, creating a folder for each movie and move them there).
But since yesterday, it simply doesn't do anything anymore.. (just moving them into an unsorted folder).

Would be really glad about help.

Logs:
Sysinfo: https://pastebin.com/XtnEQbp6

Log for the said process which moves the movies to an unsorted folder: https://pastebin.com/VQ26WFEQ

Thanks in advance and have a great day!
User avatar
rednoah
The Source
Posts: 20150
Joined: 16 Nov 2011, 08:59

Re: Movies being copied to unsorted folder

Post by rednoah »

You can disable Unsorted behaviour by removing the --def unsorted=y option.


In this case, you're getting an Java heap space error (i.e. running out of memory) during auto-detection, so and Unsorted behaviour takes over.


If you're using the command-line then you can increase the memory limit via environment variables (i.e. export JAVA_OPTS=-Xmx1024m) and modifying configuration files. But if you're using FileBot Node, and aren't familiar with the command-line, then there's not much you can do.




EDIT:

If you're familiar with SSH, then you can log into your NAS, and manually modify the startup script in the filebot-node application folder:

Code: Select all

/var/packages/filebot-node/target
and replace:

Code: Select all

export JAVA_OPTS=$(awk '/MemTotal:/ { xmx = ($2*0.8)/1024; if (xmx < 1024) { printf "-Xmx%dm", xmx }; exit}' /proc/meminfo)  # set -Xmx to 0.8 of physical memory (on low-memory devices)
with:

Code: Select all

export JAVA_OPTS=-Xmx1536m
to manually force a higher memory limit. The memory limit must be below your physical RAM, otherwise the process will crash immediately.
:idea: Please read the FAQ and How to Request Help.
WaveDave1988
Posts: 6
Joined: 19 Sep 2020, 04:58

Re: Movies being copied to unsorted folder

Post by WaveDave1988 »

Thanks for your reply rednoah!

I'm using Filebot Node, so can I define something in the line "Unsorted format"?
And if not, I know my way around the command-line (at least a bit).. could you help me where I can increase the memory limit?
User avatar
rednoah
The Source
Posts: 20150
Joined: 16 Nov 2011, 08:59

Re: Movies being copied to unsorted folder

Post by rednoah »

--def unsortedFormat is likely useless for what you want to achieve, because Unsorted files are not associated with any Movie / Episode information, so information such as "movie name" or "movie year" won't be available for the destination file path.


:arrow: I've added instructions for modifying the startup configuration in my EDIT above.
:idea: Please read the FAQ and How to Request Help.
WaveDave1988
Posts: 6
Joined: 19 Sep 2020, 04:58

Re: Movies being copied to unsorted folder

Post by WaveDave1988 »

so this is what i wrote on the line you told me:

Code: Select all

export JAVA_OPTS=-Xmx1536
and this is what i get now as an error message once i start Filebot Node:

Error occurred during initialization of VM
Too small maximum heap

------------------------------------------

[Process error]

Edit: found it out...

Code: Select all

export JAVA_OPTS="-Xmx1536m"
simpleson
Posts: 1
Joined: 13 Sep 2021, 00:29

Re: Movies being copied to unsorted folder

Post by simpleson »

I'm sorry, but can someone help me, as I'm not as familiar with the CLI on my Synology, but I appear to be having the same issue with memory on the initial run of filebot on DSM7. I have expanded my DS920+ to 8gb RAM. Following the instructions above, I don't see specifically which file is the startup config. Essentially I am lost once I get to /var/packages/filebot-node/target. Can someone please point me in the right direction. Sorry for the noob question.
User avatar
rednoah
The Source
Posts: 20150
Joined: 16 Nov 2011, 08:59

Re: Movies being copied to unsorted folder

Post by rednoah »

You will likely find the startup script here:

Code: Select all

/var/packages/filebot-node/target/bin/filebot-node-start
It'll look like this:
https://github.com/filebot/filebot-node ... -start#L15

Edit the startup script and set JAVA_OPTS to a specific value:
rednoah wrote: 17 Mar 2021, 17:40 If you're familiar with SSH, then you can log into your NAS, and manually modify the startup script in the filebot-node application folder:

Code: Select all

/var/packages/filebot-node/target
and replace:

Code: Select all

export JAVA_OPTS=$(awk '/MemTotal:/ { xmx = ($2*0.8)/1024; if (xmx < 1024) { printf "-Xmx%dm", xmx }; exit}' /proc/meminfo)  # set -Xmx to 0.8 of physical memory (on low-memory devices)
with:

Code: Select all

export JAVA_OPTS=-Xmx1536m
to manually force a higher memory limit. The memory limit must be below your physical RAM, otherwise the process will crash immediately.
:idea: Please read the FAQ and How to Request Help.
Post Reply