Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

An error occurred in the Zilean setup: 'NoneType' object has no attribute 'lower' #54

Closed
profucius opened this issue Sep 24, 2024 · 4 comments
Assignees
Labels
bug Something isn't working

Comments

@profucius
Copy link

profucius commented Sep 24, 2024

Describe the bug
I've been using DMB/Riven for the past couple weeks successfully. But something happened to my setup in the past day or two, I just realized it today. I haven't made any changes manually that would've caused this to my knowledge.

I've attached the error log below. It appears that the log states "ERROR - An error occurred in the Zilean setup: 'NoneType' object has no attribute 'lower'" and then immediately after it says "INFO - Shutdown signal received. Cleaning up..."

I had Zilean enabled at one point, but I actually disabled it in the Riven settings.json file, and this is still happening.

Any idea what I should do to resolve this?

Please complete the following information:
OS: Proxmox LXC with only Portainer/Docker.
Version: Portainer 2.21.0 Community Edition (self-hosted)
Supporting Applications:

Error log:

Sep 23, 2024 18:43:11 - INFO - 
                                                                       
DDDDDDDDDDDDD        MMMMMMMM               MMMMMMMMBBBBBBBBBBBBBBBBB   
D::::::::::::DDD     M:::::::M             M:::::::MB::::::::::::::::B  
D:::::::::::::::DD   M::::::::M           M::::::::MB::::::BBBBBB:::::B 
DDD:::::DDDDD:::::D  M:::::::::M         M:::::::::MBB:::::B     B:::::B
  D:::::D    D:::::D M::::::::::M       M::::::::::M  B::::B     B:::::B
  D:::::D     D:::::DM:::::::::::M     M:::::::::::M  B::::B     B:::::B
  D:::::D     D:::::DM:::::::M::::M   M::::M:::::::M  B::::BBBBBB:::::B 
  D:::::D     D:::::DM::::::M M::::M M::::M M::::::M  B:::::::::::::BB  
  D:::::D     D:::::DM::::::M  M::::M::::M  M::::::M  B::::BBBBBB:::::B 
  D:::::D     D:::::DM::::::M   M:::::::M   M::::::M  B::::B     B:::::B
  D:::::D     D:::::DM::::::M    M:::::M    M::::::M  B::::B     B:::::B
  D:::::D    D:::::D M::::::M     MMMMM     M::::::M  B::::B     B:::::B
DDD:::::DDDDD:::::D  M::::::M               M::::::MBB:::::BBBBBB::::::B
D:::::::::::::::DD   M::::::M               M::::::MB:::::::::::::::::B 
D::::::::::::DDD     M::::::M               M::::::MB::::::::::::::::B  
DDDDDDDDDDDDD        MMMMMMMM               MMMMMMMMBBBBBBBBBBBBBBBBB   
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       
                              Version: 5.1.7                                    

