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
Broken after restart #210
Comments
Before you do anything, I think you should backup your linguacafe folder to prevent any data loss if possible.
That sounds very extreme. It takes less than 20 minutes on my slow laptop for JMDict, which is the largest I think. Do you use an HDD or SSD for the linguacafe folder? What system specifications do you have?
It seems like the database is not working, and I think it is corrupted. I don't know if it can be fixed. I also don't know if it's the database content itself, or the server files. Can you please also copy the log from the database server as well, to see what it says when you start the server? @sergiolaverde0 Have any idea about what can be done with the database? |
Yes, it took at least 3 hours for jmdict and another couple of hours for japanese wikictionary and italian wikictionary. When started, this is the log from database and CPU is maxed out to 100%.
On the same server I'm running Nextcloud, Immich, Photoprism and many others, with no problem.
EDIT One thing I just remembered, /etc/docker/daemon.json is set as
because when I installed the SSD I think I tried to get the most speed I could. |
Honestly, I'm not familiar with those, but it does not sound slow at all. I am using an old laptop, with an old ssd and importing JMDict took less than 20 minutes. It is a bit slow, but not several hours slow. If you have just started using it, I think it would be better to just try a fresh install, and figure out why is it slow if it's okay with you. It will be much faster to import dictionaries again.
I don't think this is something related to the network. Dictionary import just reads data from the storage, and saves it in the database after a minimal text processing. If you can import any text, then the network part should be fine.
It seems like from the log that the database is just starting up. I have no idea what could cause the slowdown. |
Are the other containers running on the same network? Do any of them use a different MySQL container? Did you set any of the variables for the Database container (username, passowrd, ect)? |
Yes, of course. Portainer counts 89 running containers (with a few more stopped for various reasons). At some point when I was adding them, the system refused to add more, because there were no more non-overlapping IPs (from what I understood by the error popouts), so I created a new one and set all subsequent containers to "omv2" network.
Most likely, but I'd have to check them one by one... Anyway they are always separated. If a container uses a db, I mount it in a folder that is usually
If you mean in the Linguacafe db, no, I left all settings to default with idea of changing them after checking it was working. |
No problem, just tell me what to do/delete.
The first time I started the LinguaCafe, everything was smooth, it slowed down as soon as I started importing JMCT dictionary. |
Mmm I just noticed that Ghost uses MySQL (I installed this yesterday, still haven't used it):
|
And Seafile as well:
|
Good practice, but I suspect the webserver is trying to knock on a different container's door as that is the most likely explanation of the Running Linguacafe in its own network is probably the best solution right now. |
Did you have any success figuring out what's wrong? |
I will try again tomorrow afternoon, I'm busy with university. I need a fat timeslot to handle this kind of things ;-) |
Oh, okay. Didn't mean to rush you, I was just curious if I could help with something. |
So, I've started from scratch and used the docker-compose as-is, nothing touched. I've been able to set it up and running. But again the dictionary import is slow. After 40 minutes, JMDict is at 28%. One thing that I didn't mention previously is that in Admin Settings/Dictionaries I've set target for JMDict and Japanese wikictionary to Italian and Japanese as target to Italian wikictionary. I've noticed that the import popup window for JMDict kept English as target. Is it possible that that' the reason of this slowness? |
I'm not sure I understand completely. I just realized that you can change JMDict source language, which is a bug. Source language: The language that you want to use the dictionary for. So if you have a Japanese - English dictionary, the source language should be japanese. Target language: It's just for visual help, it does not change anything. It's for cases when you use multi lingual dictionaries for one source language. For example you learn Japanese, then you use a Japanese - English, and Japanese - German dictionary at the same time. Changing this does not change the content of the dictionary.
In any case, it should not be related to the slowness. I really have no idea what causes this. I asked on discord if anyone had similar experiences. |
Actually it seems completely stuck. I just checked it and it's still at 28%. Last time was slow, but didn't get stuck.
|
These are requests to ask for the current database record count, so it can update the progress bar. |
Since it was still at 28%, I refreshed the page and started over. Will see what happens. |
I... I didn't know you could do that. After checking the files of JMDict directly I'm quite certain that you shouldn't do that or at least won't accomplish anything with it. Yet, I mimicked it and it still imported normally. While your Linguacafe stack is having a seizure do the rest of your services work normally or is it propagating to them too? Does the all the CPU usage really come from these containers? |
The third diictionary I imported, Italian wikictionary actually took about 20 mins. Basically each one I imported took less than the previous, so about 2 hours, 1 hour, 20 mintues. These are Grafana graphs of the past 2 days. I have screenshotted both the whole set of containers running and the single separate Linguacafe containers. Check the middle/lower left frames. WEBSERVER PYTHON SERVICE DATABASE ALL CONTAINERS ALL CONTAINERS - UPPER PART OF GRAPHS |
Every dictionary takes a different amount of time based on what kind of dictionary file it is, and how many record it contains. Italian wiktionary took me 1:30 minutes. My laptop: Intel i5-8250u CPU, 8GB RAM, 128GB 5+ year old SSD. |
I don't know what to say. I just deployed the compose as-is and that is how it behaves on my machine. Intel i3-7100T CPU @ 3.40GHz, 32GB RAM, 512GB 1 year SSD The server works fine with everything else. |
Just updated to v0.12.1 |
I have no idea what happened, but I am happy its working now. :) |
Today I deployed the container on a x64 machine, all wente well, I imported three dictionaries (several hours for Japanese), added DeepL API key, then I tried to use it. At that point it looked borked and the server in general became sluggish. Since it was taking forever to stop the service, I rebooted the machine. When I tried to restart Linguacafe, I got this repeated error from linguacafe-webserver:
I haven't touched anything, just rebooted, what did I break?
The text was updated successfully, but these errors were encountered: