whishper icon indicating copy to clipboard operation
whishper copied to clipboard

Running on Synology NAS

Open brandnewant opened this issue 2 years ago • 13 comments

Firstly - newbie to docker and Linux, so apologies in advance!

I've followed the instructions but my mongodb keeps erroring and I can't figure out why. At first I read through the logs and it kept complaining that my hardware doesn't support AVX, so I tried altering to the yaml to download version 4.4 (the last before AVX requirements) - see attached.
compose.txt.

The compose error I get is: Dependency failed to start: container for service "mongo" is unhealthy

Logs (such as they are) for the Mongo container are also attached. whishper-mongo-1.csv

brandnewant avatar Sep 02 '23 14:09 brandnewant

Hey! This is a known issue, since other users also commented about this. I opened #11 to offer a solution for this, but I am now away and won't be able to work on the project until next week or so.

pluja avatar Sep 02 '23 16:09 pluja

Hi, I was able to find some time to look into this. I have been able to come up with a quick and easy solution that involves replacing MongoDB with FerretDB (it's 100% compatible with MongoDB!).

I haven't been able to test it much, but it should work almost without any issues. Please, follow the steps in https://whishper.net/troubleshooting/avx-problems/ and get back here if this solves your issues or if the problem continues!

pluja avatar Sep 02 '23 18:09 pluja

Morning! Thank you - it seems to have built and be running without errors now. However, we have a new problem. I can select a file or a link, and add it, but then nothing seems to happen.

image image

I feel like data gets uploaded (the network stats of my NAS show lots of data being exchanged), but the status page doesn't change (I assume it should show a queue?)

brandnewant avatar Sep 03 '23 08:09 brandnewant

Does reloading the page show anything? Could you share your docker compose logs to see if there are any errors there?

pluja avatar Sep 03 '23 11:09 pluja

Reloading the page gives the same: image

I'm not sure if this is what you wanted, but I've attached the logs for each container. The "build" executes correctly with Exit Code 0. whishper-nginx-1.csv whisper-libretranslate.csv whishper-mongo-1.csv whishper-postgres-1.csv whisper-api.csv whishper-web.csv whishper-backend.csv

brandnewant avatar Sep 03 '23 13:09 brandnewant

I see the backend is not able to authenticate to the database. Just to make sure, can you share your docker-compose.yml file? Have you added DB_USER and DB_PASS variables to the .env file as stated in the caution message in the docs? If not, please add these, remove all containers with docker compose down, remove the database folder from whishper_data directory and try running containers again.

pluja avatar Sep 03 '23 14:09 pluja

Thanks for looking into this. I tried that, and believe have the same issue. Compose file is attached.

Contents of my env is below [I put the User/Pass in, but as I said - newbie]:

Libretranslate Configuration

LT_LOAD_ONLY=es,en,fr

Whisper Configuration

WHISPER_MODELS=tiny,small WHISHPER_HOST=localhost:8082 DB_USER=whisper DB_PASS=whisper

compose.yaml.txt

brandnewant avatar Sep 03 '23 15:09 brandnewant

Let me know if there's something else you need from me - happy to try and help.

brandnewant avatar Sep 07 '23 08:09 brandnewant

Hey @pluja - anything else you need from me? Don't want to appear that I'm chasing, just not sure if you're waiting for something from me?

brandnewant avatar Sep 15 '23 10:09 brandnewant

Hey @brandnewant can you try with latest version 2.0.0 using the ferret version?

pluja avatar Oct 27 '23 17:10 pluja

Hey - thanks for coming back to me. I am running this within the Container Manager on a Synology NAS, and that implementation will not allow me to connect/authenticate to ghcr.io. I have grabbed tigrisdata/ferretdb instead. However, I get an error when buliding: Container for service "mongo" has no healthcheck configured.

brandnewant avatar Nov 02 '23 13:11 brandnewant

Has there been any progress on this? I am currently running into the same problem with the healthcheck.

DefaultLP avatar Nov 19 '23 22:11 DefaultLP