[Nextcloud] A cloud for personal or group use

Cette doc est fausse : elle ne marche pas. J’en avais déjà parlé dans un tutoriel il y a quelques mois.

Bonjour @alexandre75,

Je t’avais répondu mais tu n’étais pas repassé. Effectivement, il y a une erreur de chemin dans la documentation. J’essaierai de prendre 1/4 d’heure pour la mettre à jour, en attendant tu peux toujours adapter avec la réponse que j’ai faite dans l’autre discussion.

2 Likes

Merci pour ta réponse, mais je n’ai franchement pas envie de planter Nextcloud comme cela avait été le cas il y a quelques mois et où j’ai du me démerder quasiment tout seul pour retrouver un fonctionnement… J’attendrai donc le tutoriel officiel.

Looks like latest versions of Nextcloud for Yunohost are breaking Keeweb internal nextlcoud app

hello, about the problem with nextcloud and keeweb, I’ve reported the issue also on https://github.com/YunoHost-Apps/nextcloud_ynh/issues/317 but no reply so far.
I’d like to investigate further, but I don’t know what could be done!

I’ve installed nextcloud server on my computer (using the single file download), then keeweb and it works out of the box. I don’t understand what could be different in the yunohost version so it no longer works. Maybe it could be because of rights? www-data vs nextcloud user rights?

1 Like

I migrated my 18.0.7.1 NC instance from an Ubuntu 20.04 server with multiple users over to my new YH (initially Deb9 Stretch - this was just before the Deb10 Buster update- see below), and everything is working fine (once I figured out how). Here’s what I did:

  1. I rsync’d my NC data folder over to new machine (just into my sudo user’s home directory), backed-up original NC app folder for safekeeping and mysqldump’d db (using the NC guide, making sure to put in maintenance mode and shut webserver down, if possible), and rsyc’d those to new YH server, even though I would only use the mysql-db and data folder;

  2. changed the IP address for my domain on domain registrar to the new YH machine, and setup domain on YH including LetsEncrypt cert;

  3. on new YH server set up NC with the Applications installer, using the same url/path as my old server;

  4. I checked the user/group permissions on new NC install, created a new directory where I would place my data folder, moved my old data folder to new directory, and changed owndership of both to the YH/NC directory owners (in my case, ‘nextcloud’ for both, so: ‘chown nextcloud:nextcloud datadir -R’)

  5. as root on YH server I imported my old mysql db into the new one (mysql -u root -p nextcloud < nextcloud-sqlbkp_20200730.bak)

  6. I made a backup of the YH/NC config.php (always safe), and edited the path to my data folder (since I have it outside the NC folder, as recommended).

  7. restarted nginx.service.

  8. Once back up, I was able to login using my old url and admin login, however all non-basic apps (including Calendar, Contacts, etc.) needed to be disabled then enabled: they were not actually installed on the new machine until I did this, though all their data and settings were, so there was no new configuration to be done.

That was it- everything checked out, my clients on laptops and phone did not need to resync actual files. The only thing that I saw different was that I had a picture on my login page which did not transer because those are stored in the ‘theme’ folder that I decided to not bother with.

Debian 10 ‘Buster’ Update: When the update for YH was posted, I ran the command line migration tool with no problems at all. After that, when I logged into my NC as admin I ran a smooth update to the newest NC, again: no issues at all.

I hope someone finds this helpful. Thanks to all the developers who support this project!!!

3 Likes

Hello! There aren’t much documentation on Nextcloud full text search for Yunohost.

Please, share your experience. What are the options to enjoy this? Should RAM be increased (to 2GB?), or an external node employed? What are the privacy concerns? Would love to hear your advices!

