krateng / maloja

Self-hosted music scrobble database to create personal listening statistics and charts
https://maloja.krateng.ch
GNU General Public License v3.0
1.06k stars 63 forks source link

Gonic + Maloja struggling to connect ListenBrainz API #350

Open meowmeowofthemeows opened 3 months ago

meowmeowofthemeows commented 3 months ago

Maloja v3.2.2 Gonic v0.16.4 I have Gonic and Maloja running together in a podman pod making sure that the networking is correct and they can both reach each other. I read the other issues about Maloja and Gonic trying to reformat the address and such but the issue still remains.

Here is my Maloja log:

[migrations] started
[migrations] no migrations found
usermod: no changes
───────────────────────────────────────
  _____ __ __ _____ _____ _____ _____ 
 |     |  |  |   __|_   _|     |     |
 |   --|  |  |__   | | | |  |  | | | |
 |_____|_____|_____| |_| |_____|_|_|_|
       _____ __ __ _ __    ____  
      | __  |  |  | |  |  |    \ 
      | __ -|  |  | |  |__|  |  |
      |_____|_____|_|_____|____/ 

  Based on images from linuxserver.io
───────────────────────────────────────

To support LSIO projects visit:
https://www.linuxserver.io/donate/

───────────────────────────────────────
GID/UID
───────────────────────────────────────

User UID:    0
User GID:    0
───────────────────────────────────────

-------------------------------------
WARN: Running as root! If you meant to do this than this message can be ignored.
If you are running this container on a *linux* host and are not using podman rootless you SHOULD
change the ENVs PUID and PGID for this container to ensure correct permissions on your config folder.
See: https://github.com/krateng/maloja#linux-host

-------------------------------------

[custom-init] No custom files found, skipping...

Maloja is starting!
[ls.io-init] done.

Maloja v3.2.2
https://github.com/krateng/maloja

Various external services can be used to display images. If not enough of them are set up, only local images will be used.
    Currently not using a Last.fm API Key for image display.
    Currently not using a Spotify API ID for image display.
    Currently not using a Spotify API Secret for image display.
    Currently not using a TheAudioDB API Key for image display.
