[Nextcloud] A cloud for personal or group use

I updated the php.ini file with apc.enable_cli=1
But I still have this error.

admin@home:~$ su
Password: 
root@home:/home/admin# sudo -u nextcloud /usr/bin/php7.3 --define apc.enable_cli=1 occ maintenance:mode --off
Could not open input file: occ
root@home:/home/admin#

To update nextcloud

sudo yunohost update nextcloud

To disable maintenance mode

sudo nano /var/www/nextcloud/config/config.php

Set maintenance to false

'maintenance' => "false"

You’re not in the right folder, occ command is in /var/www/nextcloud. Move in with the command cd /var/www/nextcloud before execute the occ command. Or you can also replace occ with /var/www/nextcloud/occ if you’re not in the folder. You can add explicit command --define apc.enable_cli=1, but if you modify the php.ini by adding apc.enable_cli=1 at the end, it’s not necessary.

As you have modify php.ini and you’re not in the right folder, the command must be:

sudo -u nextcloud /usr/bin/php7.3 /var/www/nextcloud/occ maintenance:mode --off

You can also use @jarod5001 method. There are several ways to achieve this, you must choose one of them.

Thank you both.

admin@home:~$ su
Password: 
root@home:/home/admin# cd /var/www/nextcloud
root@home:/var/www/nextcloud# sudo -u nextcloud /usr/bin/php7.3 /var/www/nextcloud/occ maintenance:mode --off
Maintenance mode already disabled

On config.php maintenance mode is already set to false.

I still have the internal error when I try to open nextcloud. .

Try to refresh with ctrl+shift+R

Look at the nextcloud log

/home/yunohost.app/nextcloud/data/nextcloud.log

J’ai moi aussi ces doublons. J’ai l’impression qu’ils sont recrĂ©Ă©s Ă  chaque mise Ă  jour.

A few weeks ago, especially after starting using nextcloud talk, i noticed that on my nextcloud profile, my surname is wrongly filled with my username, and i cannot change that. On my yunohost profile its allright.
How can i solve this, its a bit annoying.

I tried now and these are the logs. Thank you.

