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

[BUG] Invalid prisma.marketData.findMany() invocation #2653

Closed
aveekbhat opened this issue Nov 15, 2023 · 12 comments · Fixed by #2659
Closed

[BUG] Invalid prisma.marketData.findMany() invocation #2653

aveekbhat opened this issue Nov 15, 2023 · 12 comments · Fixed by #2659
Labels
bug Something isn't working

Comments

@aveekbhat
Copy link

aveekbhat commented Nov 15, 2023

The Issue tracker is ONLY used for reporting bugs. New features should be discussed in our Slack community or in Discussions.

Bug Description

Accounts section does not work see screenshot below
Seems to be a prisma library issue
Invalid prisma.marketData.findMany() invocation:
Assertion violation on the database: too many bind variables in prepared statement, expected maximum of 32767, received 37180
prisma/prisma#21648

Screenshots

image

Logs

_ghostfolio-ghostfolio-1_logs.txt

Environment

  • Self-hosted
  • Ghostfolio Version 2.22.0 - 2023-11-11
  • Browser Chrome/Firefox
  • OS Windows/Archlinux

Additional context

@dtslvr
Copy link
Member

dtslvr commented Nov 16, 2023

Maybe be related with this change here of #2631? 🤔

@dtslvr
Copy link
Member

dtslvr commented Nov 16, 2023

@aveekbhat @Pindol83
I am not able to reproduce this error locally. Can you give a rough estimate of how many assets / activities you have in Ghostfolio?

@dtslvr dtslvr added bug Something isn't working question Further information is requested labels Nov 16, 2023
@dtslvr dtslvr linked a pull request Nov 16, 2023 that will close this issue
@aveekbhat
Copy link
Author

sorry for the late reply .. i have 534

@aveekbhat @Pindol83 I am not able to reproduce this error locally. Can you give a rough estimate of how many assets / activities you have in Ghostfolio?
i have 534 activities ..

I downgraded to version 2.20.0 (i was running that before) and everything is normal .. i will wait for the next release

@dtslvr
Copy link
Member

dtslvr commented Nov 17, 2023

Thank you for the reply, @aveekbhat.
There is a new release available addressing this: https://github.com/ghostfolio/ghostfolio/releases/tag/2.24.0
Does it fix the issue?

@aveekbhat
Copy link
Author

Thank you for the reply, @aveekbhat. There is a new release available addressing this: https://github.com/ghostfolio/ghostfolio/releases/tag/2.24.0 Does it fix the issue?

Just upgraded it to this release and everything looks great !! 💯

@dtslvr
Copy link
Member

dtslvr commented Nov 17, 2023

Just upgraded it to this release and everything looks great !! 💯

That's great. Thanks for the feedback 😎

@dtslvr dtslvr removed the question Further information is requested label Nov 17, 2023
@shiruken
Copy link

I was also seeing this error but upon updating to 2.24.0 I'm now seeing flat lines (0%) on all performance charts and $0.00 values for all my holdings. No error messages are being generated in the logs.

@dtslvr
Copy link
Member

dtslvr commented Nov 17, 2023

I was also seeing this error but upon updating to 2.24.0 I'm now seeing flat lines (0%) on all performance charts and $0.00 values for all my holdings. No error messages are being generated in the logs.

Do you see anything if you create a new user account and import the activities of ok.json?

@shiruken
Copy link

Do you see anything if you create a new user account and import the activities of ok.json?

Nope, everything is still zeros with errors in the log

image

image

@dtslvr
Copy link
Member

dtslvr commented Nov 18, 2023

image

Cannot read properties of undefined (reading 'items') seems to be a different issue: #1228

@shiruken
Copy link

Cannot read properties of undefined (reading 'items') seems to be a different issue: #1228

Ah, that's it. I recently disabled the TZ="" variable in my configuration because I couldn't remember what it was for. Added it back and everything is working again now.

@dtslvr
Copy link
Member

dtslvr commented Nov 18, 2023

Ah, that's it. I recently disabled the TZ="" variable in my configuration because I couldn't remember what it was for. Added it back and everything is working again now.

Interesting. Could you please document your insights in this ticket #2669, too?

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.

3 participants