Skip to main content

EA-9789 - NGINX Anacron Logrotate Error

Comments

19 comments

  • cPRex Jurassic Moderator
    Hey there! I'm not finding much on my end for this error as there are many similar cron messages, but not that specific issue with nginx. I did send @cPanelAdam a message on this, but he actually has today off so I won't hear back until tomorrow. I'll keep this thread marked as new for now and let you know once I have more details.
    0
  • finna
    Hey @cPRex, Haven't been greeted with any error today strangely. I will update if it returns over the next few days as the crons run. Thanks
    0
  • cPRex Jurassic Moderator
    I'm glad to hear it hasn't been happening. Let us know if you see that again!
    0
  • allpar
    FWIW, I do have it, but only when run by cron; not when entered manually.: /etc/cron.daily/logrotate: Could not determine owner of "127.0.0.1" error: error running non-shared postrotate script for /var/log/nginx/domains/127.0.0.1 of '/var/log/nginx/domains/* ' Could not determine owner of "127.0.0.1" error: error running non-shared postrotate script for /var/log/nginx/domains/127.0.0.1-bytes_log of '/var/log/nginx/domains/* ' Could not determine owner of "127.0.0.1" error: error running non-shared postrotate script for /var/log/nginx/domains/127.0.0.1-ssl_log of '/var/log/nginx/domains/* ' (and so on)
    0
  • cPRex Jurassic Moderator
    The update for case EA_9673, which is what the original case of CPANEL-36504 was turned into, was released on April 14. Since it is an EasyApache update, it is not tied to a specific version of cPanel. @allpar - can you let me know what version of ea-nginx you are using? 1.19.9 or higher would have the fix applied.
    0
  • matt1206
    The update for case EA_9673, which is what the original case of CPANEL-36504 was turned into, was released on April 14. Since it is an EasyApache update, it is not tied to a specific version of cPanel. @allpar - can you let me know what version of ea-nginx you are using? 1.19.9 or higher would have the fix applied.

    Was this fixed, or has the issue been reintroduced? updated a bunch of my servers to the latest version of cPanel and installed the nginx for reverse caching. All of them started reporting this now /etc/cron.daily/logrotate: Could not determine owner of "127.0.0.1" error: error running non-shared postrotate script for /var/log/nginx/domains/127.0.0.1-bytes_log of '/var/log/nginx/domains/* ' Could not determine owner of "127.0.0.1" error: error running non-shared postrotate script for /var/log/nginx/domains/127.0.0.1-ssl_log of '/var/log/nginx/domains/* '
    0
  • cPRex Jurassic Moderator
    @matt1206 - can you run this command on the server? rpm -qa | grep ea-nginx
    0
  • matt1206
    @matt1206 - can you run this command on the server? rpm -qa | grep ea-nginx

    [root@host ~]# rpm -qa | grep ea-nginx ea-nginx-1.20.0-2.2.1.cpanel.x86_64
    0
  • cPRex Jurassic Moderator
    I would expect that version to no longer have the issue. Could you submit a ticket to our team so we can check that?
    0
  • grogo
    Hi all, Same error here since enabled NGINX reverse proxy. [CODE=bash]rpm -qa | grep ea-nginx ea-nginx-1.20.0-5.5.2.cpanel.x86_64
    Error from Anacron job 'cron.daily' Could not determine owner of "127.0.0.1" error: error running non-shared postrotate script for /var/log/nginx/domains/127.0.0.1-ssl_log of '/var/log/nginx/domains/* '
    0
  • cPRex Jurassic Moderator
    @grogo - can you submit a ticket to our team so we can take a deeper look at this?
    0
  • cPRex Jurassic Moderator
    Our team has done some additional testing with this issue and created the following article to help resolve this:
    0
  • grogo
    Hello @cPRex, Zendesk attached link doesn't seem to work. However, I've successfully opened a ticket; i'll post here what cPanel Support suggested to do [QUOTE]In any case, I did some research to determine what we know about this reported issue so far. And as I understand it, although the word 'error' is mentioned in the output, this could be treated as informational and may be related to the rate that the nginx logs are rotated. We've seen this issue in relation to AWstats and had the following support article which provided a workaround to that effort here: # Do not send e-mail with the last rotated log nomail
    Once completed you would then need to restart the cron system in your server: /scripts/restartsrv_crond

    Despite that solution was successfully applied, I'm still getting "logrotate.log" every day in my mailbox. Update cPanel support just updated my case with additional details: [QUOTE]Fortunately, we've been looking into the origin of this issue further and have uncovered more effective workarounds as well as the reason this is occurring in the first place. You can find the relevant insights in our newly published article here:
    .
    0
  • cPRex Jurassic Moderator
    I'm glad we could help! That's actually where my link was supposed to go to, but for some reason the forums shortened it to something else. I'll get that adjusted.
    0
  • grogo
    Still no valid solution from cPanel support.. :confused: @matt1206 did you find a workaround ?
    0
  • cPJustinD
    This appears to be related to an internal case that was recently filed, EA-9789. [QUOTE]To address this error, we advise removing the offending log file cited in the error from the location '/var/log/nginx/domains/'. These should not be generated during normal requests and only occur after a Nginx service restart if page requests have been made to localhost/127.0.0.1.
    More information on this can be found here:
    0
  • cPRex Jurassic Moderator
    Update - this issue is resolved with version 1.21 of the ea-nginx package. Since this is an RPM build, it's not tied to any specific version of cPanel, although versions 94 and 96 both currently download that version by default.
    0
  • grogo
    Is it possibile to have a changelog explaining that behavior ? Why that happens ? Thanks! :)
    0
  • cPRex Jurassic Moderator
    @grogo - sure! EasyApache 4 Change Log 2021 | cPanel & WHM Documentation You'll see the entry for EA-9789 near the top of that page.
    0

Please sign in to leave a comment.