Skip to content
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

NC 21 with PHP 8.x Internal Server Error #26034

Closed
Jolopu opened this issue Mar 9, 2021 · 11 comments
Closed

NC 21 with PHP 8.x Internal Server Error #26034

Jolopu opened this issue Mar 9, 2021 · 11 comments
Labels
1. to develop Accepted and waiting to be taken care of bug

Comments

@Jolopu
Copy link

Jolopu commented Mar 9, 2021

Steps to reproduce

  1. NC 21
  2. PHP 8.0.2

Expected behaviour
Login into server

Actual behaviour
Internal server error when trying to login. After switching back to PHP 7.4 everything is ok.

Server configuration
Debian

Web server:
Apache

Database:
MariaDB

PHP version:
8.0.2

Nextcloud version:
21.0.0

Updated from an older Nextcloud/ownCloud or fresh install:
19.x

Log:

Error	index	Exception: Call to undefined function OC\Files\Storage\disk_free_space()
/var/www/clients/client311/web3228/web/cloud.mysite.com/lib/private/AppFramework/App.php - line 157:

OC\AppFramework\Http\Dispatcher->dispatch()

/var/www/clients/client311/web3228/web/cloud.mysite.com/lib/private/Route/Router.php - line 302:

OC\AppFramework\App::main()

/var/www/clients/client311/web3228/web/cloud.mysite.com/lib/base.php - line 993:

OC\Route\Router->match()

/var/www/clients/client311/web3228/web/cloud.mysite.com/index.php - line 37:

OC::handleRequest()

Verursacht durchError: Call to undefined function OC\Files\Storage\disk_free_space()
/var/www/clients/client311/web3228/web/cloud.mysite.com/lib/private/Files/Storage/Wrapper/Quota.php - line 111:

OC\Files\Storage\Local->free_space()

/var/www/clients/client311/web3228/web/cloud.mysite.com/lib/private/Files/Storage/Wrapper/Wrapper.php - line 335:

OC\Files\Storage\Wrapper\Quota->free_space()

/var/www/clients/client311/web3228/web/cloud.mysite.com/lib/private/legacy/OC_Helper.php - line 530:

OC\Files\Storage\Wrapper\Wrapper->free_space()

/var/www/clients/client311/web3228/web/cloud.mysite.com/apps/files/lib/Controller/ViewController.php - line 148:

OC_Helper::getStorageInfo()

/var/www/clients/client311/web3228/web/cloud.mysite.com/apps/files/lib/Controller/ViewController.php - line 197:

OCA\Files\Controller\ViewController->getStorageInfo()

/var/www/clients/client311/web3228/web/cloud.mysite.com/lib/private/AppFramework/Http/Dispatcher.php - line 218:

OCA\Files\Controller\ViewController->index()

/var/www/clients/client311/web3228/web/cloud.mysite.com/lib/private/AppFramework/Http/Dispatcher.php - line 127:

OC\AppFramework\Http\Dispatcher->executeController()

/var/www/clients/client311/web3228/web/cloud.mysite.com/lib/private/AppFramework/App.php - line 157:

OC\AppFramework\Http\Dispatcher->dispatch()

/var/www/clients/client311/web3228/web/cloud.mysite.com/lib/private/Route/Router.php - line 302:

OC\AppFramework\App::main()

/var/www/clients/client311/web3228/web/cloud.mysite.com/lib/base.php - line 993:

OC\Route\Router->match()

/var/www/clients/client311/web3228/web/cloud.mysite.com/index.php - line 37:

OC::handleRequest()
@Jolopu Jolopu added 0. Needs triage Pending check for reproducibility or if it fits our roadmap bug labels Mar 9, 2021
@Jolopu
Copy link
Author

Jolopu commented Apr 9, 2021

Dieser Fehler ist auch bei NC 21.0.1 noch immer präsent. Der Webserver wirft diesbezüglich keine Fehler aus. So wie es aussieht handelt es sich um einen NC bug.

@Jolopu
Copy link
Author

Jolopu commented Apr 9, 2021

