-
-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
Can't setup Nextcloud on master... PHP 7.3 issue #11868
Comments
Seems like switching back to php 7.2 solved the issue |
Still weird as we now run 7.3 CI.... |
I can still reproduce the problem. Also on a existing installation. As soon as I switch from php 7.2 to php 7.3 I get a internal server error. On a Nextcloud which is already setup and works fine with PH P7.2 I get this errror message in the log file as soon as I switch the server to PHP 7.3:
|
I just upgraded PHP to 7.3 on Debian and everything broke for NC. Other applications that require php-fpm work just fine on 7.3. Not really looking forward to downgrading, but I'm going to have to. |
@schiessle Looks like Could you check |
I just tested this on a clean 7.3 docker. And I can setup an instance just fine. @schiessle could you set a breakpoint at the decrypt function and step trough it to see where this does 💥 Because probably @danielkesselberg is correct. However I do not exactly see what it has to do with 7.3 |
Just wanted to collect the additional information but now it works here... Maybe this was fixed by one of the latest changes to the server or 3rdparty updates. |
@grawlinson can you verify that it also works for you with the latest master? |
I think my issues may be related to my setup (haven't found root cause yet), so I recommend closing this issue if it works for you. |
The latest master seems to have broken my install. First it was this, now it's this:
|
Strange, now the problem happens again here as well... let's debug this further. |
I think there are two different issues, one is the db issue during initial setup and one is crypt issue when I move a existing system from php7.2 to php7.3 I started to look into the first one (the db issue): I use sqlite for testing, maybe this makes a difference as well. The problems seams that we default to "null" as parameter type when no type is given: https://github.com/nextcloud/server/blob/master/lib/public/DB/QueryBuilder/IExpressionBuilder.php#L126 So at the end we are calling this method with So now I know the problem, but I'm not sure what's the proper way to fix it. Maybe @nickvergessen has a idea? |
I installed:
And could install just fine via CLI:
|
hm, this is getting more and more confusing. CLI install works here as well but I get reproducible the db error if I perform the installation in the browser, @nickvergessen could you try this as well? But even with the succesfull CLI setup I can't login afterwards. Firefox shows the generic error page "The connection was reset", no error message in the Nextcloud log but I see segfaults in the apache log:
|
For #11868 Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
For #11868 Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
just as a quick update, meanwhile PHP 7.3 was released and updated in Debian. I run now "PHP 7.3.0-1" and still experience the same problem. |
Was this ever figured out as a fix yet? I was using php7.0 and all was working but some apps could not be installed saying needed at least 7.1. I decided to go right to 7.3, because it says php 7.3 is supported by nextcloud on the requirements page. Now at times I can login but loads a no data sent to chrome page, and randomly at times I see the actual blue page saying internal error nextcloud look at the server logs page... Error: "crypt issue when I moved an existing system from php7.0 to php7.3" {"reqId":"K36f0U7oAbHatIrmnELU","level":3,"time":"December 11, 2018 20:01:24","remoteAddr":"192.168.0.1","user":"--","app":"cron","method":"GET","url":"/cron.php","message":{"Exception":"TypeError","Message":"Return value of OC\Security\Crypto::decrypt() must be of the type string, bool returned","Code":0,"Trace":[{"file":"/home/user/public_html/example.com/html/lib/private/Session/CryptoSessionData.php","line":82,"function":"decrypt","class":"OC\Security\Crypto","type":"->","args":["*** sensitive parameters replaced "]},{"file":"/home/user/public_html/example.com/html/lib/private/Session/CryptoSessionData.php","line":63,"function":"initializeSession","class":"OC\Session\CryptoSessionData","type":"->","args":[]},{"file":"/home/user/public_html/example.com/html/lib/private/Session/CryptoWrapper.php","line":100,"function":"__construct","class":"OC\Session\CryptoSessionData","type":"->","args":[{"class":"OC\Session\Internal"},{"class":"OC\Security\Crypto"}," sensitive parameter replaced ***"]},{"file":"/home/user/public_html/example.com/html/lib/base.php","line":428,"function":"wrapSession","class":"OC\Session\CryptoWrapper","type":"->","args":[{"class":"OC\Session\Internal"}]},{"file":"/home/user/public_html/example.com/html/lib/base.php","line":656,"function":"initSession","class":"OC","type":"::","args":[]},{"file":"/home/user/public_html/example.com/html/lib/base.php","line":1068,"function":"init","class":"OC","type":"::","args":[]},{"file":"/home/user/public_html/example.com/html/cron.php","line":41,"args":["/home/user/public_html/example.com/html/lib/base.php"],"function":"require_once"}],"File":"/home/user/public_html/example.com/html/lib/private/Security/Crypto.php","Line":133,"CustomMessage":"--"},"userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/71.0.3578.80 Safari/537.36","version":"14.0.4.2"} |
@cdmlb your issue is fixed in 15 |
Disabling Xdebug seems to solve the issue and I can setup Nextcloud 15. But today I found out that SAML is also broken on PHP7.3 (also if xdebug is disabled) but this seems to be a incompatibility of the 3rdparty lib:
|
Just to avoid some misunderstanding on my side: this means users should better stay on PHP 7.2 for now and should not upgrade to PHP 7.3? |
@Schmuuu php v7.3 is working properly with nextcloud v15, it's just some apps can't be installed until they are updated to support passed 7.1 or 7.2, and the warnings are for now just warnings because they changed stuff in php v7.3 when it comes to continue and break in a switch out of a loop. It works for now until it's not a warning anymore but an actual error causing an exception. I'm sure all will be updated to v7.3 before that happens, we hope. |
@schiessle if it's not one thing it's another, after moving back to linux, I just find to many things become dependent so deeply and some things get updated to new versions, but depend on things that are not updated, causing you to have all php v7.3 but still parts of v7.2 installed just to run other things lol oh wells that is the opensource world, people quit projects, others pick them up, or branch off lol. |
@nickvergessen my issue got fixed once I formatted my drive and reinstalled everything from the start using phpv7.3 with nextcloud 15 that had only came out 3 days after I broke my linux/nextcloud install of nextcloud 14 lol. sudo apt remove php* just to see how well linux can handle things today is not a good idea considering it tells you after you don't need these dependencies anymore do you want to autoremove yes, and btw you still need them for lots of other things that the system did not account for lolol you learn that the hard way and sometimes instead of wasting hours and days trying to fix a broken system, you just format and start over and done in a few hours, you learn more from mistakes lmfao. You also learn to make drive image backups too lolol. |
If you actually want to remove software, use apt purge instead of apt remove. That will remove all conf files amongst others.
… On 19/12/2018, at 08:52, cdmlb ***@***.***> wrote:
@nickvergessen my issue got fixed once I formatted my drive and reinstalled everything from the start using phpv7.3 with nextcloud 15 that had only came out 3 days after I broke my linux/nextcloud install of nextcloud 14 lol.
sudo apt remove php* just to see how well linux can handle things today is not a good idea considering it tells you after you don't need these dependencies anymore do you want to autoremove yes, and btw you still need them for lots of other things that the system did not account for lolol you learn that the hard way and sometimes instead of wasting hours and days trying to fix a broken system, you just format and start over and done in a few hours, you learn more from mistakes lmfao. You also learn to make drive image backups too lolol.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.
|
Nextcloud works fine now with 7.3 |
Since today I can no longer setup a new Nextcloud in master.
I use PHP 7.3 and sqlite as a db back-end.
Whenever I try to complete the setup I get this error message in the web interface:
As you can see, all three values are set (uid, password, uid_low), still I get this "not null constraint violation" for oc_users.uid.
In the nextcloud log I see this messages:
Does somone saw something similar already? Any idea?
The text was updated successfully, but these errors were encountered: