2
I’m having a problem with my development server and I can’t fix it.
I’ve done a lot of research, but I can’t find the solution. Probably those who have more advanced knowledge of the OS believe it could help a lot:
I was developing a bash script and at a time the code had to implement file deletion, but my script executed a rm -f
with the variable value (accidently).
My luck is that the command deletes only files .tmp
and .save
to delete files generated by nano. However, since the command ran at the root, I started to experience the following problems in the OS:
- the storage /dev/vda1 goes to 100% use after a few hours with the machine on.
- When storage is full CPU usage also goes to 100% being the sh program the consumer of the processing.
- When restarting the machine everything works normally.
- After a while it happens all over again.
What I did to try to solve it was:
- I updated with apt-get update && apt-get dist-upgrade. Problem persists.
- This Ubuntu was 16.04, I upgraded to 18.04.1 with do-release-upgrade. There were some update errors from headers.
- I tried to reinstall headers with apt upgrade --fix-Missing. Problem persists.
Anyway, I stopped by and decided to ask for help from the community, I ask you to help me fix this server, it would be very stressful to have to reconfigure all the services in a new machine and maybe this post can help someone in the future with this same problem. I’m willing to run all the necessary tests.