debridmediamanager / debrid-media-manager

Curate an inifinite media library
https://debridmediamanager.com/
348 stars 18 forks source link

Docker, error when searching and recent #105

Open mrasmith opened 5 months ago

mrasmith commented 5 months ago

I'm trying to run a local instance of debridmediamanager (in docker). Most lists work, i.e. browse/today, browse/best etc but I get this errors when I try recent:

Error: JSON.parse: unexpected character at line 1 column 1 of the JSON data

Also when I try use the search feature I get the following error:

Error: Invalidprisma.search.findUnique()invocation: error: Error validating datasourcedb: the URL must start with the protocolmysql://. --> schema.prisma:10 | 9 | provider = "mysql" 10 | url = env("DATABASE_URL") | Validation Error Count: 1

I believe I've set up the database correctly on PlanetScale as described on the setup instructions. I've also entered keys for TMDB, MDBLIST, OMDB and Jackett

Am I missing something else that's required ?

alceasan commented 2 months ago

Same problem here, using local database in my case. In any case, PlanetScale has already stop offering its free tier, so a local database option should also be included in the setup instructions.

yowmamasita commented 2 months ago

The ideal migration path would be to self host the database as well. It should be straightforward since I am using Prisma.

amcgready commented 2 months ago

Unfortunately, I am having the same errors on my end as well.

12nick12 commented 3 weeks ago

Is there a .sql file available to create the correct database schema since it appears the docker container doesn't create the schema on first start.

st-ivan commented 2 weeks ago

Is there a .sql file available to create the correct database schema since it appears the docker container doesn't create the schema on first start.

facing this same issue. docker setup doesnt provide any search result. did you fix your setup?