P.s. Sorry for the lack of French. =(

Hi, even though I don’t use full text search app on my Yunohost instance, I fell already a bit tight with 2GB of RAM on my VPS. Looks like 2GB is a must even for a standard Yunohost + Nextcloud use. That’s just my opinion.

1 Like

Totally! Do you think we should update official recomendations?
https://yunohost.org/#/hardware

Regarding full text search it’s getting complicated to set the thing
up. Surprisingly looks like nobody use it. Maybe it’s the reason.

New testing release :tada:

  • 02 Aug 2020 - #323
    • Upgrade to latest 18.x version 18.0.7
    • Fix “spinning wheel” when there is no README.md in the folder
sudo yunohost app install https://github.com/YunoHost-Apps/nextcloud_ynh/tree/testing --debug
or
sudo yunohost app upgrade nextcloud -u https://github.com/YunoHost-Apps/nextcloud_ynh/tree/testing --debug
3 Likes

Mise à jour nickel chez moi.
Comme d’habitude, j’ai dû retirer les stockages externes multimedia que je n’utilise pas, et j’ai l’avertissement sur les caractères codés sur 4 octets dans la base de données.
Merci à l’équipe en charge !

1 Like

Bonsoir,

Merci pour cette nouvelle testing :slight_smile:
De mon côté la mise à niveau s’est bien passée : pas besoin de réactiver les extensions propres à Nextcloud telles que Agenda, Contacts, etc.
Il y a toujours l’alerte du codage sur 4 octets, mais aussi les 2 warning relatifs au ./weel-known comme ici :

Les applications utilisées sont Nextcloud, phpMyAdmin, Rainloop et Wallabag2.

ppr

Pour info j’ai également les warning ./well-known. J’utilise aussi Wallabag2 et Rainloop

Petite question, à propos de l’application de reconnaissance faciale disponible dans NextCloud (attention, a demande l’installation d’outils tiers non disponibles dans les repositories par défaut) :
Comment augmenter « proprement » la quantité de mémoire allouée à php pour NextCloud ?
J’ai vu que dans ce fichier, memory_limit était maintenant passé à 512M

Mais je ne trouve pas où est ce que je peux faire quelquechose pour que ça se répercute dans NextCloud.

Juste pour info si certains veulent jeter un œil : https://github.com/matiasdelellis/facerecognition

Bonjour,
Je ne sais pas si j’ai bien compris ce que tu cherches mais si c’est le fichier en question, il se trouve dans l’emplacement suivant:

/etc/php/7.3/fpm/pool.d/nextcloud.conf

Exactement, merci :smiley:

Merci pour le retour, j’ai créé une nouvelle PR, pour éviter d’ajouter ces dossiers à chaque mise à jour, mais plutôt déclencher une action manuelle si besoin de les ajouter de nouveau.

Attention cependant, je ne l’ai pas encore complètement testé, et ça n’arrivera probablement pas avant la version 19 de nextcloud :slight_smile:

Concernant les erreurs relatives à .well-known j’ai du mal à comprendre pourquoi il y a encore ce problème. Si quelqu’un a les logs de l’upgrade, ca peut m’aider. Sinon il faudrait aussi voir si il y a dans la configuration nginx du domaine où se trouve nextcloud ce genre de lignes:

location = /.well-known {
[...]
}

New stable release :rocket: :

  • 16 Aug 2020 - #323
    • Upgrade to 18.0.7
    • Fix “spinning wheel” when there is no README.md in the folder
7 Likes

Bonjour,

Mise à jour réalisée sans souci ce matin.

Seule demeure toujours cette petite alerte dans l’interface admin :

Mais pour le reste, c’est nickel ! Super travail, comme d’habitude :+1: :sunglasses:

Sangokuss

Bonjour,
Soucis pour la mise à jour de 18.0.5 à 18.0.7 de mon côté :

$ sudo yunohost log display 20200820-054942-app_upgrade-nextcloud
description: Upgrade the ‘nextcloud’ app
log_path: /var/log/yunohost/categories/operation/20200820-054942-app_upgrade-nextcloud.log
logs:

  • 2020-08-20 07:37:41,479: DEBUG - 1303360 + local length
  • 2020-08-20 07:37:41,481: DEBUG - 1303365 + local log_path
  • 2020-08-20 07:37:41,484: DEBUG - 1303367 + local timeout
  • 2020-08-20 07:37:41,485: DEBUG - 1303368 + ynh_handle_getopts_args --service_name=nginx --action=reload
  • 2020-08-20 07:37:41,487: DEBUG - 1303370 + set +o xtrace
  • 2020-08-20 07:37:41,488: DEBUG - 1303374 + service_name=nginx
  • 2020-08-20 07:37:41,490: DEBUG - 1303376 + action=reload
  • 2020-08-20 07:37:41,491: DEBUG - 1303378 + line_match=
  • 2020-08-20 07:37:41,493: DEBUG - 1303380 + length=20
  • 2020-08-20 07:37:41,494: DEBUG - 1303381 + log_path=/var/log/nginx/nginx.log
  • 2020-08-20 07:37:41,495: DEBUG - 1303383 + timeout=300
  • 2020-08-20 07:37:41,496: DEBUG - 1303384 + [[ -n ‘’ ]]
  • 2020-08-20 07:37:41,497: DEBUG - 1303385 + ‘[’ reload == reload ‘]’
  • 2020-08-20 07:37:41,499: DEBUG - 1303387 [###################.] > Reloading nginx web server…
  • 2020-08-20 07:37:41,500: DEBUG - 1303388 + action=reload-or-restart
  • 2020-08-20 07:37:41,502: DEBUG - 1303389 + systemctl reload-or-restart nginx
  • 2020-08-20 07:37:43,510: DEBUG - 1305397 + [[ -n ‘’ ]]
  • 2020-08-20 07:37:43,511: DEBUG - 1305398 + ynh_script_progression ‘–message=Restoration completed for nextcloud’ --last
  • 2020-08-20 07:37:43,512: DEBUG - 1305398 + set +o xtrace
  • 2020-08-20 07:37:43,512: DEBUG - 1305399 + set +o xtrace
  • 2020-08-20 07:37:43,513: DEBUG - 1305400 + echo ‘! Helper used in legacy mode !’
  • 2020-08-20 07:37:43,514: DEBUG - 1305400 + set +x
  • 2020-08-20 07:37:43,615: DEBUG - 1305502 + echo ‘[####################] > Restoration completed for nextcloud’
  • 2020-08-20 07:37:43,616: DEBUG - 1305504 + set -o xtrace
  • 2020-08-20 07:37:43,617: DEBUG - 1305505 + ynh_exit_properly
  • 2020-08-20 07:37:43,618: DEBUG - 1305506 + local exit_code=0
  • 2020-08-20 07:37:43,618: DEBUG - 1305507 + ‘[’ 0 -eq 0 ‘]’
  • 2020-08-20 07:37:43,619: DEBUG - 1305508 + exit 0
  • 2020-08-20 07:37:43,619: DEBUG - 1305509 [####################] > Restoration completed for nextcloud
  • 2020-08-20 07:37:43,721: DEBUG - 1305577 To view the log of the operation ‘Restore ‘nextcloud’ from a backup archive’, use the command ‘yunohost log display 20200820-061817-backup_restore_app-nextcloud’
  • 2020-08-20 07:37:44,023: DEBUG - 1305849 The permission database has been resynchronized
  • 2020-08-20 07:37:45,028: DEBUG - 1306893 SSOwat configuration generated
  • 2020-08-20 07:37:45,330: DEBUG - 1307176 Restored
  • 2020-08-20 07:37:45,331: DEBUG - 1307177 action [22815.1] executed in 1305.125s
  • 2020-08-20 07:37:45,331: DEBUG - apps:
  • 2020-08-20 07:37:45,332: DEBUG - nextcloud: Success
  • 2020-08-20 07:37:45,332: DEBUG - system:
  • 2020-08-20 07:37:45,434: DEBUG - + ynh_die ‘–message=The app was restored to the way it was before the failed upgrade.’
  • 2020-08-20 07:37:45,435: WARNING - The app was restored to the way it was before the failed upgrade.
  • 2020-08-20 07:37:45,436: DEBUG - + local legacy_args=mc
  • 2020-08-20 07:37:45,437: DEBUG - + args_array=([m]=message= [c]=ret_code=)
  • 2020-08-20 07:37:45,438: DEBUG - + local -A args_array
  • 2020-08-20 07:37:45,439: DEBUG - + local message
  • 2020-08-20 07:37:45,439: DEBUG - + local ret_code
  • 2020-08-20 07:37:45,440: DEBUG - + ynh_handle_getopts_args ‘–message=The app was restored to the way it was before the failed upgrade.’
  • 2020-08-20 07:37:45,441: DEBUG - + set +o xtrace
  • 2020-08-20 07:37:45,442: DEBUG - + ret_code=1
  • 2020-08-20 07:37:45,443: DEBUG - + echo ‘The app was restored to the way it was before the failed upgrade.’
  • 2020-08-20 07:37:45,444: DEBUG - + exit 1
  • 2020-08-20 07:37:45,610: ERROR - Could not upgrade nextcloud: An error occurred inside the app upgrade script
    metadata:
    ended_at: 2020-08-20 07:37:45
    env:
    YNH_APP_ID: nextcloud
    YNH_APP_INSTANCE_NAME: nextcloud
    YNH_APP_INSTANCE_NUMBER: 1
    YNH_CWD: /var/cache/yunohost/from_file/nextcloud_ynh-04dab1b77f4435260ea4217fdd2acb18a05da2ec/scripts
    YNH_INTERFACE: cli
    YNH_STDINFO: /tmp/tmpx58SsC/stdinfo
    YNH_STDRETURN: /tmp/tmpX7sVPG/stdreturn
    error: An error occurred inside the app upgrade script
    operation: app_upgrade
    related_to:
  • app
  • nextcloud
    started_at: 2020-08-20 06:49:42
    success: False
    yunohost_version: 3.8.5.7
    metadata_path: /var/log/yunohost/categories/operation/20200820-054942-app_upgrade-nextcloud.yml
    name: 20200820-054942-app_upgrade-nextcloud

Small question: is it safer to first upgrade Nextcloud from 18.0.5 to 18.0.7 and then Yunohost from 3 to 4 ? Or the opposite?