pymedusa / Medusa

Automatic Video Library Manager for TV Shows. It watches for new episodes of your favorite shows, and when they are posted it does its magic.
https://pymedusa.com
GNU General Public License v3.0
1.8k stars 276 forks source link

Medusa Log issue #3611

Closed saitoh183 closed 6 years ago

saitoh183 commented 6 years ago

Before submitting your issue:

Enable debug logging in Medusa settings, reproduce the error (be sure to disable after the bug is fixed)

Branch/Commit: OS: What you did: Dont really know when it started What happened: Logs with Debug look like below and in GUI there are no info/warning/error logs What you expected: Logs:

11e**********-9d29-a0**********69fbcd**********8**********)
2018-01-16 0**********:21:18 DEBUG    SHOWQUEUE-REFRESH :: [e1628********************] Image already exists, not downloading
2018-01-16 0**********:21:18 INFO     SHOWQUEUE-REFRESH :: [e1628********************] Cache check completed
2018-01-16 0**********:21:18 DEBUG    SHOWQUEUE-REFRESH :: [e1628********************] Looking up XEM scene mapping for show ID **********2908********** on TVDBv2
2018-01-16 0**********:21:18 DEBUG    SHOWQUEUE-REFRESH :: [e1628********************] GET URL: http://thexem.de/map/havemap?origin=tvdb [Status: 200]
2018-01-16 0**********:21:18 DEBUG    SHOWQUEUE-REFRESH :: [e1628********************] User-Agent: Medusa/0.1.2********** (Linux; **********.1**********.0-1**********2-generic; **********28b**********d06-fa**********1-11e**********-9d29-a0**********69fbcd**********8**********)
2018-01-16 0**********:21:18 DEBUG    SHOWQUEUE-REFRESH :: [e1628********************] No XEM data for show ID **********2908********** on TVDBv2

Why do my logs look like this and also they dont appear in on the webpage

image

labrys commented 6 years ago

You have an overly simplistic password or username set somewhere. When filtering known usernames and passwords from the logs its mangling the date time and commit hash in the loglines which is preventing the log filter from properly processing them for the UI. Please set your username/passwords to something more secure.

saitoh183 commented 6 years ago

I changed the password and username and restarted...the log in the GUI doesnt seem to update (or change from the last time) and the logfile itself has stuff that i cant see in the GUI... i dont know what is going on

labrys commented 6 years ago

Somewhere you have an apikey, password, username, or something that is the value 5. You also have the value 3 as another apikey, password, or username.

saitoh183 commented 6 years ago

@labrys

Thanks...the issue was that for some reason the torrent categories were messed up. I had added them and they were fine (5040,5030) but when i went to check a few were now showing one number per line

5
0
3
0
5
0
4
5
p0psicles commented 6 years ago

Can you go into a little bit more detail? What is your provider setup?

saitoh183 commented 6 years ago

@p0psicles

It seemed to be all the newznab ones that didnt save correctly even if they looked fine when i hit saved.

heymoe commented 6 years ago

Weird, I was having the same issue with my logging.

The custom search provider I setup had the category IDs displayed like @saitoh183 noted above and when I looked at the config.ini file, the config entry looked like this:

custom_cat_ids = 5, 0, 3, 0, "", "", 5, 0, 4, 0

I went back and refreshed and then re-added the 2 categories and they got added back to the config.ini like this:

custom_cat_ids = 5030, 5040

After a restart, my logs look normal again.

I have no clue how or why the categories got added like the did initially but everything seems happy now in log land.

p0psicles commented 6 years ago

I think it's a config migration issue we had long time ago. It was fixed. But maybe your config was mutated before the fix. And it does not resolve itself.

heymoe commented 6 years ago

I started with fresh Medusa install since there didn't seem to be a migration path from a SickRage. I installed Medusa sometime last December using the master branch but don't remember what the actual release / build version was back then.