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

Bazarr failures #237

Closed
kzndotsh opened this issue Oct 28, 2023 · 19 comments · Fixed by #238
Closed

Bazarr failures #237

kzndotsh opened this issue Oct 28, 2023 · 19 comments · Fixed by #238
Labels
bug Something isn't working

Comments

@kzndotsh
Copy link

Seems to be some issues with the bazarr exporter, here is a log file that has been reduced but it's like 10x this long. It seems that the api requests it's attempting is wayyyy too big.

https://pastebin.com/

docker config:

  bazarr-exporter:
    image: ghcr.io/onedr0p/exportarr:latest
    container_name: bazarr-exporter
    command: ["bazarr"]
    environment:
      PORT: 9719
      URL: "https://bazarr.REDACTED.cc"
      APIKEY: "REDACTED"
    ports:
     - "9719:9719"
    restart: unless-stopped
    networks:
      - saltbox
    labels:
      com.github.saltbox.saltbox_managed: true

prom config:

  - job_name: "bazarr-exporter"
    static_configs:
      - targets: ["bazarr-exporter:9719"]
@kzndotsh kzndotsh added the bug Something isn't working label Oct 28, 2023
@onedr0p
Copy link
Owner

onedr0p commented Oct 28, 2023

Pinging @phyzical, also the link you wanted to share for the logs is not correct.

@kzndotsh
Copy link
Author

Apologies, seems the log I tried to post on pastebin was too long and didn't realize haha

https://pastebin.com/PTTsfmrm

@onedr0p
Copy link
Owner

onedr0p commented Oct 28, 2023

That paste also doesn't work.

This page is no longer available. It has either expired, been removed by its creator, or removed by one of the Pastebin staff.

@kzndotsh
Copy link
Author

kzndotsh commented Oct 28, 2023

Oh my gosh lol, apologies. Seems pastebin does not like me. Here's the full file directly: https://transfer.sh/ENm5Un9KOV/log.txt Please tell me this works hahah

@rtrox
Copy link
Collaborator

rtrox commented Oct 28, 2023

Looking through this logfile, it looks like all the seriesid entries are unique in each URL -- this looks like there's ~9k series registered in this instance of Bazaar. If that's the case, it's possible this particular call just won't work as is -- we'll probably have to break the call up into smaller calls which we stitch back together (manually paginate).

@rtrox
Copy link
Collaborator

rtrox commented Oct 28, 2023

I'm putting together a fix for this now, but I'll likely need someone to test it for me, as I don't currently have a bazarr deployment, and while I could spin one up, I won't have the volume of serieses needed to really test the fix.

@kzndotsh
Copy link
Author

I'm putting together a fix for this now, but I'll likely need someone to test it for me, as I don't currently have a bazarr deployment, and while I could spin one up, I won't have the volume of serieses needed to really test the fix.

I can test, let me know what I need to do

@onedr0p
Copy link
Owner

onedr0p commented Oct 28, 2023

this looks like there's ~9k series registered in this instance of Bazaar.

That's quite the sonarr instance. I'm pretty sure there's going to be a point where we need to implement querying the database directly to gather stats. It would be much faster. Maybe that can happen when postgres has more adoption because doing that with sqlite is quite janky (sharing the volume with exportarr).

It would be better to keep it API if only these apps implemented and exposed a stats endpoint in json for us to use.

@rtrox
Copy link
Collaborator

rtrox commented Oct 29, 2023

@kaizensh - there is a test image in the PR (ghcr.io/rtrox/exportarr:episodes-concurrency), can you try this image out and see if it fixes your problem?

@rtrox
Copy link
Collaborator

rtrox commented Oct 29, 2023

@onedr0p totally agree, though I'd like to stick with the API as long as we can, since we lose the interface guarantees as soon as we start accessing the DB directly.

@kzndotsh
Copy link
Author

@kaizensh - there is a test image in the PR (ghcr.io/rtrox/exportarr:episodes-concurrency), can you try this image out and see if it fixes your problem?

2023-10-29T00:58:45.832Z	INFO	Starting exportarr	{"app_name": "exportarr", "version": "development", "buildTime": "", "revision": ""}
series-batch-size must be greater than zero.

@rtrox
Copy link
Collaborator

rtrox commented Oct 29, 2023

gah, it's not picking up the defaults for some reason. give me a few minutes.

@rtrox
Copy link
Collaborator

rtrox commented Oct 29, 2023

@kaizensh OK, I resolved the config issue, and updated the test container -- you may need to pin the sha256 hash to bypass your local cached container:
ghcr.io/rtrox/exportarr:episodes-concurrency@sha256:d295cbe4022762b507b2656894a15a5ced1f3ea0661b4780e34849becb20c1c8

@kzndotsh
Copy link
Author

@kaizensh OK, I resolved the config issue, and updated the test container -- you may need to pin the sha256 hash to bypass your local cached container: ghcr.io/rtrox/exportarr:episodes-concurrency@sha256:d295cbe4022762b507b2656894a15a5ced1f3ea0661b4780e34849becb20c1c8

this seems to have solved the errors, not seeing the dashboard for some reason though in grafana but i assume that is expected?

@rtrox
Copy link
Collaborator

rtrox commented Oct 29, 2023

@kaizensh - I'm not sure what you mean? The docker container does nothing with grafana -- you'll need to create a dashboard, or import one of the dashboards we have in the examples/dashboards directory.

@kzndotsh
Copy link
Author

kzndotsh commented Oct 29, 2023

@kaizensh - I'm not sure what you mean? The docker container does nothing with grafana -- you'll need to create a dashboard, or import one of the dashboards we have in the examples/dashboards directory.

Yes, I have prometheus set up with grafana working perfectly for dashboard2, all exportarrs appear working, i have 3 bazarr instances but 2 of them only show, the "bad" instance we are dealing with now seems to be the one not showing, no clue if it's related or not.

But I understand these aren't related, just figured I'd share in case there are other issues maybe with the dashboard. Your solution seems to have fixed the purpose of this issue though.

@kzndotsh
Copy link
Author

while I am here, @onedr0p, does exportarr intend to stop making attempts if the arr clients are down at some point in time? I noticed my logs slamming bazarr when I shut it down for a bit. Or is this not something handled at all?

@rtrox
Copy link
Collaborator

rtrox commented Oct 29, 2023 via email

@phyzical
Copy link
Contributor

and here i was thinking my instance would be a good test bed at 100k+ episodes 😆

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
None yet
Development

Successfully merging a pull request may close this issue.

4 participants