pluja / whishper

Transcribe any audio to text, translate and edit subtitles 100% locally with a web UI. Powered by whisper models!
https://whishper.net
GNU Affero General Public License v3.0
1.62k stars 90 forks source link

Running on Synology NAS #17

Open brandnewant opened 1 year ago

brandnewant commented 1 year ago

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

pluja commented 1 year ago

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 commented 1 year ago

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!

brandnewant commented 1 year ago

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?)

pluja commented 1 year ago

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

brandnewant commented 1 year ago

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

pluja commented 1 year ago

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.

brandnewant commented 1 year ago

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 commented 1 year ago

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

brandnewant commented 1 year ago

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?

pluja commented 1 year ago

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

brandnewant commented 1 year ago

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.

DefaultLP commented 12 months ago

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

Torrecilla commented 2 weeks ago

Looking forward