error message in newly installed mylar3

Post any problems / bugs / issues that are Mylar-related in here.
Post Reply
headstone1734
Posts: 3
Joined: Fri Jan 24, 2025 12:46 pm

error message in newly installed mylar3

Post by headstone1734 »

I'm moving my mylar3 install from docker to an LXC (via proxmox helper scripts).

But i'm seeing this error in the logs
It looks to be related to DDL as the message before this is :
Found Little Batman: Month One (2025) #3 using DDL(GetComics)

Traceback (most recent call last):
File "/opt/mylar3/mylar/search.py", line 2408, in searchforissue
foundNZB, prov = search_init(
^^^^^^^^^^^^
File "/opt/mylar3/mylar/search.py", line 432, in search_init
findit = search_the_matrix(scarios)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/mylar3/mylar/search.py", line 4146, in search_the_matrix
return NZB_SEARCH(
^^^^^^^^^^^
File "/opt/mylar3/mylar/search.py", line 1272, in NZB_SEARCH
verification(verified_matches, is_info)
File "/opt/mylar3/mylar/search.py", line 1322, in verification
searchresult = searcher(
^^^^^^^^^
File "/opt/mylar3/mylar/search.py", line 3138, in searcher
ggc.loadsite(nzbid, link)
File "/opt/mylar3/mylar/getcomics.py", line 321, in loadsite
with open(title + '.html', 'wb') as f:
^^^^^^^^^^^^^^^^^^^^^^^^^^^
FileNotFoundError: [Errno 2] No such file or directory: '/opt/mylar3-data/cache/html_cache/getcomics-352919.html'
Traceback (most recent call last):
File "/opt/mylar3/mylar/search.py", line 2408, in searchforissue
foundNZB, prov = search_init(
^^^^^^^^^^^^
File "/opt/mylar3/mylar/search.py", line 432, in search_init
findit = search_the_matrix(scarios)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/mylar3/mylar/search.py", line 4146, in search_the_matrix
return NZB_SEARCH(
^^^^^^^^^^^
File "/opt/mylar3/mylar/search.py", line 1272, in NZB_SEARCH
verification(verified_matches, is_info)
File "/opt/mylar3/mylar/search.py", line 1322, in verification
searchresult = searcher(
^^^^^^^^^
File "/opt/mylar3/mylar/search.py", line 3138, in searcher
ggc.loadsite(nzbid, link)
File "/opt/mylar3/mylar/getcomics.py", line 321, in loadsite
with open(title + '.html', 'wb') as f:
^^^^^^^^^^^^^^^^^^^^^^^^^^^
FileNotFoundError: [Errno 2] No such file or directory: '/opt/mylar3-data/cache/html_cache/getcomics-352919.html'

I checked and there is no html_cache folder created at all.

Any ideas / suggestions?
User avatar
evilhero
Site Admin
Posts: 2905
Joined: Sat Apr 20, 2013 3:43 pm
Contact:

Re: error message in newly installed mylar3

Post by evilhero »

Sounds like you manually set a cache_dir location outside of the default - check the config.ini for a cache_dir value. Leaving that blank will create it in the default data_dir location which is generated on startup unless you specify it thru command line arguments (which in your case would be /opt/mylar3/cache).

Otherwise it's probably a permissions issue since /opt is usually locked down to root-only access unless it's been manually modified (user running mylar isn't root and it doesn't have access to the cache die location).
headstone1734
Posts: 3
Joined: Fri Jan 24, 2025 12:46 pm

Re: error message in newly installed mylar3

Post by headstone1734 »

thanks for the reply..

The GUI shows this as the paths
Mylar Data Directory : /opt/mylar3-data
Mylar Program Directory : /opt/mylar3
Mylar Cache Directory : /opt/mylar3-data/cache
Mylar Config File :/opt/mylar3-data/config.ini

and the config.ini file has none set for this
cache_dir=none

So i guess i have 2 options, 1 make the mylar3 user root or move the cache to a folder it can write to?
User avatar
evilhero
Site Admin
Posts: 2905
Joined: Sat Apr 20, 2013 3:43 pm
Contact:

Re: error message in newly installed mylar3

Post by evilhero »

Well don't make the user running mylar root, age old adage of never run an app as root, always as a non-privileged user.

You can set the cache_dir path in the config.ini to a location writable by the user running mylar, or you can also just chown the entire mylar3 directory (and subdirectories) so that it's owned by the user running mylar.
headstone1734
Posts: 3
Joined: Fri Jan 24, 2025 12:46 pm

Re: error message in newly installed mylar3

Post by headstone1734 »

I moved the cache to another folder and it is working... will see if i can figure out why the app user couldn't right to that folder as it appears to be the root user that running it, but i may be wrong.. Thanks for the quick response!
Post Reply