ombi-bot icon indicating copy to clipboard operation
ombi-bot copied to clipboard

No response to /search with new Ombi v4

Open guisua opened this issue 5 years ago • 15 comments

The problem

  • My bot doesn't respond to searches when configured with Ombi v4.

Chronology

  • Everything was working under v3.
  • I moved to the new Plex Movie agent which is not supported by v3 (content doesn't match IMDB IDs) so I tried Ombi v4.
  • I have two docker containers, one for v3 and one for v4. Both run on the same host (IP and port). Of course I don't run both at the same time.
  • The bot.env is exactly the same (same file), I only update the Ombi token accordingly.

Here are the responses from the bot for different scenarios:

v3 with correct Ombi token

Searching Movies and TV

v3 with incorrect token

Searching Movies and TV
No Available Results
No Search Results
No Available Results
No Search Results

v4 with/without correct token

Searching Movies and TV

guisua avatar Nov 06 '20 22:11 guisua

I've only tested with ombi v4, and got the same results as @guisua

daurpam avatar Nov 15 '20 12:11 daurpam

did you try the new docker for v4? @guisua @daurpam

StackTraceYo avatar Nov 16 '20 23:11 StackTraceYo

@StackTraceYo yes but I still get no response. I have also tested the apiKey against the Ombi host directly and it is valid

guisua avatar Nov 16 '20 23:11 guisua

can you print me some logs

StackTraceYo avatar Nov 16 '20 23:11 StackTraceYo

I just pushed a new version of the 2.2-OMBI-V4 image with better logging. please try it and let me know what you see.

StackTraceYo avatar Nov 16 '20 23:11 StackTraceYo

also - simple mistake ive made in the past is misconfiguring the hostnames-

make sure the OMBI_HOST has the right base url (found in Ombi Configuration on the UI).

StackTraceYo avatar Nov 16 '20 23:11 StackTraceYo

I just pulled the image now and here are the logs. I have redacted a few fields.

[trace, com.bot4s.telegram.clients.ScalajHttpClient] REQUEST a36b22fc-da5c-4e8d-8fc8-7ab7db73e7f1 GetUpdates(None,None,Some(30),None)
[trace, com.bot4s.telegram.clients.ScalajHttpClient] RESPONSE a36b22fc-da5c-4e8d-8fc8-7ab7db73e7f1 List(Update(<ID>,Some(Message(3866,Some(User(<ID>,false,<FIRSTNAME>,Some(<LASTNAME>),Some(<USERNAME>),Some(en))),<ID>,Chat(<ID>,Private,None,Some(<USERNAME>),Some(<FIRSTNAME>),Some(<LASTNAME>),None,None,None,None,None,None,None,None),None,None,None,None,None,None,None,None,None,Some(/search friends),Some(List(MessageEntity(BotCommand,0,7,None,None))),None,None,None,None,None,None,None,None,None,None,None,None,None,None,None,None,None,None,None,None,None,None,None,None,None,None,None,None,None,None)),None,None,None,None,None,None,None,None,None))
[trace, com.bot4s.telegram.clients.ScalajHttpClient] REQUEST a5175d7d-f147-4d7c-9da0-968d73527c2f GetUpdates(Some(<ID>),None,Some(30),None)
[trace, com.bot4s.telegram.clients.ScalajHttpClient] REQUEST 1215a73d-fc35-4223-a4b8-01265b5fc221 SendMessage(Chat(<ID>),*Searching Movies and TV*,Some(Markdown),None,Some(true),None,None)
[trace, com.bot4s.telegram.clients.ScalajHttpClient] RESPONSE 1215a73d-fc35-4223-a4b8-01265b5fc221 Message(3867,Some(User(<ID>,true,Plexy,None,Some(guisua_ombibot),None)),<ID>,Chat(<ID>,Private,None,Some(<USERNAME>),Some(<FIRSTNAME>),Some(<LASTNAME>),None,None,None,None,None,None,None,None),None,None,None,None,None,None,None,None,None,Some(Searching Movies and TV),Some(List(MessageEntity(Bold,0,23,None,None))),None,None,None,None,None,None,None,None,None,None,None,None,None,None,None,None,None,None,None,None,None,None,None,None,None,None,None,None,None,None)

guisua avatar Nov 17 '20 11:11 guisua

is that all? if you pulled the new request and you were getting an error we should be seeing the error being logged. are you positive its using the new image?

StackTraceYo avatar Nov 17 '20 16:11 StackTraceYo

Yes, I just deleted both the container and the image and pulled the image :2.2-OMBI-V4 from the hub again for good measure. Those are all the logs I get.

guisua avatar Nov 17 '20 18:11 guisua

ok im adding some more logging will push a new image shortly.

StackTraceYo avatar Nov 17 '20 18:11 StackTraceYo

new image pushed

StackTraceYo avatar Nov 17 '20 19:11 StackTraceYo

I don't understand it. I just deleted everything again and pulled the image from the hub and still don't see any more logs than before and still no response to the search other than the "Searching" reply (so the Telegram token must be configured correctly).

What are the new logs supposed to look like?

guisua avatar Nov 17 '20 19:11 guisua

Could this be due to an error in Ombi v4? I get the following error when browsing to http://localhost:5000/swagger/index.html. bild

2020-11-17 20:56:21.688 +01:00 [Error] Something bad happened, ErrorMiddleware caught this

System.NotSupportedException: Conflicting method/path combination "POST api/v1/Radarr/tags" for actions - Ombi.Controllers.V1.External.RadarrController.GetTags (Ombi),Ombi.Controllers.V1.External.RadarrController.GetTags (Ombi). Actions require a unique method/path combination for Swagger/OpenAPI 3.0. Use ConflictingActionsResolver as a workaround

   at Swashbuckle.AspNetCore.SwaggerGen.SwaggerGenerator.GenerateOperations(IEnumerable`1 apiDescriptions, SchemaRepository schemaRepository)

   at Swashbuckle.AspNetCore.SwaggerGen.SwaggerGenerator.GeneratePaths(IEnumerable`1 apiDescriptions, SchemaRepository schemaRepository)

   at Swashbuckle.AspNetCore.SwaggerGen.SwaggerGenerator.GetSwagger(String documentName, String host, String basePath)

   at Swashbuckle.AspNetCore.Swagger.SwaggerMiddleware.Invoke(HttpContext httpContext, ISwaggerProvider swaggerProvider)

   at Microsoft.AspNetCore.Authorization.AuthorizationMiddleware.Invoke(HttpContext context)

   at Microsoft.AspNetCore.Authentication.AuthenticationMiddleware.Invoke(HttpContext context)

   at Ombi.ApiKeyMiddlewear.Invoke(HttpContext context) in /home/vsts/work/1/s/src/Ombi/Middleware/ApiKeyMiddlewear.cs:line 56

   at Ombi.ErrorHandlingMiddleware.Invoke(HttpContext context) in /home/vsts/work/1/s/src/Ombi/Middleware/ErrorHandlingMiddlewear.cs:line 24

PolliSoft avatar Nov 17 '20 20:11 PolliSoft

My Ombi V4 bot seems to no longer respond at all when commands go in. It definitely prints them, but it outputs a bunch of "none,none,none" in the terminal and nothing on Telegram at all.

Stuff like this: Test

Not sure if this is the same issue or not though.

Casuallynoted avatar Nov 25 '20 06:11 Casuallynoted

After updating Ombi to 4.0.728.0, it now works for me. http://localhost:5000/swagger/index.html also works now.

PolliSoft avatar Nov 26 '20 14:11 PolliSoft