[server] Starting up Maloja server...
[server] Listening on *:42010
[dbcache] Cache: Size: 4 | Hits: 0/4 | Estimated Memory: 296 B
[dbcache] Entity Cache: Size: 0 | Hits: 0/0 | Estimated Memory: 72 B
[dbcache] System RAM Utilization: 14.3%
[sqldb] Database Cleanup...
[sqldb] Database Cleanup complete!
[debug_performance] Executed jinja_page (('start',), {}) in 0.384s (Average: 0.384s)
[debug_performance] Executed jinja_page (('admin_manual',), {}) in 0.034s (Average: 0.209s)
[debug_performance] Executed jinja_page (('start',), {}) in 0.060s (Average: 0.159s)
[apis] Listenbrainz API request: ['status']
[debug] Could not find a handler for method status in API Listenbrainz
[debug] Keys: {'Host': '192.168.0.219:42010', 'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; rv:124.0) Gecko/20100101 Firefox/124.0', 'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,*/*;q=0.8', 'Accept-Language': 'en-US,en;q=0.5', 'Accept-Encoding': 'gzip, deflate', 'Dnt': '1', 'Connection': 'keep-alive', 'Upgrade-Insecure-Requests': '1'}
[apis] Error with Listenbrainz API: <class 'maloja.apis._exceptions.InvalidMethodException'> (Request: [])
[debug_performance] Executed jinja_page (('admin_apikeys',), {}) in 0.025s (Average: 0.125s)
[debug_performance] Executed jinja_page (('start',), {}) in 0.060s (Average: 0.112s)
[debug_performance] Executed jinja_page (('start',), {}) in 0.042s (Average: 0.101s)
[debug_performance] Executed jinja_page (('start',), {}) in 0.060s (Average: 0.095s)
[apis] Listenbrainz API request: ['{path}']
[debug] Could not find a handler for method {path} in API Listenbrainz
[debug] Keys: {'Host': '192.168.0.219:42010', 'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; rv:124.0) Gecko/20100101 Firefox/124.0', 'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,*/*;q=0.8', 'Accept-Language': 'en-US,en;q=0.5', 'Accept-Encoding': 'gzip, deflate', 'Dnt': '1', 'Connection': 'keep-alive', 'Cookie': 'maloja_sessiontoken=90ac0439a2bb99875a085da80c8bcfa888b2415103946eef2f9c6af8d96c22e6; adminmode=false', 'Upgrade-Insecure-Requests': '1'}
[apis] Error with Listenbrainz API: <class 'maloja.apis._exceptions.InvalidMethodException'> (Request: [])
[apis] Listenbrainz API request: ['{path}']
[debug] Could not find a handler for method {path} in API Listenbrainz
[debug] Keys: {'Host': '192.168.0.219:42010', 'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; rv:124.0) Gecko/20100101 Firefox/124.0', 'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,*/*;q=0.8', 'Accept-Language': 'en-US,en;q=0.5', 'Accept-Encoding': 'gzip, deflate', 'Dnt': '1', 'Connection': 'keep-alive', 'Cookie': 'maloja_sessiontoken=90ac0439a2bb99875a085da80c8bcfa888b2415103946eef2f9c6af8d96c22e6; adminmode=false', 'Upgrade-Insecure-Requests': '1'}
[apis] Error with Listenbrainz API: <class 'maloja.apis._exceptions.InvalidMethodException'> (Request: [])
[apis] Listenbrainz API request: ['{artists}']
[debug] Could not find a handler for method {artists} in API Listenbrainz
[debug] Keys: {'Host': '192.168.0.219:42010', 'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; rv:124.0) Gecko/20100101 Firefox/124.0', 'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,*/*;q=0.8', 'Accept-Language': 'en-US,en;q=0.5', 'Accept-Encoding': 'gzip, deflate', 'Dnt': '1', 'Connection': 'keep-alive', 'Cookie': 'maloja_sessiontoken=90ac0439a2bb99875a085da80c8bcfa888b2415103946eef2f9c6af8d96c22e6; adminmode=false', 'Upgrade-Insecure-Requests': '1'}
[apis] Error with Listenbrainz API: <class 'maloja.apis._exceptions.InvalidMethodException'> (Request: [])
[apis] Listenbrainz API request: ['{"time": 1650684324,"track": {"artists": ["Jennie Kim","HyunA","LE","SunMi"],"title": "Wow Thing","length":200},"duration": 196,"origin": "client:navidrome_desktop"}']
[debug] Could not find a handler for method {"time": 1650684324,"track": {"artists": ["Jennie Kim","HyunA","LE","SunMi"],"title": "Wow Thing","length":200},"duration": 196,"origin": "client:navidrome_desktop"} in API Listenbrainz
[debug] Keys: {'Host': '192.168.0.219:42010', 'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; rv:124.0) Gecko/20100101 Firefox/124.0', 'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,*/*;q=0.8', 'Accept-Language': 'en-US,en;q=0.5', 'Accept-Encoding': 'gzip, deflate', 'Dnt': '1', 'Connection': 'keep-alive', 'Cookie': 'maloja_sessiontoken=90ac0439a2bb99875a085da80c8bcfa888b2415103946eef2f9c6af8d96c22e6; adminmode=false', 'Upgrade-Insecure-Requests': '1'}
[apis] Error with Listenbrainz API: <class 'maloja.apis._exceptions.InvalidMethodException'> (Request: [])
[debug_performance] Executed jinja_page (('start',), {}) in 0.061s (Average: 0.091s)
[debug_performance] Executed jinja_page (('start',), {}) in 0.059s (Average: 0.087s)
[debug_performance] Executed jinja_page (('start',), {}) in 0.059s (Average: 0.084s)
[apis] Listenbrainz API request: ['{path}']
[debug] Could not find a handler for method {path} in API Listenbrainz
[debug] Keys: {'Host': '192.168.0.219:42010', 'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; rv:124.0) Gecko/20100101 Firefox/124.0', 'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,*/*;q=0.8', 'Accept-Language': 'en-US,en;q=0.5', 'Accept-Encoding': 'gzip, deflate', 'Dnt': '1', 'Connection': 'keep-alive', 'Cookie': 'maloja_sessiontoken=90ac0439a2bb99875a085da80c8bcfa888b2415103946eef2f9c6af8d96c22e6; adminmode=false', 'Upgrade-Insecure-Requests': '1'}
[apis] Error with Listenbrainz API: <class 'maloja.apis._exceptions.InvalidMethodException'> (Request: [])
[debug_performance] Executed jinja_page (('start',), {}) in 0.057s (Average: 0.082s)
[debug_performance] Executed jinja_page (('start',), {}) in 0.049s (Average: 0.079s)
[debug_performance] Executed jinja_page (('start',), {}) in 0.056s (Average: 0.077s)
[debug_performance] Executed jinja_page (('start',), {}) in 0.058s (Average: 0.076s)
[debug_performance] Executed jinja_page (('start',), {}) in 0.058s (Average: 0.075s)
[apis] Listenbrainz API request: ['{artists}']
[debug] Could not find a handler for method {artists} in API Listenbrainz
[debug] Keys: {'Host': '192.168.0.219:42010', 'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; rv:124.0) Gecko/20100101 Firefox/124.0', 'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,*/*;q=0.8', 'Accept-Language': 'en-US,en;q=0.5', 'Accept-Encoding': 'gzip, deflate', 'Dnt': '1', 'Connection': 'keep-alive', 'Cookie': 'maloja_sessiontoken=90ac0439a2bb99875a085da80c8bcfa888b2415103946eef2f9c6af8d96c22e6; adminmode=false', 'Upgrade-Insecure-Requests': '1'}
[apis] Error with Listenbrainz API: <class 'maloja.apis._exceptions.InvalidMethodException'> (Request: [])
[apis] Listenbrainz API request: ['artists']
[debug] Could not find a handler for method artists in API Listenbrainz
[debug] Keys: {'Host': '192.168.0.219:42010', 'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; rv:124.0) Gecko/20100101 Firefox/124.0', 'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,*/*;q=0.8', 'Accept-Language': 'en-US,en;q=0.5', 'Accept-Encoding': 'gzip, deflate', 'Dnt': '1', 'Connection': 'keep-alive', 'Cookie': 'maloja_sessiontoken=90ac0439a2bb99875a085da80c8bcfa888b2415103946eef2f9c6af8d96c22e6; adminmode=false', 'Upgrade-Insecure-Requests': '1'}
[apis] Error with Listenbrainz API: <class 'maloja.apis._exceptions.InvalidMethodException'> (Request: [])
[apis] Listenbrainz API request: ['search', 'users', '']
[debug] Could not find a handler for method search in API Listenbrainz
[debug] Keys: {'Host': '192.168.0.219:42010', 'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; rv:124.0) Gecko/20100101 Firefox/124.0', 'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,*/*;q=0.8', 'Accept-Language': 'en-US,en;q=0.5', 'Accept-Encoding': 'gzip, deflate', 'Dnt': '1', 'Connection': 'keep-alive', 'Cookie': 'maloja_sessiontoken=90ac0439a2bb99875a085da80c8bcfa888b2415103946eef2f9c6af8d96c22e6; adminmode=false', 'Upgrade-Insecure-Requests': '1'}
[apis] Error with Listenbrainz API: <class 'maloja.apis._exceptions.InvalidMethodException'> (Request: ['users', ''])
[apis] Listenbrainz API request: ['user', 'admin', 'listen-count']
[debug] Could not find a handler for method user in API Listenbrainz
[debug] Keys: {'Host': '192.168.0.219:42010', 'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; rv:124.0) Gecko/20100101 Firefox/124.0', 'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,*/*;q=0.8', 'Accept-Language': 'en-US,en;q=0.5', 'Accept-Encoding': 'gzip, deflate', 'Dnt': '1', 'Connection': 'keep-alive', 'Cookie': 'maloja_sessiontoken=90ac0439a2bb99875a085da80c8bcfa888b2415103946eef2f9c6af8d96c22e6; adminmode=false', 'Upgrade-Insecure-Requests': '1'}
[apis] Error with Listenbrainz API: <class 'maloja.apis._exceptions.InvalidMethodException'> (Request: ['admin', 'listen-count'])
[apis] Listenbrainz API request: ['{path}']
[debug] Could not find a handler for method {path} in API Listenbrainz
[debug] Keys: {'Host': '192.168.0.219:42010', 'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; rv:124.0) Gecko/20100101 Firefox/124.0', 'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,*/*;q=0.8', 'Accept-Language': 'en-US,en;q=0.5', 'Accept-Encoding': 'gzip, deflate', 'Dnt': '1', 'Connection': 'keep-alive', 'Cookie': 'maloja_sessiontoken=90ac0439a2bb99875a085da80c8bcfa888b2415103946eef2f9c6af8d96c22e6; adminmode=false', 'Upgrade-Insecure-Requests': '1'}
[apis] Error with Listenbrainz API: <class 'maloja.apis._exceptions.InvalidMethodException'> (Request: [])
[apis] Listenbrainz API request: []
[apis] Unhandled Exception with Listenbrainz API: <class 'UnboundLocalError'> (Request: [])

