Comments (5)
Unfortunately it looks like the logs rotated out and I'm having difficulty with coredump (running an ubuntu host at the moment)
This happens with some frequency so next time it does I will immediately gather logs and investigate how to generate a core dump when I have more time to dedicate to debugging this
In the mean time leaving this open may help gather information if anyone else has similar behavior (or not - which would indicate this is something broken with my setup)
Thank you for your help!
from flexo.
Can you please provide the flexo version you're using? (e.g. docker image ls nroi/flexo
).
Also, please provide more details about how the clients are interacting with flexo, for example:
- Have you noticed any errors or something unexpected when you run pacman?
- Do you have any scripts, cronjobs or whatever that are running pacman, or otherwise interacting with flexo? Or are you certain that all requests sent to flexo are done because an actual human is running the pacman command?
I'm asking the second question because I've noticed some regularity in those log statements:
[2023-08-04T06:22:11.124Z INFO flexo] Received request for path "core/os/x86_64/core.db".
The core.db
file is the first file requested by pacman when you run pacman -Syu
or pacman -Sy
or similar. If you grep for those requests in the log statements, you get this:
[2023-08-04T06:22:11.124Z INFO flexo] Received request for path "core/os/x86_64/core.db". Range start: 0
[2023-08-04T06:27:15.828Z INFO flexo] Received request for path "core/os/x86_64/core.db". Range start: 0
[2023-08-04T06:32:20.478Z INFO flexo] Received request for path "core/os/x86_64/core.db". Range start: 0
[2023-08-04T06:37:25.131Z INFO flexo] Received request for path "core/os/x86_64/core.db". Range start: 0
[2023-08-04T06:42:29.479Z INFO flexo] Received request for path "core/os/x86_64/core.db". Range start: 0
[2023-08-04T06:47:33.904Z INFO flexo] Received request for path "core/os/x86_64/core.db". Range start: 0
If you compare the timestamps, they are all 5 minutes and about 4.5 seconds apart. Even though I cannot rule out that this is caused by a flexo bug, I just want to ask if you have a cron job or something before I start chasing ghosts 😉
from flexo.
Can you please provide the flexo version you're using? (e.g. docker image ls nroi/flexo).
❯ docker image ls nroi/flexo
REPOSITORY TAG IMAGE ID CREATED SIZE
nroi/flexo latest 6609a4785656 5 days ago 112MB
nroi/flexo <none> 601652172d6e 10 months ago 112MB
Have you noticed any errors or something unexpected when you run pacman?
Do you have any scripts, cronjobs or whatever that are running pacman, or otherwise interacting with flexo? Or are you certain that all requests sent to flexo are done because an actual human is running the pacman command?
I have a polybar script which runs checkupdates every 5 minutes to check to see if there are any pending updates.
The logs may be a red herring in this case. The eating a lot of CPU until it restarts happens maybe once a month or so?
It doesn't "go away" and even happens when the system that runs checkupdates
is asleep and not hitting the flexo mirror for updates. In my screenshot above for example in my screenshot above no computer on my network was asking for updates every 5 minutes.
So perhaps the logs are not showing what is eating the CPU.
I didn't have the presence of mind to inspect the container to see what process was eating CPU (I restarted the container from bed with my phone since I could hear my server was working hard for no reason 😅) - next time this happens I will do so to provide additional information.
from flexo.
I didn't have the presence of mind to inspect the container to see what process was eating CPU
Alright. If it's not too much effort, and you have no concerns regarding privacy, please also provide a coredump (I don't expect any privacy-relevant data in the flexo coredump, but that's up to you). You can send it to me via e-mail: [email protected]
Here's how to create a coredump on flexo running via docker:
docker exec -it <container-id> /bin/bash
- then, inside the docker container, kill the process via:
kill -11 $(pidof flexo)
. - the coredump is then on the host system inside the
/var/lib/systemd/coredump
directory (if you're running ArchLinux).
from flexo.
Also, if you have any logs available from the time when the CPU load was so high, that would also be helpful.
from flexo.
Related Issues (20)
- add liveness/readyness enpoints HOT 3
- Feature Request: Object Storage (S3) HOT 3
- [Potential Bug] DemarshallError(Error("unknown variant `ftp`, expected one of `http`, `https`, `rsync`", line: 1, column: 227697)) HOT 3
- [Potential Bug] JSON fallback is not used
- Docker `latest` tag not updated HOT 1
- Flexo docker fails to start: "No such file or directory", then "Unable to fetch mirrors remotely" HOT 2
- [feature request] Prefetch HOT 4
- Crash on startup HOT 2
- Periodically update the cache? HOT 2
- Integration tests failing on latest build HOT 4
- Mirrors timing out in docker HOT 7
- Error compiling rustc-serialize HOT 1
- signature from <package> is invalid HOT 25
- Listen to multiple IPs HOT 1
- ARM cache issues HOT 1
- Panic on nonexistent `latency_test_results.json` due to invalid status.json format HOT 1
- Implement support for Manjaro
- Flexo stops working from time to time HOT 2
- Different mirrors serving the same package with different size HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from flexo.