Der Fehler tritt übrigens nur in der Dateiansicht auf. Aktivität, Fotos, Kontakte, Kalender usw. funktioniert alles. Man kann aber nicht in die Einstellungen rein. Es kommt folgende Fehlermeldung:

Interner Serverfehler
Der Server konnte die Anfrage nicht fertig stellen. Sollte dies erneut auftreten, sende bitte die nachfolgenden technischen Einzelheiten an Deinen Server-Administrator. Weitere Details können im Server-Protokoll gefunden werden.

Technische Details
Entfernte Adresse: 84...
Anfragekennung: YHCmOzhmOVA@JQKV0-38AQAIC

@szaimen
Copy link
Contributor

szaimen commented Jul 2, 2021

Is this Issue still valid in NC21.0.3 with PHP7.4? If not, please close this issue. Thanks! :)

@Jolopu
Copy link
Author

Jolopu commented Jul 2, 2021

This issue is only valid with PHP8.x.
I updated NC to 21.0.3 and the issue persists with PHP 8.0.2.
I have also a test fresh install of NC22.0.0 beta 4. It has the same issue.
It runs on Linux 4.19.0-16-amd64 x86_64 MariaDB 10.3.28
If it helps I can provide you with admin access and FTP access to have a look into it.

@szaimen szaimen added 1. to develop Accepted and waiting to be taken care of and removed 0. Needs triage Pending check for reproducibility or if it fits our roadmap needs info labels Jul 6, 2021
@AndyXheli
Copy link

@szaimen yes issue still remains with 21.0.3

@Jolopu
Copy link
Author

Jolopu commented Aug 28, 2021

Issue still remains with NC 21.0.4

@Ravisdo
Copy link

Ravisdo commented Aug 28, 2021

Issue still remains with NC 21.0.4
Same issue

4.19.0-12-amd64 #1 SMP Debian 4.19.152-1 (2020-10-18) x86_64 GNU/Linux
PHP 8.0.8
NC 21.0.3

@Jolopu
Copy link
Author

Jolopu commented Sep 23, 2021

Just updated to 21.1.1
Issue still persists.

@tardar
Copy link

tardar commented Nov 22, 2021

On the update to 22.2.3 the problem still persists.

@szaimen
Copy link
Contributor

szaimen commented Nov 22, 2021

This should be fixed with #29758. Backport is in #29799

@szaimen szaimen closed this as completed Nov 22, 2021
@Jolopu
Copy link
Author

Jolopu commented Nov 22, 2021

Confirmed. I applied this patch to my installation and the issue is resolved:
152e2bf

solracsf added a commit that referenced this issue Jan 11, 2022
To avoid things like #26034
nextcloud-command pushed a commit that referenced this issue Apr 7, 2022
To avoid things like #26034
nextcloud-command pushed a commit that referenced this issue Sep 6, 2022
To avoid things like #26034
artonge pushed a commit that referenced this issue Oct 4, 2022
To avoid things like #26034
artonge pushed a commit that referenced this issue Oct 4, 2022
To avoid things like #26034
artonge pushed a commit that referenced this issue Oct 4, 2022
To avoid things like #26034

Signed-off-by: Louis Chemineau <louis@chmn.me>
backportbot-nextcloud bot pushed a commit that referenced this issue Oct 10, 2022
To avoid things like #26034

Signed-off-by: Louis Chemineau <louis@chmn.me>
backportbot-nextcloud bot pushed a commit that referenced this issue Oct 10, 2022
To avoid things like #26034

Signed-off-by: Louis Chemineau <louis@chmn.me>
backportbot-nextcloud bot pushed a commit that referenced this issue Oct 10, 2022
To avoid things like #26034

Signed-off-by: Louis Chemineau <louis@chmn.me>
s8321414 pushed a commit to MODAODF/odfweb that referenced this issue May 4, 2023
To avoid things like nextcloud/server#26034

Signed-off-by: Louis Chemineau <louis@chmn.me>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
1. to develop Accepted and waiting to be taken care of bug
Projects
None yet
Development

No branches or pull requests

5 participants