Skip to content
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

how to clear logs #28

Open
flourishing opened this issue May 24, 2023 · 4 comments
Open

how to clear logs #28

flourishing opened this issue May 24, 2023 · 4 comments

Comments

@flourishing
Copy link

I tried to make migration of poste.io. when i tar it, too many logs. it tooks about one hour to pack it. how to clear the logs. and which logs or directory or files we can delete them ? thanks .

@pjeby
Copy link
Member

pjeby commented May 24, 2023

I don't understand what you mean by "make migration". All the data and configuration is stored in the data volume, so that should be all you need. Logs are in the log subdirectory of the data volume, and are automatically rotated, unless you're using a really old version of poste. (There is an old version that would accumulate tons and tons of logs on a daily basis due to failed rotations.)

@flourishing
Copy link
Author

sorry . i mean I try to move poste docker container to another server. when i try to backup the data volume, it has many many log files. it take me one hour. i used the latest docker image, which downloaded about 7 months ago. so i don't know is it too old or not . I will try to upgrade to the newest version. see what happend. thanks for the response quickly.

@flourishing
Copy link
Author

hi, i have tried to install a new one. i met a problem, got an error message. and can't start the container.
023-05-24 20:09:33 #676(main) <79a2dc>; main; main: rspamd 3.1 is loading configuration, build id: release
2023-05-24 20:09:33 s6-svscan: fatal: directory already locked
2023-05-24 20:09:33 [cmd] s6-svscan exited 100
2023-05-24 20:09:33 [cont-finish.d] executing container finish scripts...
2023-05-24 20:09:33 [cont-finish.d] done.
2023-05-24 20:09:33 [s6-finish] syncing disks.
2023-05-24 20:09:34 [s6-finish] sending all processes the TERM signal.
2023-05-24 20:09:37 [s6-finish] sending all processes the KILL signal and exiting.

@flourishing flourishing reopened this May 24, 2023
@pjeby
Copy link
Member

pjeby commented May 24, 2023

So, this was the log rotation issue: https://bitbucket.org/analogic/mailserver/issues/818/roundcube-logs-are-rotated-recursively - it was fixed as of 2.2.27, but if you ever used an older version you would likely have excess logs even after the problem was fixed. You'll want to check and see if there's a huge roundcube/logs directory under the data volume, and delete those files.

With regard to the "directory already locked" problem, my guess would be that you backed up the data volume while the mail server was running and thus have a lock file present? Probably you will need to do the backup with the mail server offline. I was not able to find anything on Google about that error, so I don't know for sure.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants