Open chadberg opened 3 years ago
Which browser and version are you using?
Firefox 86
Checking journalctl, I can see a bit more. I proxy through nginx, and I'm getting the following error:
Feb 26 13:27:50 nginx[2304328]: 2021/02/26 13:27:50 [error] 2304328#2304328: *1397 connect() failed (111: Unknown error) while connecting to upstream, client: ......, server: ......, request: "GET /medusa/home/ HTTP/2.0", upstream: "http://[::1]:8099/medusa/home/", host: "........", referrer: "https://....../medusa/home/"
So even the nginx proxy on the same machine can't connect. Not likely a browser issue.
Probably your Medusa is not starting at all.
Try to start it from command line with python3 path/to/medusa/medusa/start.py
.
Nope, that's not it. Both systemd and ps aux show it running.
ps aux|grep Medusa
2419243 1.6 0.3 1718392 170916 ? Ssl 12:46 1:25 /usr/bin/python3 /path/to/Medusa/start.py -q --nolaunch --config /path/to/Medusa/config.ini --datadir /path/to/Medusa
Also, if it weren't running at all, the first half of the UI wouldn't load, nginx would give a blank screen/error in the browser. See the screenshot above you'll see the UI is half loaded.
Can you still stop the service and run it from terminal as I suggested? The page could be cached.
Yes, I'll give it a go.
Had to kill python3 to do it. Like before, force quitting and relaunching is working for now, will keep it running in tmux and see what happens when this reoccurs.
Able to trigger the issue by launching the postprocessor. Nothing in the logs/stdout. These are the latest entries:
2021-02-26 15:52:50 INFO TORNADO :: [b21beeb] 200 GET /medusa/home/ (127.0.0.1) 2.51ms
2021-02-26 15:52:50 INFO TORNADO :: [b21beeb] 101 GET /medusa/ws/ui (127.0.0.1) 0.68ms
2021-02-26 15:52:50 INFO TORNADO :: [b21beeb] 200 GET /medusa/api/v2/stats/ (127.0.0.1) 29.22ms
2021-02-26 15:52:50 INFO TORNADO :: [b21beeb] 200 GET /medusa/api/v2/series?limit=1000&page=1 (127.0.0.1) 60.52ms
2021-02-26 15:52:50 INFO TORNADO :: [b21beeb] 200 GET /medusa/api/v2/stats/show (127.0.0.1) 48.30ms
The old postprocessor locks the UI. This is addressed in the new postprocessor in develop branch
Good to know. Thanks.
Switched to develop branch. So far so good. Will continue to monitor.
By default you'll use old postprocessor. You'll have to set it up through using download handler
Having the same issue, not sure how to solve it?
Same issue here on windows 10 after a manual install of Medusa to have access to mapped folders on NAS...
log on py.exe console
Unable to find C:\Medusa\config.ini, all settings will be default! 2022-09-22 15:36:01 INFO MAIN :: [] Changed https cert path to server.crt 2022-09-22 15:36:01 INFO MAIN :: [] Changed https key path to server.key 2022-09-22 15:36:01 INFO MAIN :: [] Broken providers found: ['danishbits', 'btdb', 'hdtorrents'] 2022-09-22 15:36:02 WARNING MAIN :: [] git symbolic-ref -q HEAD returned (128) : fatal: detected dubious ownership in repository at 'C:/Medusa' 'C:/Medusa' is owned by: 'S-1-5-32-544' but the current user is: 'S-1-5-21-2335123420-3057103355-3463489561-1001' To add an exception for this directory, call:
git config --global --add safe.directory C:/Medusa
2022-09-22 15:36:02 WARNING MAIN :: [] git rev-parse HEAD returned (128) : fatal: detected dubious ownership in repository at 'C:/Medusa' 'C:/Medusa' is owned by: 'S-1-5-32-544' but the current user is: 'S-1-5-21-2335123420-3057103355-3463489561-1001' To add an exception for this directory, call:
git config --global --add safe.directory C:/Medusa
2022-09-22 15:36:02 WARNING MAIN :: [] git describe --tags --abbrev=0 None returned (128) : fatal: detected dubious ownership in repository at 'C:/Medusa' 'C:/Medusa' is owned by: 'S-1-5-32-544' but the current user is: 'S-1-5-21-2335123420-3057103355-3463489561-1001' To add an exception for this directory, call:
git config --global --add safe.directory C:/Medusa
2022-09-22 15:36:02 WARNING MAIN :: [] git rev-parse HEAD returned (128) : fatal: detected dubious ownership in repository at 'C:/Medusa' 'C:/Medusa' is owned by: 'S-1-5-32-544' but the current user is: 'S-1-5-21-2335123420-3057103355-3463489561-1001' To add an exception for this directory, call:
git config --global --add safe.directory C:/Medusa
2022-09-22 15:36:02 WARNING MAIN :: [] git describe --tags --abbrev=0 None returned (128) : fatal: detected dubious ownership in repository at 'C:/Medusa' 'C:/Medusa' is owned by: 'S-1-5-32-544' but the current user is: 'S-1-5-21-2335123420-3057103355-3463489561-1001' To add an exception for this directory, call:
git config --global --add safe.directory C:/Medusa
2022-09-22 15:36:03 INFO MAIN :: [] Backing up database before upgrade 2022-09-22 15:36:03 INFO MAIN :: [] Proceeding with upgrade 2022-09-22 15:36:03 INFO MAIN :: [] Add minor version numbers to database 2022-09-22 15:36:03 INFO MAIN :: [] [MAIN-DB] Updated major version to: 43.0 2022-09-22 15:36:03 INFO MAIN :: [] [MAIN-DB] Updated minor version to: 43.1 2022-09-22 15:36:03 INFO MAIN :: [] Backing up database before upgrade 2022-09-22 15:36:03 INFO MAIN :: [] Proceeding with upgrade 2022-09-22 15:36:03 INFO MAIN :: [] Test major and minor version updates database 2022-09-22 15:36:03 INFO MAIN :: [] [MAIN-DB] Updated major version to: 44.0 2022-09-22 15:36:03 INFO MAIN :: [] [MAIN-DB] Updated minor version to: 44.1 2022-09-22 15:36:03 INFO MAIN :: [] Backing up database before upgrade 2022-09-22 15:36:03 INFO MAIN :: [] Proceeding with upgrade 2022-09-22 15:36:03 INFO MAIN :: [] Adding column proper_tags to history 2022-09-22 15:36:03 INFO MAIN :: [] [MAIN-DB] Updated minor version to: 44.2 2022-09-22 15:36:03 INFO MAIN :: [] Backing up database before upgrade 2022-09-22 15:36:03 INFO MAIN :: [] Proceeding with upgrade 2022-09-22 15:36:03 INFO MAIN :: [] Adding column manually_searched to history 2022-09-22 15:36:03 INFO MAIN :: [] Adding column manually_searched to tv_episodes 2022-09-22 15:36:03 INFO MAIN :: [] [MAIN-DB] Updated minor version to: 44.3 2022-09-22 15:36:03 INFO MAIN :: [] Backing up database before upgrade 2022-09-22 15:36:03 INFO MAIN :: [] Proceeding with upgrade 2022-09-22 15:36:03 INFO MAIN :: [] Adding column info_hash in history 2022-09-22 15:36:03 INFO MAIN :: [] [MAIN-DB] Updated minor version to: 44.4 2022-09-22 15:36:03 INFO MAIN :: [] Backing up database before upgrade 2022-09-22 15:36:03 INFO MAIN :: [] Proceeding with upgrade 2022-09-22 15:36:03 INFO MAIN :: [] Adding column plot in imdb_info 2022-09-22 15:36:03 INFO MAIN :: [] Adding column plot in tv_show 2022-09-22 15:36:03 INFO MAIN :: [] [MAIN-DB] Updated minor version to: 44.5 2022-09-22 15:36:03 INFO MAIN :: [] Backing up database before upgrade 2022-09-22 15:36:03 INFO MAIN :: [] Proceeding with upgrade 2022-09-22 15:36:03 INFO MAIN :: [] Adding column size in history 2022-09-22 15:36:03 INFO MAIN :: [] [MAIN-DB] Updated minor version to: 44.6 2022-09-22 15:36:03 INFO MAIN :: [] Backing up database before upgrade 2022-09-22 15:36:03 INFO MAIN :: [] Proceeding with upgrade 2022-09-22 15:36:03 INFO MAIN :: [] Adding PK to mindexer column in indexer_mapping table 2022-09-22 15:36:03 INFO MAIN :: [] [MAIN-DB] Updated minor version to: 44.7 2022-09-22 15:36:03 INFO MAIN :: [] Backing up database before upgrade 2022-09-22 15:36:03 INFO MAIN :: [] Proceeding with upgrade 2022-09-22 15:36:03 INFO MAIN :: [] Make indexer and indexer_id as INTEGER in tv_episodes table 2022-09-22 15:36:03 INFO MAIN :: [] [MAIN-DB] Updated minor version to: 44.8 2022-09-22 15:36:03 INFO MAIN :: [] Backing up database before upgrade 2022-09-22 15:36:03 INFO MAIN :: [] Proceeding with upgrade 2022-09-22 15:36:03 INFO MAIN :: [] Adding column indexer_id in history 2022-09-22 15:36:03 INFO MAIN :: [] Adding column indexer_id in blacklist 2022-09-22 15:36:03 INFO MAIN :: [] Adding column indexer_id in whitelist 2022-09-22 15:36:03 INFO MAIN :: [] Adding column indexer in imdb_info 2022-09-22 15:36:03 INFO MAIN :: [] Dropping the unique index on idx_indexer_id 2022-09-22 15:36:03 INFO MAIN :: [] Dropping the primary key on the table xem_refresh 2022-09-22 15:36:03 INFO MAIN :: [] Updating indexer field on table blacklist. Using the series id to match with field show_id 2022-09-22 15:36:03 INFO MAIN :: [] Updating indexer field on table whitelist. Using the series id to match with field show_id 2022-09-22 15:36:03 INFO MAIN :: [] Updating indexer field on table history. Using the series id to match with field showid 2022-09-22 15:36:03 INFO MAIN :: [] Updating indexer field on table imdb_info. Using the series id to match with field indexer_id 2022-09-22 15:36:03 INFO MAIN :: [] [MAIN-DB] Updated minor version to: 44.9 2022-09-22 15:36:03 INFO MAIN :: [] Backing up database before upgrade 2022-09-22 15:36:03 INFO MAIN :: [] Proceeding with upgrade 2022-09-22 15:36:03 INFO MAIN :: [] Adding new quality field in the tv_episodes table 2022-09-22 15:36:03 INFO MAIN :: [] Dropping the index on idx_sta_epi_air 2022-09-22 15:36:03 INFO MAIN :: [] Dropping the index on idx_sta_epi_sta_air 2022-09-22 15:36:03 INFO MAIN :: [] Dropping the index on idx_status 2022-09-22 15:36:03 INFO MAIN :: [] Splitting the composite status into status and quality 2022-09-22 15:36:03 INFO MAIN :: [] Removing the quality from the action field, as this is a composite status 2022-09-22 15:36:03 INFO MAIN :: [] [MAIN-DB] Updated minor version to: 44.10 2022-09-22 15:36:03 INFO MAIN :: [] Backing up database before upgrade 2022-09-22 15:36:03 INFO MAIN :: [] Proceeding with upgrade 2022-09-22 15:36:03 INFO MAIN :: [] Shift qualities in tv_shows one place to the left. 2022-09-22 15:36:03 INFO MAIN :: [] Shift qualities in tv_episodes one place to the left. 2022-09-22 15:36:03 INFO MAIN :: [] Shift qualities in history one place to the left. 2022-09-22 15:36:03 INFO MAIN :: [] [MAIN-DB] Updated minor version to: 44.11 2022-09-22 15:36:03 INFO MAIN :: [] Backing up database before upgrade 2022-09-22 15:36:03 INFO MAIN :: [] Proceeding with upgrade 2022-09-22 15:36:03 INFO MAIN :: [] Adding new watched field in the tv_episodes table 2022-09-22 15:36:03 INFO MAIN :: [] [MAIN-DB] Updated minor version to: 44.12 2022-09-22 15:36:03 INFO MAIN :: [] Backing up database before upgrade 2022-09-22 15:36:03 INFO MAIN :: [] Proceeding with upgrade 2022-09-22 15:36:03 INFO MAIN :: [] Adding new airdate_offset field in the tv_shows table 2022-09-22 15:36:03 INFO MAIN :: [] [MAIN-DB] Updated minor version to: 44.13 2022-09-22 15:36:03 INFO MAIN :: [] Backing up database before upgrade 2022-09-22 15:36:03 INFO MAIN :: [] Proceeding with upgrade 2022-09-22 15:36:03 INFO MAIN :: [] Adding release ignore and require exclude option flags to the tv_shows table 2022-09-22 15:36:03 INFO MAIN :: [] [MAIN-DB] Updated minor version to: 44.14 2022-09-22 15:36:03 INFO MAIN :: [] Backing up database before upgrade 2022-09-22 15:36:03 INFO MAIN :: [] Proceeding with upgrade 2022-09-22 15:36:03 INFO MAIN :: [] Creating a new table scene_exceptions in the main.db database. 2022-09-22 15:36:04 INFO MAIN :: [] [MAIN-DB] Updated minor version to: 44.15 2022-09-22 15:36:04 INFO MAIN :: [] Backing up database before upgrade 2022-09-22 15:36:04 INFO MAIN :: [] Proceeding with upgrade 2022-09-22 15:36:04 INFO MAIN :: [] Addin show_lists field to tv_shows. 2022-09-22 15:36:04 INFO MAIN :: [] [MAIN-DB] Updated minor version to: 44.16 2022-09-22 15:36:04 INFO MAIN :: [] Backing up database before upgrade 2022-09-22 15:36:04 INFO MAIN :: [] Proceeding with upgrade 2022-09-22 15:36:04 INFO MAIN :: [] Creating a new table custom_logs in the main.db database. 2022-09-22 15:36:04 INFO MAIN :: [] [MAIN-DB] Updated minor version to: 44.17 2022-09-22 15:36:04 INFO MAIN :: [] Backing up database before upgrade 2022-09-22 15:36:04 INFO MAIN :: [] Proceeding with upgrade 2022-09-22 15:36:04 INFO MAIN :: [] Adding column provider_type to the history table 2022-09-22 15:36:04 INFO MAIN :: [] Adding column client_status to the history table 2022-09-22 15:36:04 INFO MAIN :: [] Adding column part_of_batch to the history table 2022-09-22 15:36:04 INFO MAIN :: [] [MAIN-DB] Updated minor version to: 44.18 2022-09-22 15:36:04 INFO MAIN :: [] Backing up database before upgrade 2022-09-22 15:36:04 INFO MAIN :: [] Proceeding with upgrade 2022-09-22 15:36:04 INFO MAIN :: [] Creating a new table search_templates in the main.db database. 2022-09-22 15:36:04 INFO MAIN :: [] Adding new templates field in the tv_shows table 2022-09-22 15:36:04 INFO MAIN :: [] [MAIN-DB] Updated minor version to: 44.19 2022-09-22 15:36:04 INFO MAIN :: [] Backing up database before upgrade 2022-09-22 15:36:04 INFO MAIN :: [] Proceeding with upgrade 2022-09-22 15:36:04 INFO MAIN :: [] [CACHE-DB] Updated major version to: 2.None 2022-09-22 15:36:04 INFO MAIN :: [] Backing up database before upgrade 2022-09-22 15:36:04 INFO MAIN :: [] Proceeding with upgrade 2022-09-22 15:36:04 INFO MAIN :: [] [CACHE-DB] Updated major version to: 3.None 2022-09-22 15:36:04 INFO MAIN :: [] [CACHE-DB] Updated major version to: 4.None 2022-09-22 15:36:04 INFO MAIN :: [] Backing up database before upgrade 2022-09-22 15:36:04 INFO MAIN :: [] Proceeding with upgrade 2022-09-22 15:36:04 INFO MAIN :: [] Shift qualities in history one place to the left. 2022-09-22 15:36:04 INFO MAIN :: [] Update status UNKONWN from tv_episodes 2022-09-22 15:36:04 INFO MAIN :: [] [FAILED-DB] Updated major version to: 3.None 2022-09-22 15:36:04 INFO MAIN :: [] Missing idx_tv_episodes_showid_airdate for TV Episodes table detected, fixing... 2022-09-22 15:36:04 INFO MAIN :: [] Missing idx_showid for TV Episodes table detected, fixing... 2022-09-22 15:36:04 INFO MAIN :: [] Missing idx_status for TV Episodes table detected, fixing... 2022-09-22 15:36:04 INFO MAIN :: [] Missing idx_sta_epi_air for TV Episodes table detected, fixing... 2022-09-22 15:36:04 INFO MAIN :: [] Missing idx_sta_epi_sta_air for TV Episodes table detected, fixing... 2022-09-22 15:36:05 WARNING MAIN :: [] git symbolic-ref -q HEAD returned (128) : fatal: detected dubious ownership in repository at 'C:/Medusa' 'C:/Medusa' is owned by: 'S-1-5-32-544' but the current user is: 'S-1-5-21-2335123420-3057103355-3463489561-1001' To add an exception for this directory, call:
git config --global --add safe.directory C:/Medusa
2022-09-22 15:36:05 INFO MAIN :: [] Starting Medusa [] using 'C:\Medusa\config.ini' 2022-09-22 15:36:05 INFO MAIN :: [] Generating New API key 2022-09-22 15:36:05 INFO TORNADO :: [] Starting Medusa on http://0.0.0.0:8081/ 2022-09-22 15:36:05 INFO MAIN :: [] Checking for scene exception updates from https://cdn.pymedusa.com/scene_exceptions/scene_exceptions_tvdb.json 2022-09-22 15:36:05 INFO MAIN :: [] Checking for scene exception updates from https://cdn.pymedusa.com/scene_exceptions/scene_exceptions_tvmaze.json 2022-09-22 15:36:05 INFO MAIN :: [] Checking for scene exception updates from https://cdn.pymedusa.com/scene_exceptions/scene_exceptions_tmdb.json 2022-09-22 15:36:05 INFO MAIN :: [] Checking for scene exception updates from https://cdn.pymedusa.com/scene_exceptions/scene_exceptions_imdb.json 2022-09-22 15:36:05 INFO MAIN :: [] Checking for XEM scene exceptions updates for TVDBv2 2022-09-22 15:36:06 INFO MAIN :: [] Checking for scene exceptions updates from AniDB 2022-09-22 15:36:06 INFO MAIN :: [] Updated scene exceptions. 2022-09-22 15:36:06 INFO MAIN :: [] Updating exception_cache and exception_season_cache 2022-09-22 15:36:06 INFO MAIN :: [] Finished processing 3894 scene exceptions. 2022-09-22 15:36:06 INFO MAIN :: [] Building internal name cache for all shows
Describe the bug When loading the main page, it starts to load, a small popup at the bottom says '108 out of 108 shows loaded', then the UI stops loading, with an eventual error message of 'Unable to connect to Medusa!'
To Reproduce Steps to reproduce the behavior: Go the main page.
Expected behavior Expect page to load, and poster view to appear.
Screenshots If applicable, add screenshots to help explain your problem.
Medusa (please complete the following information):
Debug logs (at least 50 lines):
Additional context Seems like something overall is getting stuck, not just the main view. I also cannot turn on debugging and it seems variable if other parts of the site will load.