Monitorr / logarr

“Logarr” is a self-hosted PHP web app that consolidates, formats, and displays log and text files for easy analysis and monitoring.
https://github.com/Monitorr
MIT License
277 stars 12 forks source link

Errors in Log During update #122

Closed pathsny closed 5 years ago

pathsny commented 5 years ago

Your environment:

Describe your issue:

When I try to run an update I see errors in the log. It looks like so Line 0 : PHP message: PHP Warning: fclose() expects parameter 1 to be resource, boolean given in /usr/local/www/logarr/assets/php/version_check.php on line 7" while reading response header from upstream, client: 192.168.1.81, server: localhost, request: "POST /assets/php/version_check.php HTTP/1.1", upstream: "fastcgi://unix:/var/run/php-fpm.sock:", host: "192.168.1.88", referrer: "http://192.168.1.88/" Line 1 : PHP message: PHP Warning: fgets() expects parameter 1 to be resource, boolean given in /usr/local/www/logarr/assets/php/version_check.php on line 6 Line 2 : PHP message: PHP Warning: fopen(https://raw.githubusercontent.com/Monitorr/logarr/master/assets/js/version/version.txt): failed to open stream: No such file or directory in /usr/local/www/logarr/assets/php/version_check.php on line 5

seanvree commented 5 years ago

@pathsny Can you reach that link from the same server Logarr is installed on?

https://raw.githubusercontent.com/Monitorr/logarr/master/assets/js/version/version.txt

This usually means that the server can't reach that link for whatever reason.

Let me know.

Thanks

pathsny commented 5 years ago

Yes I can. Sorry I should have mentioned that first.

On Mon, Mar 25, 2019, 4:45 PM Sean Vreeland notifications@github.com wrote:

@pathsny https://github.com/pathsny Can you reach that link from the same server Logarr is installed on?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/Monitorr/logarr/issues/122#issuecomment-476419611, or mute the thread https://github.com/notifications/unsubscribe-auth/AAHstgezpgmvuYYKi5ipU8IIbuYCBz00ks5vaV-kgaJpZM4cFt17 .

seanvree commented 5 years ago

@pathsny humm. I'm not sure then. I've never seen this before. Do you by chance have the PHP extension "openssl" installed? If NOT, install that from your php.ini file and see what happens.

pathsny commented 5 years ago

I tried this and I don't see errors any longer, but I'm unable to figure out what log to look at to know if it suceeded. What are the log files I shoud look at other than /var/log/nginx/error.log

seanvree commented 5 years ago

@pathsny if the footer says 4.6m then it worked and you're on the latest version. If there's an update it will alert as so. So looks like that fixed it.