Gonic log:

2024/04/06 21:47:03 starting gonic v0.16.4
2024/04/06 21:47:03 provided config
2024/04/06 21:47:03     cache-path                /cache
2024/04/06 21:47:03     config-path               
2024/04/06 21:47:03     db-path                   /data/gonic.db
2024/04/06 21:47:03     exclude-pattern           
2024/04/06 21:47:03     expvar                    false
2024/04/06 21:47:03     genre-split               
2024/04/06 21:47:03     http-log                  true
2024/04/06 21:47:03     jukebox-enabled           false
2024/04/06 21:47:03     jukebox-mpv-extra-args    
2024/04/06 21:47:03     listen-addr               0.0.0.0:4747
2024/04/06 21:47:03     multi-value-album-artist  delim(;)
2024/04/06 21:47:03     multi-value-artist        delim(;)
2024/04/06 21:47:03     multi-value-genre         delim(;)
2024/04/06 21:47:03     music-path                /music
2024/04/06 21:47:03     playlists-path            /playlists
2024/04/06 21:47:03     podcast-path              /podcasts
2024/04/06 21:47:03     podcast-purge-age         0
2024/04/06 21:47:03     pprof                     false
2024/04/06 21:47:03     proxy-prefix              /
2024/04/06 21:47:03     scan-at-start-enabled     false
2024/04/06 21:47:03     scan-interval             0
2024/04/06 21:47:03     scan-watcher-enabled      false
2024/04/06 21:47:03     tls-cert                  
2024/04/06 21:47:03     tls-key                   
2024/04/06 21:47:03     version                   false
2024/04/06 21:47:03 starting job "session clean"
2024/04/06 21:47:03 starting job "http"
2024/04/06 21:47:03 starting job "podcast download"
2024/04/06 21:47:03 starting job "podcast refresh"
2024/04/06 21:47:14 serving raw file, no user transcode preferences found for user "admin" and client "supersonic"
2024/04/06 21:47:15 subsonic error code 10: please provide an `id` parameter
2024/04/06 21:47:15 response  200  GET /getCoverArt?c=supersonic&f=xml&id=&s=ALh5OBaWxA&size=300&t=496096163258ec2df22f600e98b4b924&u=admin&v=1.15.0
2024/04/06 21:47:15 subsonic error code 10: please provide an `id` parameter
2024/04/06 21:47:15 response  200  GET /getCoverArt?c=supersonic&f=xml&id=&s=ALh5OBaWxA&size=300&t=496096163258ec2df22f600e98b4b924&u=admin&v=1.15.0
2024/04/06 21:47:16 response  206  GET /stream?c=supersonic&f=xml&id=tr-123&s=ALh5OBaWxA&t=496096163258ec2df22f600e98b4b924&u=admin&v=1.15.0
2024/04/06 21:47:16 serving raw file, no user transcode preferences found for user "admin" and client "supersonic"
2024/04/06 21:47:17 subsonic error code 10: please provide an `id` parameter
2024/04/06 21:47:17 response  200  GET /getCoverArt?c=supersonic&f=xml&id=&s=ALh5OBaWxA&size=300&t=496096163258ec2df22f600e98b4b924&u=admin&v=1.15.0
2024/04/06 21:47:17 subsonic error code 10: please provide an `id` parameter
2024/04/06 21:47:17 response  200  GET /getCoverArt?c=supersonic&f=xml&id=&s=ALh5OBaWxA&size=300&t=496096163258ec2df22f600e98b4b924&u=admin&v=1.15.0
duckfromdiscord commented 3 months ago

241 potentially related? Do you have a trailing slash in the ListenBrainz API endpoint you've provided to Gonic?