Sep 23, 2024 18:43:11 - INFO - Setting up Zurg
Sep 23, 2024 18:43:11 - INFO - Setting up Zurg w/ RealDebrid instance in directory: /zurg/RD/
Sep 23, 2024 18:43:11 - INFO - Found Zurg version v0.9.3-final in /zurg/RD/
Sep 23, 2024 18:43:11 - INFO - Preparing Zurg instance for RealDebrid
Sep 23, 2024 18:43:11 - INFO - Using Zurg app found for RealDebrid in /zurg/RD/
Sep 23, 2024 18:43:11 - INFO - Zurg setup process complete
Sep 23, 2024 18:43:11 - INFO - Automatic update disabled for Zurg
Sep 23, 2024 18:43:11 - INFO - Starting Zurg w/ RealDebrid subprocess
Sep 23, 2024 18:43:11 - INFO - Zurg process started with PID: 15
Sep 23, 2024 18:43:11 - INFO - Checking rclone flags
Sep 23, 2024 18:43:11 - INFO - Configuring the rclone mount name to "DMB"
Sep 23, 2024 18:43:11 - INFO - Configuring rclone for DMB
Sep 23, 2024 18:43:11 - INFO - Zurg w/ RealDebrid subprocess: Logging to logs/zurg-2024-09-23.log
Sep 23, 2024 18:43:11 - INFO - Zurg w/ RealDebrid subprocess: | zurg | Version: v0.9.3-final
Sep 23, 2024 18:43:11 - INFO - Zurg w/ RealDebrid subprocess: | zurg | GitCommit: 4179c2745b4fb22fcb37f36de27b3daa39f114f0
Sep 23, 2024 18:43:11 - INFO - Zurg w/ RealDebrid subprocess: | zurg | BuiltAt: 2024-07-14T09:48:30
Sep 23, 2024 18:43:11 - INFO - Zurg w/ RealDebrid subprocess: | zurg | Debug logging is enabled; if you are not debugging please set LOG_LEVEL=info in your environment
Sep 23, 2024 18:43:11 - INFO - Zurg w/ RealDebrid subprocess: | zurg | Starting server on [::]:9250
Sep 23, 2024 18:43:11 - INFO - Zurg w/ RealDebrid subprocess: | zurg | Your account will expire in 446 days
Sep 23, 2024 18:43:16 - INFO - Waiting to start the rclone process until the Zurg WebDAV http://localhost:9250/dav/ is accessible.
Sep 23, 2024 18:43:16 - INFO - The Zurg WebDAV URL http://localhost:9250/dav is accessible. Starting rclone for DMB
Sep 23, 2024 18:43:16 - INFO - Starting rclone w/ DMB subprocess
Sep 23, 2024 18:43:16 - INFO - rclone process started with PID: 25
Sep 23, 2024 18:43:16 - INFO - rclone startup complete
Sep 23, 2024 18:43:16 - INFO - Setting up PostgreSQL...
Sep 23, 2024 18:43:16 - INFO - PostgreSQL data directory exists at /postgres_data.
Sep 23, 2024 18:43:16 - INFO - Changed ownership and set permissions of /postgres_data.
Sep 23, 2024 18:43:16 - INFO - Starting PostgreSQL subprocess
Sep 23, 2024 18:43:16 - INFO - PostgreSQL process started with PID: 36
Sep 23, 2024 18:43:16 - INFO - Checking if PostgreSQL server has started...
Sep 23, 2024 18:43:16 - INFO - PostgreSQL subprocess: starting PostgreSQL 16.3 on x86_64-alpine-linux-musl, compiled by gcc (Alpine 13.2.1_git20240309) 13.2.1 20240309, 64-bit
Sep 23, 2024 18:43:16 - INFO - PostgreSQL subprocess: listening on IPv6 address "::1", port 5432
Sep 23, 2024 18:43:16 - INFO - PostgreSQL subprocess: listening on IPv4 address "127.0.0.1", port 5432
Sep 23, 2024 18:43:16 - INFO - PostgreSQL subprocess: listening on Unix socket "/run/postgresql/.s.PGSQL.5432"
Sep 23, 2024 18:43:16 - INFO - PostgreSQL subprocess: database system was shut down at 2024-09-23 23:39:51 UTC
Sep 23, 2024 18:43:16 - INFO - PostgreSQL subprocess: database system is ready to accept connections
Sep 23, 2024 18:43:18 - INFO - PostgreSQL server has started.
Sep 23, 2024 18:43:18 - INFO - Database 'riven' already exists.
Sep 23, 2024 18:43:18 - INFO - Checking if PostgreSQL database is accessible...
Sep 23, 2024 18:43:18 - INFO - PostgreSQL database is accessible.
Sep 23, 2024 18:43:18 - INFO - Listing PostgreSQL database sizes...
Sep 23, 2024 18:43:18 - INFO - Database: postgres, Size: 7508 kB
Sep 23, 2024 18:43:18 - INFO - Database: riven, Size: 8540 kB
Sep 23, 2024 18:43:18 - INFO - Database: template1, Size: 7417 kB
Sep 23, 2024 18:43:18 - INFO - Database: template0, Size: 7353 kB
Sep 23, 2024 18:43:18 - INFO - Database: zilean, Size: 264 MB
Sep 23, 2024 18:43:18 - INFO - Configuring Zilean
Sep 23, 2024 18:43:18 - INFO - Fetching latest zilean release.
Sep 23, 2024 18:43:18 - INFO - zilean latest release: v2.0.0
Sep 23, 2024 18:43:18 - INFO - Fetching release information from https://api.github.com/repos/iPromKnight/zilean/releases/tags/v2.0.0
Sep 23, 2024 18:43:18 - INFO - No assets found. Using zipball_url.
Sep 23, 2024 18:43:18 - INFO - Downloading from https://api.github.com/repos/iPromKnight/zilean/zipball/v2.0.0
Sep 23, 2024 18:43:18 - INFO - Successfully downloaded the latest release for Zilean
Sep 23, 2024 18:43:18 - INFO - Setting up Python environment in ./zilean
Sep 23, 2024 18:43:18 - INFO - Starting python_env_setup subprocess
Sep 23, 2024 18:43:18 - INFO - python_env_setup process started with PID: 55
Sep 23, 2024 18:43:20 - INFO - Starting install_requirements subprocess
Sep 23, 2024 18:43:20 - INFO - install_requirements process started with PID: 64
Sep 23, 2024 18:43:21 - INFO - install_requirements subprocess: Requirement already satisfied: loguru==0.7.2 in ./venv/lib/python3.11/site-packages (from -r /zilean/requirements.txt (line 1)) (0.7.2)
Sep 23, 2024 18:43:21 - INFO - install_requirements subprocess: Requirement already satisfied: rank-torrent-name==1.0.4 in ./venv/lib/python3.11/site-packages (from -r /zilean/requirements.txt (line 3)) (1.0.4)
Sep 23, 2024 18:43:21 - INFO - install_requirements subprocess: Requirement already satisfied: pygments<3.0.0,>=2.13.0 in ./venv/lib/python3.11/site-packages (from rich==13.8.0->-r /zilean/requirements.txt (line 2)) (2.18.0)
Sep 23, 2024 18:43:21 - INFO - install_requirements subprocess: Requirement already satisfied: parsett<2.0.0,>=1.2.5 in ./venv/lib/python3.11/site-packages (from rank-torrent-name==1.0.4->-r /zilean/requirements.txt (line 3)) (1.3.1)
Sep 23, 2024 18:43:21 - INFO - install_requirements subprocess: Requirement already satisfied: regex<2024.0.0,>=2023.12.25 in ./venv/lib/python3.11/site-packages (from rank-torrent-name==1.0.4->-r /zilean/requirements.txt (line 3)) (2023.12.25)
Sep 23, 2024 18:43:21 - INFO - install_requirements subprocess: Requirement already satisfied: rapidfuzz<4.0.0,>=3.8.0 in ./venv/lib/python3.11/site-packages (from levenshtein<0.26.0,>=0.25.0->rank-torrent-name==1.0.4->-r /zilean/requirements.txt (line 3)) (3.10.0)
Sep 23, 2024 18:43:21 - INFO - install_requirements subprocess: Requirement already satisfied: mdurl~=0.1 in ./venv/lib/python3.11/site-packages (from markdown-it-py>=2.2.0->rich==13.8.0->-r /zilean/requirements.txt (line 2)) (0.1.2)
Sep 23, 2024 18:43:21 - INFO - install_requirements subprocess: Requirement already satisfied: arrow<2.0.0,>=1.3.0 in ./venv/lib/python3.11/site-packages (from parsett<2.0.0,>=1.2.5->rank-torrent-name==1.0.4->-r /zilean/requirements.txt (line 3)) (1.3.0)
Sep 23, 2024 18:43:21 - INFO - install_requirements subprocess: Requirement already satisfied: pydantic-core==2.23.4 in ./venv/lib/python3.11/site-packages (from pydantic<3.0.0,>=2.6.3->rank-torrent-name==1.0.4->-r /zilean/requirements.txt (line 3)) (2.23.4)
Sep 23, 2024 18:43:21 - INFO - install_requirements subprocess: Requirement already satisfied: python-dateutil>=2.7.0 in ./venv/lib/python3.11/site-packages (from arrow<2.0.0,>=1.3.0->parsett<2.0.0,>=1.2.5->rank-torrent-name==1.0.4->-r /zilean/requirements.txt (line 3)) (2.9.0.post0)
Sep 23, 2024 18:43:21 - INFO - install_requirements subprocess: Requirement already satisfied: six>=1.5 in ./venv/lib/python3.11/site-packages (from python-dateutil>=2.7.0->arrow<2.0.0,>=1.3.0->parsett<2.0.0,>=1.2.5->rank-torrent-name==1.0.4->-r /zilean/requirements.txt (line 3)) (1.16.0)
Sep 23, 2024 18:43:21 - INFO - install_requirements subprocess: [notice] A new release of pip is available: 24.0 -> 24.2
Sep 23, 2024 18:43:21 - INFO - install_requirements subprocess: [notice] To update, run: pip install --upgrade pip
Sep 23, 2024 18:43:21 - INFO - Python environment setup and requirements installation complete
Sep 23, 2024 18:43:21 - INFO - Setting up .NET environment in ./zilean
Sep 23, 2024 18:43:21 - INFO - Starting dotnet_env_restore subprocess
Sep 23, 2024 18:43:21 - INFO - dotnet_env_restore process started with PID: 72
Sep 23, 2024 18:43:22 - INFO - dotnet_env_restore subprocess: Determining projects to restore...
Sep 23, 2024 18:43:23 - INFO - dotnet_env_restore subprocess: All projects are up-to-date for restore.
Sep 23, 2024 18:43:23 - INFO - Starting dotnet_publish_api subprocess
Sep 23, 2024 18:43:23 - INFO - dotnet_publish_api process started with PID: 173
Sep 23, 2024 18:43:23 - INFO - dotnet_publish_api subprocess: MSBuild version 17.8.5+b5265ef37 for .NET
Sep 23, 2024 18:43:27 - INFO - Zurg w/ RealDebrid subprocess: | manager | Fetched info for 1503 torrents
Sep 23, 2024 18:43:27 - INFO - Zurg w/ RealDebrid subprocess: | manager | Compiled into 1503 torrents, 0 were missing info
Sep 23, 2024 18:43:28 - INFO - dotnet_publish_api subprocess: Zilean.Database -> /zilean/src/Zilean.Database/bin/Release/net8.0/Zilean.Database.dll
Sep 23, 2024 18:43:29 - INFO - dotnet_publish_api subprocess: Zilean.ApiService -> /zilean/src/Zilean.ApiService/bin/Release/net8.0/zilean-api.dll
Sep 23, 2024 18:43:29 - INFO - Zurg w/ RealDebrid subprocess: | manager | Starting periodic repair job
Sep 23, 2024 18:43:29 - INFO - Zurg w/ RealDebrid subprocess: | manager | Periodic repair started; searching for broken torrents
Sep 23, 2024 18:43:29 - INFO - Zurg w/ RealDebrid subprocess: | manager | Starting periodic refresh job
Sep 23, 2024 18:43:29 - INFO - Zurg w/ RealDebrid subprocess: | manager | Finished repairing 0 broken torrents
Sep 23, 2024 18:43:29 - INFO - Starting dotnet_publish_scraper subprocess
Sep 23, 2024 18:43:29 - INFO - dotnet_publish_scraper process started with PID: 269
Sep 23, 2024 18:43:29 - INFO - dotnet_publish_scraper subprocess: MSBuild version 17.8.5+b5265ef37 for .NET
Sep 23, 2024 18:43:31 - INFO - dotnet_publish_scraper subprocess: Zilean.Shared -> /zilean/src/Zilean.Shared/bin/Release/net8.0/Zilean.Shared.dll
Sep 23, 2024 18:43:32 - INFO - dotnet_publish_scraper subprocess: /zilean/src/Zilean.DmmScraper/Features/Bootstrapping/ServiceLifetime.cs(3,106): warning CS9113: Parameter 'serviceProvider' is unread. [/zilean/src/Zilean.DmmScraper/Zilean.DmmScraper.csproj]
Sep 23, 2024 18:43:32 - INFO - dotnet_publish_scraper subprocess: /zilean/src/Zilean.DmmScraper/Features/Bootstrapping/ServiceLifetime.cs(3,148): warning CS9113: Parameter 'logger' is unread. [/zilean/src/Zilean.DmmScraper/Zilean.DmmScraper.csproj]
Sep 23, 2024 18:43:32 - INFO - dotnet_publish_scraper subprocess: Zilean.DmmScraper -> /zilean/app/
Sep 23, 2024 18:43:32 - INFO - Dotnet environment setup and publish complete

