-
-
Notifications
You must be signed in to change notification settings - Fork 4k
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
Continous PHP errors: inet_ntop() and inet_pton() #7090
Comments
@janis91 What is the remoteAddr in those cases? (see the log file) It is fine to replace some numbers/characters in there, but they should be the same (for example exchange a letter for a letter, or a digit for another digit, but don't replace a dot or a colon) |
...only to show a few (of course I changed the IP here, but there is nothing wrong with it, I would say). Maybe the nginx site config helps:
|
@janis91 All kind of problems have been reported in the past when you're using HTTP/2 to access Nextcloud. So my recommendation is to give HTTP/1.1 a try first, to narrow down the problem. See e.g. #6817 (comment) |
@j-ed if there are issues with http2 and nextcloud (the issues referenced by you seem to be solved) I don't get why the confiuration sample in the docs are for http2: https://docs.nextcloud.com/server/12/admin_manual/installation/nginx.html |
@janis91 It was only a shot in the dark from my side. As far as I see you haven't told us the architecture (Raspberry Pi) nor the Nginx version in your original issue ticket. How will you know that the issue I referred to has been solved on your system you're not hit by it? Would it be possible that you also provide the exact error message from the log file? |
@j-ed There was no offense. I just think, that if it is really a problem with http2 it would be worth finding out the reason. http2 is much better in many different aspects, so IMHO nextcloud shouldn't lag support for it ;-) You're right that I missed to mention that I am on Raspbian and not on "real" Debian (from ssh it feels the same :-D ) and moreover I did not mention the nginx version, also right. Thanks for your shot in the dark btw. :) |
@janis91 Due to the fact that the functions are used to convert ip addresses I'm still interested in the real log entries and also like to know if you're using an IPv4 or IPv6 address and how it looks like in detail. |
@j-ed which logs do you mean? I already posted entries from access.log of nginx and of nextcloud.log (corresponding ones). Should I activate the debug log level? |
@janis91 Sorry, my fault - The logs were folded and not instantly displayed. |
Obviously it goes through the ipv6 subnet function. why? Nginx is logging a IPv4 address. |
Yes, that's what I've found too. The function 'getIPv6Subnet' is called from 'getSubnet' because the IPv4 preg_match fails. You can try to add a debug print-out to one of the functions to get hold of the parsed ip address. |
It seems the issue is that there is no remoteAddr set. Which is strange. Like it is filtered out. |
I thought that this was sanitised by the ticket owner? @janis91 Have you removed the remoteAddr from the logs? |
@MorrisJobke @rullzer No I didn't remove any value from the nextcloud.log entries. Everywhere I removed something I used "REMOVED SENSITIVE VALUE" in order to make that clear. Whereas I masked the IP values from the access.log not by removing them, instead I changed the numbers. Everything else is left original. |
It could be, that I fixed it. I will have to do some more tests, but it might be a confguration issue of nginx that took me there. I will come back with the fix later, if I made sure, that it works. |
Fixed the issue. Finally my changes: TO |
I have a question regarding continously occuring errors in my nextcloud log.
What can cause such a behaviour? Is it a wrong configuration on my side or is it a bug on NC side?
Expected behaviour
No errors.
Actual behaviour
Errors.
Server configuration
Operating system:
debian stretch.
Web server:
nginx
Database:
psql 9.6
PHP version:
7.0
Nextcloud version: (see Nextcloud admin page)
12.0.3
Updated from an older Nextcloud/ownCloud or fresh install:
11 (yes)
Where did you install Nextcloud from:
upgrade (downloaded package before)
Signing status:
Signing status
List of activated apps:
App list
Nextcloud configuration:
Config report
Are you using external storage, if yes which one: nfs
Are you using encryption: no
Are you using an external user-backend, if yes which one: no
Client configuration
different clients as in the logs.
Logs
Web server error log
Web server error log
Nextcloud log (data/nextcloud.log)
Nextcloud log
The text was updated successfully, but these errors were encountered: