blastbeng / spotisub

Spotify to subsonic Playlist Generator and Importer
MIT License
107 stars 6 forks source link

New python error #28

Closed janaxhell closed 2 months ago

janaxhell commented 2 months ago

I've just noticed that after replacing all the subtify entries in my compose with spotisub (only the subtify words, no other change), this happens when the container starts:

2024-09-17T16:16:23.097106963Z spawned uWSGI master process (pid: 7)
2024-09-17T16:16:23.097674779Z spawned uWSGI worker 1 (pid: 8, cores: 1)
2024-09-17T16:16:23.097979999Z spawned uWSGI http 1 (pid: 9)
2024-09-17T16:16:29.464007769Z Traceback (most recent call last):
2024-09-17T16:16:29.464054677Z   File "/home/user/.local/lib/python3.10/site-packages/sqlalchemy/engine/base.py", line 145, in __init__
2024-09-17T16:16:29.464891573Z     self._dbapi_connection = engine.raw_connection()
2024-09-17T16:16:29.464908734Z   File "/home/user/.local/lib/python3.10/site-packages/sqlalchemy/engine/base.py", line 3275, in raw_connection
2024-09-17T16:16:29.465631066Z     return self.pool.connect()
2024-09-17T16:16:29.465641045Z   File "/home/user/.local/lib/python3.10/site-packages/sqlalchemy/pool/base.py", line 455, in connect
2024-09-17T16:16:29.489958152Z     return _ConnectionFairy._checkout(self)
2024-09-17T16:16:29.490000930Z   File "/home/user/.local/lib/python3.10/site-packages/sqlalchemy/pool/base.py", line 1271, in _checkout
2024-09-17T16:16:29.490008778Z     fairy = _ConnectionRecord.checkout(pool)
2024-09-17T16:16:29.490014490Z   File "/home/user/.local/lib/python3.10/site-packages/sqlalchemy/pool/base.py", line 719, in checkout
2024-09-17T16:16:29.490340895Z     rec = pool._do_get()
2024-09-17T16:16:29.490354291Z   File "/home/user/.local/lib/python3.10/site-packages/sqlalchemy/pool/impl.py", line 168, in _do_get
2024-09-17T16:16:29.490600354Z     with util.safe_reraise():
2024-09-17T16:16:29.490612695Z   File "/home/user/.local/lib/python3.10/site-packages/sqlalchemy/util/langhelpers.py", line 147, in __exit__
2024-09-17T16:16:29.500040675Z     raise exc_value.with_traceback(exc_tb)
2024-09-17T16:16:29.500050662Z   File "/home/user/.local/lib/python3.10/site-packages/sqlalchemy/pool/impl.py", line 166, in _do_get
2024-09-17T16:16:29.507622141Z     return self._create_connection()
2024-09-17T16:16:29.508029363Z   File "/home/user/.local/lib/python3.10/site-packages/sqlalchemy/pool/base.py", line 396, in _create_connection
2024-09-17T16:16:29.508070944Z     return _ConnectionRecord(self)
2024-09-17T16:16:29.508098202Z   File "/home/user/.local/lib/python3.10/site-packages/sqlalchemy/pool/base.py", line 681, in __init__
2024-09-17T16:16:29.508104594Z     self.__connect()
2024-09-17T16:16:29.508125127Z   File "/home/user/.local/lib/python3.10/site-packages/sqlalchemy/pool/base.py", line 905, in __connect
2024-09-17T16:16:29.508149509Z     with util.safe_reraise():
2024-09-17T16:16:29.508162331Z   File "/home/user/.local/lib/python3.10/site-packages/sqlalchemy/util/langhelpers.py", line 147, in __exit__
2024-09-17T16:16:29.508171428Z     raise exc_value.with_traceback(exc_tb)
2024-09-17T16:16:29.508176861Z   File "/home/user/.local/lib/python3.10/site-packages/sqlalchemy/pool/base.py", line 901, in __connect
2024-09-17T16:16:29.508207557Z     self.dbapi_connection = connection = pool._invoke_creator(self)
2024-09-17T16:16:29.508359451Z   File "/home/user/.local/lib/python3.10/site-packages/sqlalchemy/engine/create.py", line 636, in connect
2024-09-17T16:16:29.512139997Z     return dialect.connect(*cargs, **cparams)
2024-09-17T16:16:29.512160517Z   File "/home/user/.local/lib/python3.10/site-packages/sqlalchemy/engine/default.py", line 580, in connect
2024-09-17T16:16:29.515047065Z     return self.loaded_dbapi.connect(*cargs, **cparams)
2024-09-17T16:16:29.515072765Z sqlite3.OperationalError: unable to open database file
2024-09-17T16:16:29.515079790Z 
2024-09-17T16:16:29.515084996Z The above exception was the direct cause of the following exception:
2024-09-17T16:16:29.515089927Z 
2024-09-17T16:16:29.515094664Z Traceback (most recent call last):
2024-09-17T16:16:29.515099116Z   File "/home/user/spotisub/./main.py", line 23, in <module>
2024-09-17T16:16:29.515118399Z     from spotisub.helpers import subsonic_helper
2024-09-17T16:16:29.515124008Z   File "/home/user/spotisub/./spotisub/helpers/subsonic_helper.py", line 34, in <module>
2024-09-17T16:16:29.515398572Z     database.create_db_tables(dbms)
2024-09-17T16:16:29.515446182Z   File "/home/user/spotisub/./spotisub/database/database.py", line 63, in create_db_tables
2024-09-17T16:16:29.515459343Z     self.metadata.create_all(self.db_engine)
2024-09-17T16:16:29.515472713Z   File "/home/user/.local/lib/python3.10/site-packages/sqlalchemy/sql/schema.py", line 5581, in create_all
2024-09-17T16:16:29.523450935Z     bind._run_ddl_visitor(
2024-09-17T16:16:29.523851778Z   File "/home/user/.local/lib/python3.10/site-packages/sqlalchemy/engine/base.py", line 3225, in _run_ddl_visitor
2024-09-17T16:16:29.528146339Z     with self.begin() as conn:
2024-09-17T16:16:29.528540212Z   File "/usr/local/lib/python3.10/contextlib.py", line 135, in __enter__
2024-09-17T16:16:29.529328430Z     return next(self.gen)
2024-09-17T16:16:29.529598645Z   File "/home/user/.local/lib/python3.10/site-packages/sqlalchemy/engine/base.py", line 3215, in begin
2024-09-17T16:16:29.533875571Z     with self.connect() as conn:
2024-09-17T16:16:29.533952488Z   File "/home/user/.local/lib/python3.10/site-packages/sqlalchemy/engine/base.py", line 3251, in connect
2024-09-17T16:16:29.537633299Z     return self._connection_cls(self)
2024-09-17T16:16:29.537694118Z   File "/home/user/.local/lib/python3.10/site-packages/sqlalchemy/engine/base.py", line 147, in __init__
2024-09-17T16:16:29.538406537Z     Connection._handle_dbapi_exception_noconnection(
2024-09-17T16:16:29.538578121Z   File "/home/user/.local/lib/python3.10/site-packages/sqlalchemy/engine/base.py", line 2413, in _handle_dbapi_exception_noconnection
2024-09-17T16:16:29.541426695Z     raise sqlalchemy_exception.with_traceback(exc_info[2]) from e
2024-09-17T16:16:29.541525490Z   File "/home/user/.local/lib/python3.10/site-packages/sqlalchemy/engine/base.py", line 145, in __init__
2024-09-17T16:16:29.542321174Z     self._dbapi_connection = engine.raw_connection()
2024-09-17T16:16:29.542449108Z   File "/home/user/.local/lib/python3.10/site-packages/sqlalchemy/engine/base.py", line 3275, in raw_connection
2024-09-17T16:16:29.546192323Z     return self.pool.connect()
2024-09-17T16:16:29.546223826Z   File "/home/user/.local/lib/python3.10/site-packages/sqlalchemy/pool/base.py", line 455, in connect
2024-09-17T16:16:29.546517437Z     return _ConnectionFairy._checkout(self)
2024-09-17T16:16:29.546536332Z   File "/home/user/.local/lib/python3.10/site-packages/sqlalchemy/pool/base.py", line 1271, in _checkout
2024-09-17T16:16:29.546957189Z     fairy = _ConnectionRecord.checkout(pool)
2024-09-17T16:16:29.546972299Z   File "/home/user/.local/lib/python3.10/site-packages/sqlalchemy/pool/base.py", line 719, in checkout
2024-09-17T16:16:29.547260331Z     rec = pool._do_get()
2024-09-17T16:16:29.547276110Z   File "/home/user/.local/lib/python3.10/site-packages/sqlalchemy/pool/impl.py", line 168, in _do_get
2024-09-17T16:16:29.547417883Z     with util.safe_reraise():
2024-09-17T16:16:29.547434000Z   File "/home/user/.local/lib/python3.10/site-packages/sqlalchemy/util/langhelpers.py", line 147, in __exit__
2024-09-17T16:16:29.547575508Z     raise exc_value.with_traceback(exc_tb)
2024-09-17T16:16:29.547591148Z   File "/home/user/.local/lib/python3.10/site-packages/sqlalchemy/pool/impl.py", line 166, in _do_get
2024-09-17T16:16:29.547758764Z     return self._create_connection()
2024-09-17T16:16:29.547774124Z   File "/home/user/.local/lib/python3.10/site-packages/sqlalchemy/pool/base.py", line 396, in _create_connection
2024-09-17T16:16:29.547972827Z     return _ConnectionRecord(self)
2024-09-17T16:16:29.547989163Z   File "/home/user/.local/lib/python3.10/site-packages/sqlalchemy/pool/base.py", line 681, in __init__
2024-09-17T16:16:29.548251920Z     self.__connect()
2024-09-17T16:16:29.548267675Z   File "/home/user/.local/lib/python3.10/site-packages/sqlalchemy/pool/base.py", line 905, in __connect
2024-09-17T16:16:29.548581095Z     with util.safe_reraise():
2024-09-17T16:16:29.548595259Z   File "/home/user/.local/lib/python3.10/site-packages/sqlalchemy/util/langhelpers.py", line 147, in __exit__
2024-09-17T16:16:29.548736135Z     raise exc_value.with_traceback(exc_tb)
2024-09-17T16:16:29.548751698Z   File "/home/user/.local/lib/python3.10/site-packages/sqlalchemy/pool/base.py", line 901, in __connect
2024-09-17T16:16:29.549072807Z     self.dbapi_connection = connection = pool._invoke_creator(self)
2024-09-17T16:16:29.549088483Z   File "/home/user/.local/lib/python3.10/site-packages/sqlalchemy/engine/create.py", line 636, in connect
2024-09-17T16:16:29.549356909Z     return dialect.connect(*cargs, **cparams)
2024-09-17T16:16:29.549371685Z   File "/home/user/.local/lib/python3.10/site-packages/sqlalchemy/engine/default.py", line 580, in connect
2024-09-17T16:16:29.549624917Z     return self.loaded_dbapi.connect(*cargs, **cparams)
2024-09-17T16:16:29.549691858Z sqlalchemy.exc.OperationalError: (sqlite3.OperationalError) unable to open database file
2024-09-17T16:16:29.549732115Z (Background on this error at: https://sqlalche.me/e/20/e3q8)
2024-09-17T16:16:29.549745749Z unable to load app 0 (mountpoint='') (callable not found or import error)
2024-09-17T16:16:29.549782065Z *** no app loaded. going in full dynamic mode ***

/spotisub folder contains a /cache folder, but it's empty.

blastbeng commented 2 months ago

Maybe again the permission error you had once before? Rename the older /spotify folder to /spotisub if you still have it If not, you have to re-init the container with the init script

Also can you share your new compose file?

janaxhell commented 2 months ago

Ahh, yes, I didn't dochmod 777 -R on /cache, it starts with no error now. Anyway when I tried to git clone spotisub and launched the script, this was the answer:

root@openmediavault:~/spotisub# ./first_run.sh
Traceback (most recent call last):
  File "init.py", line 2, in <module>
    import spotipy
ImportError: No module named spotipy

My compose:

services:
    navidrome:
        container_name: navidrome
        image: deluan/navidrome:latest
        user: 998:100
        networks: 
            - omv1
        ports:
            - "4533:4533"
        environment:
            ND_SCANSCHEDULE: 5 6 * * 0
            ND_LOGLEVEL: info  
            ND_SESSIONTIMEOUT: 72h
            ND_BASEURL: "/music"
            ND_PLAYLISTSPATH: "lidarr/playlists"
            # ND_IMAGECACHESIZE: "100MB"
            ND_SPOTIFY_ID: XXXXXXXXXXXXXXXXXXXXXXXXXXXXX
            ND_SPOTIFY_SECRET: XXXXXXXXXXXXXXXXXXXXXXXXXXXXX
            ND_LASTFM_ENABLED: true
            ND_LASTFM_APIKEY: XXXXXXXXXXXXXXXXXXXXXXXXXXXXX
            ND_LASTFM_SECRET: XXXXXXXXXXXXXXXXXXXXXXXXXXXXX
            ND_SUBSONICARTISTPARTICIPATIONS: true
            ND_LISTENBRAINZ_BASEURL: http://192.168.1.94:42010/apis/listenbrainz/1/
            ND_UIWELCOMEMESSAGE: Be water my friend
            ND_ENABLEREPLAYGAIN: true
            ND_ENABLESHARING: true
            ND_ENABLESTARRATING: true
            ND_IGNOREDARTICLES: "The El La Los Las Le Les Os As O A Il Lo La Gli"
            ND_ENABLEFAVOURITES: true
            ND_ENABLEEXTERNALSERVICES: true
            ND_ENABLECOVERANIMATION: true             
            ND_COVERARTPRIORITY: embedded, folder.*, cover.*, front.*
            ND_JUKEBOX_ENABLED: true
        volumes:
            - "/srv/dev-disk-by-uuid-5b67514d-485e-4306-873e-b1cbb54ccf99/Config/Navidrome:/data"
            - "/srv/dev-disk-by-uuid-BAF04088F0404D37/data/media/unmapped:/music/unmapped"
            - "/srv/dev-disk-by-uuid-BAF04088F0404D37/data/media/music:/music/lidarr"
        restart: unless-stopped

    spotisub:
        container_name: spotisub
        environment:
            - PUID=998
            - PGID=100
            - TZ=Europe/Rome
            - SPOTIPY_CLIENT_ID=XXXXXXXXXXXXXXXXXXXXXXXXXXXXX
            - SPOTIPY_CLIENT_SECRET=XXXXXXXXXXXXXXXXXXXXXXXXXXXXX
            - SPOTIPY_REDIRECT_URI=http://127.0.0.1:18080/
            # - LIDARR_ENABLED=1
            # - LIDARR_IP=192.168.1.94
            # - LIDARR_PORT=8686
            # - LIDARR_TOKEN=XXXXXXXXXXXXXXXXXXXXXXXXXXXXX
            - SUBSONIC_API_BASE_URL=/music
            - SUBSONIC_API_HOST=http://192.168.1.94
            - SUBSONIC_API_PORT=4533
            - SUBSONIC_API_USER=XXXXXXXXXXXXXXXXXXXXXXXXXXXXX
            - SUBSONIC_API_PASS=XXXXXXXXXXXXXXXXXXXXXXXXXXXXX
            - ITEMS_PER_PLAYLIST=100
            - NUM_USER_PLAYLISTS=5
            - ARTIST_GEN_SCHED=2
            - RECCOMEND_GEN_SCHED=8
            - PLAYLIST_GEN_SCHED=6
            - SAVED_GEN_SCHED=24
            - PLAYLIST_PREFIX="Z "
            - SCHEDULER_ENABLED=1
            - SPOTDL_ENABLED=0
            - SPOTDL_OUT_FORMAT="/music/222subtify/{album-artist}/{album-artist} - ({year}) - {album}/{track-number} - {title}.{output-ext}"
            - EXCLUDED_WORDS=acoustic,instrumental,demo,remix,live
            - LOG_LEVEL=20
        image: "blastbeng/spotisub:latest"
        user: 998:100
        restart: always
        volumes:
            - "/srv/dev-disk-by-uuid-5b67514d-485e-4306-873e-b1cbb54ccf99/Config/spotisub/cache:/home/user/spotisub/cache"
        ports:
            - 50811:50811
        networks: 
            - omv1

networks:
    omv1:
      external: true 
blastbeng commented 2 months ago

Ahh, yes, I didn't dochmod 777 -R on /cache, it starts with no error now. Anyway when I tried to git clone spotisub and launched the script, this was the answer:

root@openmediavault:~/spotisub# ./first_run.sh
Traceback (most recent call last):
  File "init.py", line 2, in <module>
    import spotipy
ImportError: No module named spotipy

My compose:

services:
    navidrome:
        container_name: navidrome
        image: deluan/navidrome:latest
        user: 998:100
        networks: 
            - omv1
        ports:
            - "4533:4533"
        environment:
            ND_SCANSCHEDULE: 5 6 * * 0
            ND_LOGLEVEL: info  
            ND_SESSIONTIMEOUT: 72h
            ND_BASEURL: "/music"
            ND_PLAYLISTSPATH: "lidarr/playlists"
            # ND_IMAGECACHESIZE: "100MB"
            ND_SPOTIFY_ID: XXXXXXXXXXXXXXXXXXXXXXXXXXXXX
            ND_SPOTIFY_SECRET: XXXXXXXXXXXXXXXXXXXXXXXXXXXXX
            ND_LASTFM_ENABLED: true
            ND_LASTFM_APIKEY: XXXXXXXXXXXXXXXXXXXXXXXXXXXXX
            ND_LASTFM_SECRET: XXXXXXXXXXXXXXXXXXXXXXXXXXXXX
            ND_SUBSONICARTISTPARTICIPATIONS: true
            ND_LISTENBRAINZ_BASEURL: http://192.168.1.94:42010/apis/listenbrainz/1/
            ND_UIWELCOMEMESSAGE: Be water my friend
            ND_ENABLEREPLAYGAIN: true
            ND_ENABLESHARING: true
            ND_ENABLESTARRATING: true
            ND_IGNOREDARTICLES: "The El La Los Las Le Les Os As O A Il Lo La Gli"
            ND_ENABLEFAVOURITES: true
            ND_ENABLEEXTERNALSERVICES: true
            ND_ENABLECOVERANIMATION: true             
            ND_COVERARTPRIORITY: embedded, folder.*, cover.*, front.*
            ND_JUKEBOX_ENABLED: true
        volumes:
            - "/srv/dev-disk-by-uuid-5b67514d-485e-4306-873e-b1cbb54ccf99/Config/Navidrome:/data"
            - "/srv/dev-disk-by-uuid-BAF04088F0404D37/data/media/unmapped:/music/unmapped"
            - "/srv/dev-disk-by-uuid-BAF04088F0404D37/data/media/music:/music/lidarr"
        restart: unless-stopped

    spotisub:
        container_name: spotisub
        environment:
            - PUID=998
            - PGID=100
            - TZ=Europe/Rome
            - SPOTIPY_CLIENT_ID=XXXXXXXXXXXXXXXXXXXXXXXXXXXXX
            - SPOTIPY_CLIENT_SECRET=XXXXXXXXXXXXXXXXXXXXXXXXXXXXX
            - SPOTIPY_REDIRECT_URI=http://127.0.0.1:18080/
            # - LIDARR_ENABLED=1
            # - LIDARR_IP=192.168.1.94
            # - LIDARR_PORT=8686
            # - LIDARR_TOKEN=XXXXXXXXXXXXXXXXXXXXXXXXXXXXX
            - SUBSONIC_API_BASE_URL=/music
            - SUBSONIC_API_HOST=http://192.168.1.94
            - SUBSONIC_API_PORT=4533
            - SUBSONIC_API_USER=XXXXXXXXXXXXXXXXXXXXXXXXXXXXX
            - SUBSONIC_API_PASS=XXXXXXXXXXXXXXXXXXXXXXXXXXXXX
            - ITEMS_PER_PLAYLIST=100
            - NUM_USER_PLAYLISTS=5
            - ARTIST_GEN_SCHED=2
            - RECCOMEND_GEN_SCHED=8
            - PLAYLIST_GEN_SCHED=6
            - SAVED_GEN_SCHED=24
            - PLAYLIST_PREFIX="Z "
            - SCHEDULER_ENABLED=1
            - SPOTDL_ENABLED=0
            - SPOTDL_OUT_FORMAT="/music/222subtify/{album-artist}/{album-artist} - ({year}) - {album}/{track-number} - {title}.{output-ext}"
            - EXCLUDED_WORDS=acoustic,instrumental,demo,remix,live
            - LOG_LEVEL=20
        image: "blastbeng/spotisub:latest"
        user: 998:100
        restart: always
        volumes:
            - "/srv/dev-disk-by-uuid-5b67514d-485e-4306-873e-b1cbb54ccf99/Config/spotisub/cache:/home/user/spotisub/cache"
        ports:
            - 50811:50811
        networks: 
            - omv1

networks:
    omv1:
      external: true 

Before launching the first run script you need to enter the container

docker exec -it spotisub bash

You are executing the script outside the container

Anyways, there's no need to clone the repo

janaxhell commented 2 months ago

I'm a bit confused because during one of the previous issues you told me to simply run ./first_run.sh with no docker exec, which I did from the git cloned repo and it worked IIRC.. But maybe this was when you were still creating the docker version.

blastbeng commented 2 months ago

I'm a bit confused because during one of the previous issues you told me to simply run ./first_run.sh with no docker exec, which I did from the git cloned repo and it worked IIRC.. But maybe this was when you were still creating the docker version.

That was because there was a bug in the docker container, which got resolved in a previous release, now the correct way of executing it is inside the docker container

EDIT: it works outside the docker container, but you have to install python requirements before.

janaxhell commented 2 months ago

After a couple of hours starting with no error, I checked it again and it was repeating the same errors above and had produced no playlist meanwhile. So I tried the script. but it doesn't work

root@openmediavault:~/spotisub# docker exec -it spotisub bash
I have no name!@2f01963a0326:~/spotisub$ ./first_run.sh
Traceback (most recent call last):
  File "/home/user/spotisub/init.py", line 3, in <module>
    import constants
ModuleNotFoundError: No module named 'constants'
Aerglonus commented 2 months ago

After a couple of hours starting with no error, I checked it again and it was repeating the same errors above and had produced no playlist meanwhile. So I tried the script. but it doesn't work

root@openmediavault:~/spotisub# docker exec -it spotisub bash
I have no name!@2f01963a0326:~/spotisub$ ./first_run.sh
Traceback (most recent call last):
  File "/home/user/spotisub/init.py", line 3, in <module>
    import constants
ModuleNotFoundError: No module named 'constants'

probably because of this on the init.py its being compared to the constants pypi module instead of importing the constants from the spotisub directory, https://github.com/blastbeng/spotisub/blob/f5346431a21a023d6091d74039a642fa67fea58f/init.py#L3

It should be

from spotisub.constants import constants

that allows to run the ./first_run.sh

I rebuild the image changing that part of the init.py and first_run.sh executes without problem.

blastbeng commented 2 months ago

After a couple of hours starting with no error, I checked it again and it was repeating the same errors above and had produced no playlist meanwhile. So I tried the script. but it doesn't work

root@openmediavault:~/spotisub# docker exec -it spotisub bash
I have no name!@2f01963a0326:~/spotisub$ ./first_run.sh
Traceback (most recent call last):
  File "/home/user/spotisub/init.py", line 3, in <module>
    import constants
ModuleNotFoundError: No module named 'constants'

probably because of this on the init.py its being compared to the constants pypi module instead of importing the constants from the spotisub directory,

https://github.com/blastbeng/spotisub/blob/f5346431a21a023d6091d74039a642fa67fea58f/init.py#L3

It should be

from spotisub.constants import constants

that allows to run the ./first_run.sh

I rebuild the image changing that part of the init.py and first_run.sh executes without problem.

It has been moved, sorry about that, gonna fix in v 0.2.1

blastbeng commented 2 months ago

After a couple of hours starting with no error, I checked it again and it was repeating the same errors above and had produced no playlist meanwhile. So I tried the script. but it doesn't work

root@openmediavault:~/spotisub# docker exec -it spotisub bash
I have no name!@2f01963a0326:~/spotisub$ ./first_run.sh
Traceback (most recent call last):
  File "/home/user/spotisub/init.py", line 3, in <module>
    import constants
ModuleNotFoundError: No module named 'constants'

probably because of this on the init.py its being compared to the constants pypi module instead of importing the constants from the spotisub directory,

https://github.com/blastbeng/spotisub/blob/f5346431a21a023d6091d74039a642fa67fea58f/init.py#L3

It should be

from spotisub.constants import constants

that allows to run the ./first_run.sh

I rebuild the image changing that part of the init.py and first_run.sh executes without problem.

This is solved now in Release 0.2.1

https://github.com/blastbeng/spotisub/releases/tag/v0.2.1

Can you confirm that? Thanks

janaxhell commented 2 months ago

I have been able to deploy 0.2.1 and paste the URL generated by the script, now I have to wait some time to see if it triggers Navidrome with new playlists.

EDIT What I see here after half an hour is this:

2024-09-18 09:10:26 INFO     Scheduler started
███████╗██████╗  ██████╗ ████████╗██╗███████╗██╗   ██╗██████╗ 
██╔════╝██╔══██╗██╔═══██╗╚══██╔══╝██║██╔════╝██║   ██║██╔══██╗
███████╗██████╔╝██║   ██║   ██║   ██║███████╗██║   ██║██████╔╝
╚════██║██╔═══╝ ██║   ██║   ██║   ██║╚════██║██║   ██║██╔══██╗
███████║██║     ╚██████╔╝   ██║   ██║███████║╚██████╔╝██████╔╝
╚══════╝╚═╝      ╚═════╝    ╚═╝   ╚═╝╚══════╝ ╚═════╝ ╚═════╝ 
                              v0.2.1

WSGI app 0 (mountpoint='') ready in 2 seconds on interpreter 0x55aec30fed50 pid: 7 (default app)
2024-09-18 09:15:04 INFO     [2024-Sep-18 09:15] 192.168.1.21 GET http /generate/artist_reccomendations/? 404 NOT FOUND
[pid: 7|app: 0|req: 1/1] 192.168.1.21 () {40 vars in 3321 bytes} [Wed Sep 18 09:15:04 2024] GET /generate/artist_reccomendations/ => generated 207 bytes in 1 msecs (HTTP/1.1 404) 2 headers in 87 bytes (1 switches on core 0)
2024-09-18 09:15:05 INFO     [2024-Sep-18 09:15] 192.168.1.21 GET http /favicon.ico? 404 NOT FOUND
[pid: 7|app: 0|req: 2/2] 192.168.1.21 () {38 vars in 3216 bytes} [Wed Sep 18 09:15:05 2024] GET /favicon.ico => generated 207 bytes in 0 msecs (HTTP/1.1 404) 2 headers in 87 bytes (1 switches on core 0)
2024-09-18 09:15:07 INFO     [2024-Sep-18 09:15] 192.168.1.21 GET http /generate/artist_reccomendations/? 404 NOT FOUND
[pid: 7|app: 0|req: 3/3] 192.168.1.21 () {42 vars in 3352 bytes} [Wed Sep 18 09:15:07 2024] GET /generate/artist_reccomendations/ => generated 207 bytes in 0 msecs (HTTP/1.1 404) 2 headers in 87 bytes (1 switches on core 0)

EDIT2 It works, a couple of new playlists appeared in Navidrome.

blastbeng commented 2 months ago

I have been able to deploy 0.2.1 and paste the URL generated by the script, now I have to wait some time to see if it triggers Navidrome with new playlists.

EDIT What I see here after half an hour is this:

2024-09-18 09:10:26 INFO     Scheduler started
███████╗██████╗  ██████╗ ████████╗██╗███████╗██╗   ██╗██████╗ 
██╔════╝██╔══██╗██╔═══██╗╚══██╔══╝██║██╔════╝██║   ██║██╔══██╗
███████╗██████╔╝██║   ██║   ██║   ██║███████╗██║   ██║██████╔╝
╚════██║██╔═══╝ ██║   ██║   ██║   ██║╚════██║██║   ██║██╔══██╗
███████║██║     ╚██████╔╝   ██║   ██║███████║╚██████╔╝██████╔╝
╚══════╝╚═╝      ╚═════╝    ╚═╝   ╚═╝╚══════╝ ╚═════╝ ╚═════╝ 
                              v0.2.1

WSGI app 0 (mountpoint='') ready in 2 seconds on interpreter 0x55aec30fed50 pid: 7 (default app)
2024-09-18 09:15:04 INFO     [2024-Sep-18 09:15] 192.168.1.21 GET http /generate/artist_reccomendations/? 404 NOT FOUND
[pid: 7|app: 0|req: 1/1] 192.168.1.21 () {40 vars in 3321 bytes} [Wed Sep 18 09:15:04 2024] GET /generate/artist_reccomendations/ => generated 207 bytes in 1 msecs (HTTP/1.1 404) 2 headers in 87 bytes (1 switches on core 0)
2024-09-18 09:15:05 INFO     [2024-Sep-18 09:15] 192.168.1.21 GET http /favicon.ico? 404 NOT FOUND
[pid: 7|app: 0|req: 2/2] 192.168.1.21 () {38 vars in 3216 bytes} [Wed Sep 18 09:15:05 2024] GET /favicon.ico => generated 207 bytes in 0 msecs (HTTP/1.1 404) 2 headers in 87 bytes (1 switches on core 0)
2024-09-18 09:15:07 INFO     [2024-Sep-18 09:15] 192.168.1.21 GET http /generate/artist_reccomendations/? 404 NOT FOUND
[pid: 7|app: 0|req: 3/3] 192.168.1.21 () {42 vars in 3352 bytes} [Wed Sep 18 09:15:07 2024] GET /generate/artist_reccomendations/ => generated 207 bytes in 0 msecs (HTTP/1.1 404) 2 headers in 87 bytes (1 switches on core 0)

EDIT2 It works, a couple of new playlists appeared in Navidrome.

The endpoint has been modified, it is not "/generate/artist_reccomendations/" but "/generate/artist_recommendations/"