Sep 23, 2024 18:43:32 - ERROR - An error occurred in the Zilean setup: 'NoneType' object has no attribute 'lower'

Sep 23, 2024 18:43:32 - INFO - Shutdown signal received. Cleaning up...
Sep 23, 2024 18:43:32 - INFO - Stopping riven_frontend
Sep 23, 2024 18:43:32 - WARNING - riven_frontend process not found or already stopped.
Sep 23, 2024 18:43:32 - INFO - Stopping riven_backend
Sep 23, 2024 18:43:32 - WARNING - riven_backend process not found or already stopped.
Sep 23, 2024 18:43:32 - INFO - Stopping Zilean
Sep 23, 2024 18:43:32 - WARNING - Zilean process not found or already stopped.
Sep 23, 2024 18:43:32 - INFO - Stopping PostgreSQL
Sep 23, 2024 18:43:32 - INFO - PostgreSQL subprocess: received smart shutdown request
Sep 23, 2024 18:43:32 - INFO - PostgreSQL subprocess: background worker "logical replication launcher" (PID 46) exited with exit code 1
Sep 23, 2024 18:43:32 - INFO - PostgreSQL subprocess: shutting down
Sep 23, 2024 18:43:32 - INFO - PostgreSQL subprocess: checkpoint starting: shutdown immediate
Sep 23, 2024 18:43:32 - INFO - PostgreSQL subprocess: checkpoint complete: wrote 3 buffers (0.0%); 0 WAL file(s) added, 0 removed, 0 recycled; write=0.009 s, sync=0.004 s, total=0.034 s; sync files=2, longest=0.003 s, average=0.002 s; distance=0 kB, estimate=0 kB; lsn=0/681C0510, redo lsn=0/681C0510
Sep 23, 2024 18:43:32 - INFO - PostgreSQL subprocess: database system is shut down
Sep 23, 2024 18:43:32 - INFO - PostgreSQL process terminated gracefully.
Sep 23, 2024 18:43:32 - INFO - Stopping Zurg
Sep 23, 2024 18:43:32 - INFO - Zurg process terminated gracefully.
Sep 23, 2024 18:43:32 - INFO - Stopping rclone
Sep 23, 2024 18:43:32 - ERROR - rclone mount name "DMB": /data/DMB: Unmounted rclone mount
Sep 23, 2024 18:43:32 - INFO - rclone process terminated gracefully.
Sep 23, 2024 18:43:32 - INFO - Shutdown complete.
@I-am-PUID-0
Copy link
Owner

