MDeLuise / plant-it

🪴 Self-hosted, open source gardening companion app
https://plant-it.org
GNU General Public License v3.0
455 stars 17 forks source link

Backend error when trying to add plant #133

Closed Sennevds closed 4 months ago

Sennevds commented 4 months ago

Avoid duplicated bug reports

Description

When trying to add a new plant via the search option I get following error as response: { "statusCode": 500, "errorCode": "INTERNAL_SERVER_ERROR", "message": "Could not commit JPA transaction" } In the backend logs nothing is shown

Expected behaviour

No response

Steps to reproduce

No response

Local environment

No response

Additional info

No response

MDeLuise commented 4 months ago

Hi @Sennevds, thanks for opening the issue! I just pushed an hotfix version of the backend service, the 0.4.1, could you please try if the problem is fixed in that version?

Sennevds commented 4 months ago

Works thanks for the fast response!

MDeLuise commented 4 months ago

Thank you for reporting this issue and using the project!

nykroy commented 4 months ago

I have the jpa transaction error. And the app said i have 0.3 version after Re-pull image and redeploy :s Screenshot_20240226-190545 Screenshot_20240226-190318

My stack file:

version: "3" name: plant-it services: backend: image: msdeluise/plant-it-backend:latest environment:

nykroy commented 4 months ago

With image: msdeluise/plant-it-backend:0.4.1 i have the same problem

MDeLuise commented 4 months ago

Hi @nykroy, thanks for bringing this issue to my attention. Could you please let me know when you encountered the issue?

I apologize for the inconvenience caused. It appears that the version number in the releases of the app was not updated correctly, leading to the display of 0.3.0 instead of 0.4.1. I will push a small fix for this tomorrow morning.

Thank you for your patience and understanding.

nykroy commented 4 months ago

thank you for your super usefull app 😃!

I encountered when i do a re-pull image and redeploy on my stack on portainer

MDeLuise commented 4 months ago

Thank you for using the project! 😁 Unfortunately as you noticed, some little bugs were introduced in the last release but I'm working on fixing them.

I just pushed a 0.4.2 version of the backend, now the app should show the right version. Could you please download this new version and let me know if your problem still persist?

nykroy commented 4 months ago

Now i have the correct version. I can add reminder but i can activate reminders Screenshot_20240226-215752 The error on backend is: WARN 12 --- [ main] JpaBaseConfiguration$JpaWebConfiguration : spring.jpa.open-in-view is enabled by default. Therefore, database queries may be performed during view rendering. Explicitly configure spring.jpa.open-in-view to disable this warning

nykroy commented 4 months ago

Ok the notification problem IS solved configuring email address for the user. 🤣. All problems are solved with 0.4.2 and email config

MDeLuise commented 4 months ago

Great that was that! 😁 If you incurred in any other issue you're welcome to open a bug

Happy planting 🪴