Hardware: Beelink U59 YunoHost version: 4.3.6.3 (stable)
**I have access to my server : Through SSH & through the webadmin & direct access via keyboard / screen Are you in a special context or did you perform some particular tweaking on your YunoHost instance ? : yes, runing backports package because my GPU is not available with Debian 10, so I upgraded kernel of linux in 5.X Backports and forced it in the grub to launch the GPU pilots. I have access to my server : Through SSH | through the webadmin | direct access via keyboard / screen |
Description of my issue
Hello Everyone,
Since a while, I have problem to display my data on nextcloud with Yunohost. At first, my files were no longer displayed even if the architecture of yunohost seemed to work well. In the center part of my screen, no files were displayed.
Since the last update, my complete displayed of the nextcloud app is break. Here is a capture :
To solve this prolem, I already tried different things regarding those topic :
The main trouble seems to come from the occ. From the beginning I have problem to run manually OCC command. It seems that the whole system could not execut those function properly :
The problem persist :
When trying to run an OCC command : Could not open input file: occ
I tried this : sudo -u www-data php --define apc.enable_cli=1 /var/www/nextcloud/occ maintenance:repair
It returns:
Cannot write into "config" directory!
This can usually be fixed by giving the webserver write access to the config directory.
But, if you prefer to keep config.php file read only, set the option "config_is_read_only" to true in it.
Tried this too : ` /var/www/nextcloud/config# chown -R www-data:www-data config.php
But still, I got this when i tried to rescan files :
sudo -u www-data php occ files:scan --all
An unhandled exception has been thrown:
OC\HintException: [0]: Memcache \OC\Memcache\APCu not available for local cache (Is the matching PHP module installed and enabled?)
Seems to come from the PHP ?
But at this point, I am asking myself if it would not be more easy to reinstall completly the app. The point is that i woudlike to not loose my data and also recover the users data as it was. Hopefully the date is hold on an external nas which mount locally on the debian.
So I reach you in order to answer two questions :
Do you have any idea from when come the problem and how to solve it ? I do no know from where to start to investigate actually …
Should I reinstall the app ?
Once again, thanks a lot in advance to the comunity for your help,
I will be reactiv to answer if my message is not clear.
Thanks a lot for your answer. So before to start, I just went to check the app which was displaying the internal server error page (without bug on display).
I tried this but my ssh command seems to block on it, it turns for minutes and I have to close my SSH client… Is it done or not ? Do not know …
php --define --debug apc.enable_cli=1
Could not open input file: apc.enable_cli=1
And the command stop to run normally, this is strange that it turns endless without the debug keyword, I will go to see until tomorrow if I find an explanation about ^^
Thanks a lot for tmr, I will share with you this tonight
First, check the php version you need: sudo cat /etc/yunohost/apps/nextcloud/settings.yml | grep phpversion
In my case I get phpversion: '7.4' so I put php7.4 in the following command. --debug is actually -v (or -vv or -vvv depending on how verbose you want the command)
Got this : phpversion: '7.3'
Strange no ? Php 7.3 is deprecated I think
Run this : sudo -u nextcloud php7.3 --define apc.enable_cli=1 occ files:scan -vv --all
And it works! I mean, it rescan all the files, except some in red but nothing big!
I made some progress about my problem. So I started too reinstall the whole app because it seems to difficult to debug it…
When I reinstall it, everything work properly, the installation put back the default data directory and all the displays are perfect!
I tried to put back my old data directories with all the files that I kept from the previous nextcloud app (that I really don’t want to loose !). When I do that, the same problem reappear with the bug of displays… So it seems that some of my files are corrupted in my previous version.
If I copy the files like index.html from my fresh installation to my old path, will it solve my problem? If yes, what are all the files that I should bring? If no, what should I do …