If you want to disable Zilean, ensure that ZILEAN_ENABLED is commented out in the compose or set to false.

@I-am-PUID-0 I-am-PUID-0 self-assigned this Sep 24, 2024
@I-am-PUID-0 I-am-PUID-0 added the bug Something isn't working label Sep 24, 2024
@I-am-PUID-0 I-am-PUID-0 changed the title DMB shutting down, cannot reach Riven WebUI An error occurred in the Zilean setup: 'NoneType' object has no attribute 'lower' Sep 24, 2024
@profucius
Copy link
Author

profucius commented Sep 24, 2024

I think it wasn't Zilean after all. I disabled it via your instruction, and then I got a different error:

Sep 23, 2024 21:54:36 - ERROR - riven_backend subprocess: | program.settings.manager:load:71 - Error validating settings: 93 validation errors for AppModel

which lead me to replace my Riven settings.json, which allowed Riven to successfully start. Very strange, I didn't change anything in it to cause the issue. Anyway I'll close this out!

@I-am-PUID-0
Copy link
Owner

I think it wasn't Zilean after all. I disabled it via your instruction, and then I got a different error:

Sep 23, 2024 21:54:36 - ERROR - riven_backend subprocess: | program.settings.manager:load:71 - Error validating settings: 93 validation errors for AppModel

which lead me to replace my Riven settings.json, which allowed Riven to successfully start. Very strange, I didn't change anything in it to cause the issue. Anyway I'll close this out!

This was probably related to the latest Riven backend release; it required resetting the database and settings in most instances.

Your original issue was related to ZILEAN_UPDATE not being enabled and is now resolved in Version [5.1.9]

@profucius
Copy link
Author

Oh interesting, I wasn't aware of the Riven backend update. I'll subscribe to that channel so I can keep track of changes proactively. And thanks for the heads up and fixing the other issue too.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Development

No branches or pull requests

2 participants