{"reqId":"jLFF7XAa8QO0BRt9wjsF","level":1,"time":"2021-11-07T22:39:56+00:00","remoteAddr":"","user":"--","app":"updater","method":"","url":"--","message":"\\OC\\Rep$
{"reqId":"jLFF7XAa8QO0BRt9wjsF","level":1,"time":"2021-11-07T22:39:56+00:00","remoteAddr":"","user":"--","app":"no app in context","method":"","url":"--","message":$
{"reqId":"jLFF7XAa8QO0BRt9wjsF","level":1,"time":"2021-11-07T22:39:56+00:00","remoteAddr":"","user":"--","app":"updater","method":"","url":"--","message":"\\OC\\Rep$
{"reqId":"jLFF7XAa8QO0BRt9wjsF","level":1,"time":"2021-11-07T22:39:56+00:00","remoteAddr":"","user":"--","app":"no app in context","method":"","url":"--","message":$
{"reqId":"jLFF7XAa8QO0BRt9wjsF","level":1,"time":"2021-11-07T22:39:56+00:00","remoteAddr":"","user":"--","app":"updater","method":"","url":"--","message":"\\OC\\Rep$
{"reqId":"jLFF7XAa8QO0BRt9wjsF","level":1,"time":"2021-11-07T22:39:56+00:00","remoteAddr":"","user":"--","app":"no app in context","method":"","url":"--","message":$
{"reqId":"jLFF7XAa8QO0BRt9wjsF","level":1,"time":"2021-11-07T22:39:56+00:00","remoteAddr":"","user":"--","app":"updater","method":"","url":"--","message":"\\OC\\Rep$
{"reqId":"jLFF7XAa8QO0BRt9wjsF","level":1,"time":"2021-11-07T22:39:56+00:00","remoteAddr":"","user":"--","app":"no app in context","method":"","url":"--","message":$
{"reqId":"jLFF7XAa8QO0BRt9wjsF","level":1,"time":"2021-11-07T22:39:56+00:00","remoteAddr":"","user":"--","app":"updater","method":"","url":"--","message":"\\OC\\Rep$
{"reqId":"jLFF7XAa8QO0BRt9wjsF","level":1,"time":"2021-11-07T22:39:56+00:00","remoteAddr":"","user":"--","app":"updater","method":"","url":"--","message":"\\OC\\Upd$
{"reqId":"jLFF7XAa8QO0BRt9wjsF","level":1,"time":"2021-11-07T22:39:56+00:00","remoteAddr":"","user":"--","app":"updater","method":"","url":"--","message":"\\OC\\Upd$
{"reqId":"jLFF7XAa8QO0BRt9wjsF","level":1,"time":"2021-11-07T22:39:56+00:00","remoteAddr":"","user":"--","app":"updater","method":"","url":"--","message":"\\OC\\Upd$
{"reqId":"T3URJljt9PnK9Tb9qYfa","level":3,"time":"2021-11-07T22:40:26+00:00","remoteAddr":"37.160.152.xxx","user":"alessandro","app":"index","method":"GET","url":"/$
{"reqId":"FJHPA5wykgmDZGCGQ3M5","level":3,"time":"2021-11-07T22:40:27+00:00","remoteAddr":"37.160.152.xxx","user":"alessandro","app":"index","method":"GET","url":"/$
{"reqId":"NHoKOb9IeALEWxmObIbE","level":3,"time":"2021-11-07T22:40:27+00:00","remoteAddr":"37.160.152.xxx","user":"alessandro","app":"index","method":"GET","url":"/$
{"reqId":"Njc00GwNcJF8d8JC87DI","level":3,"time":"2021-11-07T22:40:27+00:00","remoteAddr":"37.160.152.xxx","user":"alessandro","app":"index","method":"GET","url":"/$
{"reqId":"uJgLtAitxTyQjRsoRvhq","level":3,"time":"2021-11-07T22:40:43+00:00","remoteAddr":"37.160.152.208","user":"alessandro","app":"index","method":"GET","url":"/$
{"reqId":"esytqp4ex163JvSwha8W","level":3,"time":"2021-11-07T22:40:43+00:00","remoteAddr":"37.160.152.xxx","user":"alessandro","app":"index","method":"GET","url":"/$
{"reqId":"igWdziE82EyoPKJfyVxo","level":3,"time":"2021-11-07T22:40:47+00:00","remoteAddr":"37.160.152.xxx","user":"alessandro","app":"index","method":"GET","url":"/$
{"reqId":"1MTW8gVrtJ5xI7VF3yyq","level":3,"time":"2021-11-07T22:44:53+00:00","remoteAddr":"37.160.152.xxx","user":"alessandro","app":"index","method":"GET","url":"/$
{"reqId":"cMRVhopAzqL7AjcBodxV","level":3,"time":"2021-11-07T22:44:58+00:00","remoteAddr":"37.160.152.xxx","user":"alessandro","app":"index","method":"GET","url":"/$
{"reqId":"jzmKO1FeX7dU0EfTsYgu","level":3,"time":"2021-11-07T22:44:58+00:00","remoteAddr":"37.160.152.xxx","user":"alessandro","app":"index","method":"GET","url":"/$
{"reqId":"GEFFUTI9Son4oDrCf8LO","level":3,"time":"2021-11-07T22:44:58+00:00","remoteAddr":"37.160.152.xxx","user":"alessandro","app":"index","method":"GET","url":"/$
{"reqId":"SRnsArn2HMTmklwNsJiW","level":3,"time":"2021-11-07T22:45:03+00:00","remoteAddr":"","user":"--","app":"no app in context","method":"","url":"--","message":$
{"reqId":"1QD9TOnNh0lJUan6GmF4","level":3,"time":"2021-11-07T22:46:10+00:00","remoteAddr":"37.160.152.xxx","user":"alessandro","app":"index","method":"GET","url":"/$
{"reqId":"eALAyYXwBojALecjynV4","level":3,"time":"2021-11-07T22:46:10+00:00","remoteAddr":"37.160.152.xxx","user":"alessandro","app":"index","method":"GET","url":"/$
{"reqId":"CIl18sS8CfdGU6E9uBjZ","level":3,"time":"2021-11-07T22:46:27+00:00","remoteAddr":"37.160.152.xxx","user":"alessandro","app":"index","method":"GET","url":"/$


On my web interface I have this error.


Internal Server Error

The server was unable to complete your request.

If this happens again, please send the technical details below to the server administrator.

More details can be found in the server log.
Technical details

    Remote Address: 37.160.152.xxx
    Request ID: 1MTW8gVrtJ5xI7VF3yyq


Bon, effacer ces raccourcis en doublon n’a semblĂ© rĂ©gler le problĂšme que quelques jours. Les pics de charge (process nexcloud) ont repris :

Hi all,

I too have this error message also. I have updated to 22.2.0 with no issues i think , but cannot access nextcloud now. All i did after the upgrade is that I migrated from Bitwarder to Vaultwarden and that is basically it


EDIT: I also did yunohost tools regen-conf nsswitch --force because i was receiving this error from the diagnosis tool. I think this appeared after the migration to Vaultwarden. I mention this just in case it matters.

OK this is now resolved. After yunohost update an hour ago, on the acpu php thingy, everything is back online.

Hello, j’ai eu des problĂšmes de swap, entre autre liĂ© Ă  mysqld, je n’en suis pas sĂ»r, mais c’est probable que Nextcloud en Ă©tait la cause

J’ai pu faire l’upgrade vers 22.2.3~ynh1, en me disant que ça fixerait peut-ĂȘtre cette montĂ©e de charge, puis je me suis rendu compte dans les messages que j’avais aussi du Ă©diter le fichier /etc/php/7.3/cli/conf.d/20-apcu.ini avec une ligne apc.enable_cli=1 suite Ă  un soucis avec l’upgrade prĂ©cĂ©dente solutionnĂ© ici: Nextcloud a cessĂ© de fonctionner sans raison ?! - #24 by rodinux (d’ailleurs une solution semblait ĂȘtre simplement yunohost app upgrade nextcloud -F), du coup j’ai enlevĂ© cette ligne (il reste dĂ©sormais cette ligne extension=apcu.so) .

Mais j’avais encore une swap surchargĂ©e

Du coup j’ai installĂ© zram-tools, redĂ©marrĂ© le serveur puis Ă©diter le fichier /etc/sysctl.conf pour y ajouter ce deux lignes (inspirĂ© par ces articles: https://haydenjames.io/linux-performance-almost-always-add-swap-part2-zram/ et celui-ci: linux-ssd [Wiki de sebsauvage.net])

vm.swappiness = 10
vm.vfs_cache_pressure = 50

et pour le prendre en compte sudo sysctl -p.
J’espĂšre que ça va calmer les montĂ©es de charges de swap


Merci aux contributeurs pour le travail de maintenance, Nextcloud a pas l’air simple à maintenir.

Hello,

I’ve upgrade to the last stable version 22.2.3 without any problem.
Many thanks to all contributors <3

ppr

1 Like

désolé question con

comment augmenter le upload_max_filesize ?
Ca fait 2h que je cherche en vain sur le forum. Je ne sait plus ou j’avait trouvĂ© cette infos auparavant.

le fichier /etc/php/7.3/fpm/pool.d/nextcloud.conf contient ces valeurs

php_admin_value[memory_limit] = 512M
php_value[upload_max_filesize] = 10G
php_value[post_max_size] = 10G

C’est une fresh-install. Cela devrait fonctionner mais les upload sont limitĂ© a 20Mo
 :cold_sweat:

ZĂ©bon :slight_smile: c’était le dossier /tmp qui Ă©tait montĂ© sur la RAM. il faisait 10Mo et nextcloud Ă©crivait dessus.
Allez salut!!

1 Like

Bonsoir,

Mise à jour vers la v22.2.3 sans difficulté.

Bonnes fĂȘtes de fin d’annĂ©e Ă  toutes et tous ! :slightly_smiling_face:

Sangokuss.

1 Like

Hello, since I’m not able to update Nextcloud, I would like to uninstall and reinstall the new version.

The first step is easy but the installation fails. https://paste.yunohost.org/raw/vopidiwune

How can I purge evertything and do a clean installation?

Thank you.

– Edit –
Use @ericg 's suggestion, that is The Right Way :slight_smile:

You DO have a backup of the files that you already saved in Nextcloud, or intend to lose those files, correct?

(my original post)

It seems to have a collision when using or creating the user nextcloud, copying the last lines of the log:

especially the bit

2022-01-14 16:24:39,878: (...) --data-dir /home/yunohost.app/nextcloud/data
2022-01-14 16:24:40,614: DEBUG - Username is invalid because files already exist for this user

Are you comfortable using SSH and logging in to the command line? If so, log in as admin, and

$ sudo mv /home/yunohost.app/nextcloud/data /home/yunohost.app/nextcloud_old

to keep your existing files. I think that would circumvent the error.

another option to the original post

Another option would be to restore the old Nextcloud, and install a new Nextcloud in another directory. That way, Yunohost scripts will recognize the new installation is ‘nextcloud__2’, and create a new user and new directory for it

Did you remove Nextcloud?
Do you still have this path /home/yunohost.app/nextcloud on your server?

If you want to remove Nextcloud and the datadir associated :
sudo yunohost app remove nextcloud --purge

1 Like