rstecinfo

Registered
Sep 4, 2021
1
0
1
Brazil
cPanel Access Level
Root Administrator
problem file rename logroate:

/etc/cron.daily/logrotate:
error: error renaming /var/log/nginx/domains.rotated/sgs.domainname.com.br-20200310-20200312-20200314-20200316-20200318-20200320-20200322-20200324-20200326-20200328-20200330-20200401-20200403-20200405-20200407-20200409-20200411-20200413-20200415-20200417-20200419-20200421-20200423-20200425-20200427-20200429.21.gz to /var/log/nginx/domains.rotated/sgs.domainname.com.br-20200310-20200312-20200314-20200316-20200318-20200320-20200322-20200324-20200326-20200328-20200330-20200401-20200403-20200405-20200407-20200409-20200411-20200413-20200415-20200417-20200419-20200421-20200423-20200425-20200427-20200429.22.gz: File name too long
 

cPRex

Jurassic Moderator
Staff member
Oct 19, 2014
7,442
1,004
313
cPanel Access Level
Root Administrator
Hey there! I'm not sure the issue is with logrotate, but with the name of the file that is generated being too long. It seems each date is being added to the name.

Do you have any custom tools that are working with the Nginx logs on the server?