Comments (6)
I can't replicate this issue. Could you give me some more information about what you're exactly doing when this crash happens?
from addarr.
I am just following the normal process to search and download, which was working fine some time back. I am not sure when it started failing, but I know it was working in January 28th and I made some changes in the config file that I mentioned in the issue #152 (according to the timing it could be related)
These are the steps I am following:
- send a message to the bot in telegram with the text
/movie
- after the results are returned click "Yes, add this"
Then the error happens.
This is the radarr part of my config.yaml, just in case it helps:
radarr:
server:
addr: 192.168.0.208
port : 7878 # Default is 7878
path: / # Default is / . If set, it must start and finish with / . Eg: /radarr/
ssl: false #default false
auth:
apikey: ***REMOVED***
username: ***REMOVED***
password: ***REMOVED***
search: true
minimumAvailability: announced
excludedRootFolders: # If set must not have a trailing slash Eg: /mnt/Media
- # First excluded folder, add others with a "-" on a new line (same indentation)
excludedQualityProfiles:
- Any
- HD - 720p/1080p
- HD-1080p
- HD-720p
- Minimum 720p - English
- Minimum 1080p - Spanish
- Minimum 720p - Spanish
- SD
- Ultra-HD
defaultTags: # If set must be existing tags
- telegram
adminRestrictions: false
narrowRootFolderNames: true # If true, only the last folder name will be shown instead of full path
addRequesterIdTag: true # Add telegram user id as tag on series
And this is ther addarr part of the docker-compose.yaml:
addarr:
container_name: addarr
image: waterboy1602/addarr
restart: unless-stopped
network_mode: host
volumes:
- ./config/addarr/config.yaml:/app/config.yaml:ro
- ./config/addarr/chatid.txt:/app/chatid.txt:rw
- ./config/addarr/admin.txt:/app/admin.txt:ro
- ./config/addarr/allowlist.txt:/app/allowlist.txt:ro
from addarr.
addarr | 2024-03-06 11:04:16,768 - addarr.radarr - INFO - http://192.168.0.208:7878/api/v3/movie/lookup?apikey=***REMOVED***&term=/movie
I was looking at your logs and noticed that you're requesting a movie with the title /movie
. So I guess this has something to do with a bug in the flow of searching a movie.
Could you tell me the exact order of the messages that you're sending in Addarr?
from addarr.
Ah sorry, that was just one of the test when I might have typed /movie twice (/movie is what I send to start the search) but the error happens with every movie.
This is the sequence of messages:
And the error happens when I click "Yes, add this"
08/03/2024
10:59:18
2024-03-08 10:59:18,065 - addarr.radarr - INFO - http://192.168.0.208:7878/api/v3/movie/lookup?apikey=***REMOVED***&term=the%20equalizer
08/03/2024
10:59:20
No error handlers are registered, logging exception.
08/03/2024
10:59:20
Traceback (most recent call last):
08/03/2024
10:59:20
File "/usr/local/lib/python3.11/site-packages/telegram/ext/_application.py", line 1234, in process_update
08/03/2024
10:59:20
await coroutine
08/03/2024
10:59:20
File "/usr/local/lib/python3.11/site-packages/telegram/ext/_conversationhandler.py", line 857, in handle_update
08/03/2024
10:59:20
new_state: object = await handler.handle_update(
08/03/2024
10:59:20
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
08/03/2024
10:59:20
File "/usr/local/lib/python3.11/site-packages/telegram/ext/_basehandler.py", line 157, in handle_update
08/03/2024
10:59:20
return await self.callback(update, context)
08/03/2024
10:59:20
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
08/03/2024
10:59:20
File "/app/src/addarr.py", line 594, in pathSerieMovie
08/03/2024
10:59:20
return await qualityProfileSerieMovie(update, context)
08/03/2024
10:59:20
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
08/03/2024
10:59:20
File "/app/src/addarr.py", line 646, in qualityProfileSerieMovie
08/03/2024
10:59:20
return await selectSeasons(update, context)
08/03/2024
10:59:20
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
08/03/2024
10:59:20
File "/app/src/addarr.py", line 684, in selectSeasons
08/03/2024
10:59:20
return await addSerieMovie(update, context)
08/03/2024
10:59:20
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
08/03/2024
10:59:20
File "/app/src/addarr.py", line 817, in addSerieMovie
08/03/2024
10:59:20
service.createTag(str(update.effective_message.chat.id))
08/03/2024
10:59:20
File "/app/src/radarr.py", line 147, in createTag
08/03/2024
10:59:20
"id": max([t["id"] for t in getTags()])+1,
08/03/2024
10:59:20
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
08/03/2024
10:59:20
ValueError: max() arg is an empty sequence
from addarr.
I think I've solved this issue with my latest commit. The new docker image should compile in some time. Could you check if it works?
It had to do with an empty list of tags returned by Radarr. I see you've added the tag "telegram" in your config, but you've probably not created this tag in Radarr itself. Addarr at the moment doesn't create a tag if it doesn't exist yet. So it's looking for the tag, but doesn't get one returned and it crashes.
I had already fixed this for Sonarr, but forgot for Radarr. Now it should be alright.
from addarr.
Thank you very much @Waterboy1602, after updating the container the issue is gone
from addarr.
Related Issues (20)
- Docker not starting HOT 6
- Authentication Error HOT 3
- Adding tags HOT 1
- TypeError: string indices must be integers, not 'str' HOT 7
- Authentication Issue: Incorrect Password Error in Group Chat HOT 1
- Add Support for qBittorrent Commands HOT 1
- Error at chosse Quality HOT 1
- Problem adding series at season selection HOT 1
- IndexError when search for movie title "The Ministry of Ungentlemanly Warfare" [BUG] HOT 1
- Error "You are missing configkeys in your config.yaml-file. Add these before restarting the bot." HOT 7
- Config Problem HOT 2
- addarr does not raise from synology HOT 3
- Adding a series flow HOT 12
- requests.exceptions.MissingSchema: Invalid URL 'None': No scheme supplied. Perhaps you meant https://None? HOT 1
- ValueError: max() arg is an empty sequence HOT 1
- Finds, but does not add series "Unfortunately, it was not possible to add the series. To start a new search, enter - films" HOT 14
- Can´t start the bot
- Add movie url
- sonarr bug
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from addarr.