Giter VIP home page Giter VIP logo

Comments (6)

oznu avatar oznu commented on August 19, 2024

This should be happening with logrotate inside the container:

https://github.com/oznu/docker-unms/blob/master/root/etc/logrotate.d/unms

I'll check it's all working when I do the 0.14.0 release, I did have an issue with the permissions on the logrotate job in one of my other containers which prevented the cron from running.

from docker-unms.

Roberto6969 avatar Roberto6969 commented on August 19, 2024

Just to point to the right cause: in my logrotate.d is no trace of unms. Should be something there?
image

from docker-unms.

oznu avatar oznu commented on August 19, 2024

From the screenshot you've run the ls -l command on the host, not inside the container?

If I'm mistaken you may just be running an older version of the container?

from docker-unms.

Roberto6969 avatar Roberto6969 commented on August 19, 2024

Yes, you're right - I think this is the right content
root@af1a6ebc3f07:/etc/logrotate.d# ls -l
total 36
-rw-r--r-- 1 root root 173 Sep 13 2017 apt
-rw-r--r-- 1 root root 82 May 26 2018 certbot
-rw-r--r-- 1 root root 232 Jun 26 2018 dpkg
-rw-r--r-- 1 root root 146 Feb 10 2018 exim4-base
-rw-r--r-- 1 root root 126 Feb 10 2018 exim4-paniclog
-rw-r--r-- 1 root root 173 Jun 8 2018 postgresql-common
-rw-r--r-- 1 root root 260 Dec 29 2016 rabbitmq-server
-rw-r--r-- 1 root root 124 Jun 18 2018 redis-server
-rw-rw-r-- 1 root root 104 Feb 21 12:06 unms
root@af1a6ebc3f07:/etc/logrotate.d#

And this is my unms:
root@af1a6ebc3f07:/etc/logrotate.d# cat unms
/config/unms/logs/*.log {
size 10M
copytruncate
missingok
rotate 7
compress
delaycompress
}root@af1a6ebc3f07:/etc/logrotate.d#

from docker-unms.

oznu avatar oznu commented on August 19, 2024

If you chmod that unms file to 644 that should fix it until the next release.

You might want to manually delete the 11gb file though.

from docker-unms.

Roberto6969 avatar Roberto6969 commented on August 19, 2024

Done - thank you!

from docker-unms.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.