[Official app] Nextcloud

fr
en

#1

Nextcloud for YunoHost

Integration level
Install Nextcloud with YunoHost

Overview

Nextcloud gives you freedom and control over your
own data. A personal cloud which run on your own server. With Nextcloud
you can synchronize your files over your devices.

Shipped version: 13.0.6

Screenshots

Configuration

Documentation

YunoHost specific features

Multi-users support

  • Integrate with YunoHost users and SSO - i.e. logout button
  • Allow one user to be the administrator (set at the installation)

Miscellaneous

  • Optionally access the user home folder from Nextcloud files (set at the
    installation, the sharing is enabled by default)
  • Serve /.well-known paths for CalDAV and CardDAV on the domain only if it’s
    not already served - i.e. by BaĂŻkal

Supported architectures

  • x86-64b -
  • ARMv8-A -
  • Jessie x86-64b -

Limitations

The following error message in Nextcloud logs can be safely ignored:

Following symlinks is not allowed ('/home/yunohost.multimedia/user/Share' -> '/home/yunohost.multimedia/share/' not inside '/home/yunohost.multimedia/user/')

Additional informations

Links


Changelog

Testing branch

Master branch (Official release)

  • 28 Sept 2018 - #135
    • Upgrade to upstream version 13.0.6 #134
  • 23 aug 2018 - #133
    • Correctly copy existing apps in the new Nextcloud apps directory during upgrade #124
    • Use a temporary directory in /var/www instead of /tmp since when /tmp is too small is generally because of an old YunoHost iso. #127
    • Fix a remaining bug and activate multi-instance in manifest and check_process #130
    • Upgrade to latest version 13.0.5 #132
  • 16 June 2018 - #117
    • Add multimedia directories support with write access #111
    • Upgrade to version 13.0.2 #113
    • Fix Debian Stretch dependencies #116
    • Fix automatic logout from YunoHost when logging out from Nextcloud #115
    • Fix failed access after first installation #119
  • 8 May 2018
    • Fix installation on Debian Stretch #96
  • 16 Apr 2018
    • Upgrade to 13.0.1 #101
    • Install missing dependencies “php-ldap” #71
    • Move the patches and restore them at their real place only for the last upgrade. We can’t expect that the patches can be applicated to all versions. And they don’t have to. #99
  • 13 Jan 2018 - #81
    • Enable redis file locking for better performance
  • 27 Jan 2018
    • Fix logout
    • Fix duplicate log entry in logrotat
    • Upgrade to upstream version 12.0.5
  • 13 Jan 2018 - #65
    • Refactoring
    • Upgrade to 12.0.3
    • Upgrade to 12.0.4

FAQ

How can I effectively report a problem and ask for help?

Provide as much logs as you can:

  • installation/upgrade log if applicable (you can look afterwards in /var/log/yunohost/yunohost-cli.log)
  • web server error logs: /var/log/nginx/yourdomain.tld-errors.log
  • Nextcloud logs /home/yunohost.app/nextcloud/data/nextcloud.log

Developers infos

Please do your pull request to the testing branch.

To try the testing branch, please proceed like that:

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


Nextcloud pour YunoHost

Integration level
Install Nextcloud with YunoHost

Résumé

Nextcloud vous donne la libertĂ© et le contrĂŽle sur votre propres donnĂ©es. Un nuage personnel qui s’exĂ©cute sur votre propre serveur. Avec Nextcloud
vous pouvez synchroniser vos fichiers sur vos appareils.

Version embarquée: 13.0.6

Captures d’écran

Configuration

Documentation

Fonctionnalités spécifiques à YunoHost

Support multi-utilisateurs

  • IntĂ©grĂ© avec les utilisateurs YunoHost et le SSO (authentification unique)
  • Permet Ă  un utilisateur YunoHost d’ĂȘtre administrateur (dĂ©fini Ă  l’installation)

Divers

  • AccĂšs optionnel au home folder de l’utilisateur depuis le gestionnaire de fichiers Nextcloud (dĂ©fini Ă  l’installation, le partage est activĂ© par dĂ©faut)

  • Fourni les chemins /.well-known pour CalDAV et CardDAV sur le domain seulement s’ils ne sont pas dĂ©jĂ  servis (par exemple par BaĂŻkal)

Architectures supportées

  • x86-64b -
  • ARMv8-A -
  • Jessie x86-64b -

Limitations

Le message d’erreur suivant dans le fichier de logs de Nextcloud est sans impact et peut ĂȘtre ignorĂ© :

Following symlinks is not allowed ('/home/yunohost.multimedia/user/Share' -> '/home/yunohost.multimedia/share/' not inside '/home/yunohost.multimedia/user/')

Informations additionnelles

Lien


Changelog

Testing branch

Master branch (Official release)

  • 28 Sept 2018 - #135
    • Upgrade to upstream version 13.0.6 #134
  • 23 aug 2018 - #133
    • Correctly copy existing apps in the new Nextcloud apps directory during upgrade #124
    • Use a temporary directory in /var/www instead of /tmp since when /tmp is too small is generally because of an old YunoHost iso. #127
    • Fix a remaining bug and activate multi-instance in manifest and check_process #130
    • Upgrade to latest version 13.0.5 #132
  • 16 June 2018 - #117
    • Add multimedia directories support with write access #111
    • Upgrade to version 13.0.2 #113
    • Fix Debian Stretch dependencies #116
    • Fix automatic logout from YunoHost when logging out from Nextcloud #115
    • Fix failed access after first installation #119
  • 8 May 2018
    • Fix installation on Debian Stretch #96
  • 16 Apr 2018
    • Upgrade to 13.0.1 #101
    • Install missing dependencies “php-ldap” #71
    • Move the patches and restore them at their real place only for the last upgrade. We can’t expect that the patches can be applicated to all versions. And they don’t have to. #99
  • 13 Jan 2018 - #81
    • Enable redis file locking for better performance
  • 27 Jan 2018
    • Fix logout
    • Fix duplicate log entry in logrotat
    • Upgrade to upstream version 12.0.5
  • 13 Jan 2018 - #65
    • Refactoring
    • Upgrade to 12.0.3
    • Upgrade to 12.0.4

Infos développeurs

Merci de faire vos pull request sur la branche testing.

Pour tester la branche testing, merci de procéder ainsi :

sudo yunohost app install https://github.com/YunoHost-Apps/nextcloud_ynh/tree/testing --debug
ou
sudo yunohost app upgrade nextcloud -u https://github.com/YunoHost-Apps/nextcloud_ynh/tree/testing --debug

Index of official apps threads
#2

New official and testing releases :tada:

Testing branch

  • 13 Jan 2018 - #81
    • Enable redis file locking for better performance

Master branch (Official release)

  • 13 Jan 2018 - #65
    • Refactoring
    • Upgrade to 12.0.3
    • Upgrade to 12.0.4

#3

Hello !

Merci pour l’upgrade !

Je viens de l’effectuer, et je ne vois plus aucune des applications d’avant l’upgrade dans l’interface d’administration des applications, ni via occ app:list. C’est grave docteur ?


#4

I don’t speak French, but I might have the same problem as @roukydesbois.
After upgrading Nextcloud official the other day, it disappeared from my installed apps.
I tried to install Nextcloud again, but the installation fails. I think this is the offending part:

+ sudo useradd --no-create-home --system --user-group nextcloud --shell /usr/sbin/nologin
useradd: group nextcloud exists - if you want to add this user to that group, use -g.
+ ynh_die 'Unable to create nextcloud system account'
Unable to create nextcloud system account
+ echo 'Unable to create nextcloud system account'
+ exit 1
!!
+ ynh_exit_properly
nextcloud's script has encountered an error. Its execution was cancelled.
+ exit_code=1
!!

#5

Lors de la mise Ă  jour, Nextcloud dĂ©sactive la plupart des applications par prĂ©caution. Il te faut les activer Ă  nouveau dans l’administration de Nextcloud. Si tu vas dans le menu en haut Ă  droit, tu cliques sur “+ Applications” et va dans la rubrique “Applications dĂ©sactivĂ©es”, ne sont-elles pas lĂ  ?


#6

You don’t have the same problem. It looks like your upgrade failed. Was it made through the web admin or with the CLI? Did you get an error message? Could you please get the logs of this upgrade (and not the following installation trial) in /var/log/yunohost-cli.log?


#7

Hey !

This is what I did at every previous upgrade, but this time I don’t even have access to the disabled apps so that I can enable them, or even to the official apps from Nextcloud. I just have a blank page when I show “My Apps”


#8

Do you have relevant logs in /home/yunohost.app/nextcloud/data/nextcloud.log or /var/log/nginx/yourdomain.tld-errors.log?


#9

The upgrade was made through the web admin interface. Thanks for pointing me to the logfile, this part stands out:

2018-01-15 15:42:22,085 INFO     yunohost.hook <lambda> - [20118.1] + sudo useradd -c 'nextcloud system account' -d /var/lib/nextcloud --system --user-group nextcloud
2018-01-15 15:42:22,234 WARNING  yunohost.hook <lambda> - [20118.1] useradd: group nextcloud exists - if you want to add this user to that group, use -g.
2018-01-15 15:42:22,260 WARNING  yunohost.hook <lambda> - [20118.1] Unable to create nextcloud system account
2018-01-15 15:42:22,260 INFO     yunohost.hook <lambda> - [20118.1] + ynh_die 'Unable to create nextcloud system account'
2018-01-15 15:42:22,261 INFO     yunohost.hook <lambda> - [20118.1] + echo 'Unable to create nextcloud system account'
2018-01-15 15:42:22,262 INFO     yunohost.hook <lambda> - [20118.1] + exit 1
2018-01-15 15:42:22,369 ERROR    yunohost.backup _restore_app - [20118.1] Unable to restore the app 'nextcloud'
Traceback (most recent call last):
  File "/usr/lib/moulinette/yunohost/backup.py", line 1238, in _restore_app
user="root")
  File "/usr/lib/moulinette/yunohost/hook.py", line 381, in hook_exec
errno.EIO, m18n.n('hook_exec_failed', path=path))
MoulinetteError: [Errno 5] Script execution failed: /tmp/restoreP_4ERI/restore
2018-01-15 15:42:22,391 INFO     yunohost.hook hook_exec - [20118.1] Executing script '/home/yunohost.backup/tmp/nextcloud-pre-upgrade1/apps/nextcloud/settings/scripts/remove'...

#10

OK, I had quite a lot of timeouts in my logs, I’m starting to see some apps appear
 Should I increase the max_timeout and if yes where?


#11

Alright, everything is going back to order. Thanks @JimboJoe and I hope I’ll have learnt patience when the next upgrade will come :wink:


#12

@roukydesbois good you got it sorted out!

@DUBWiSE the log is too short: what we can understand is that upgrade failed, and the restoration on failed upgrade
 failed as well (your error message) :confused:
Could you please share a complete log, possibly since the beginning of the upgrade (for example on https://paste.yunohost.org)?


#13

As I did not have anything to lose with regards to my Nextcloud installation, I decided to remove the nextcloud user group by hand, after which the installation succeeded :slight_smile: Now happily running the latest Nextcloud official!


#14

Hi, For your information I have got a problem while updating the Nextcloud app.
My data file is not in the standard place : /home/yunohost.app/nextcloud/data
I’m on a VPS with an external HDD so I have put it here : /mnt/disk/nextcloud/data
This configuration was lost while updating.
I had to change again the relevant line in /var/www/nextcloud/config/config.php then perform a sudo -u nextcloud php occ files:scan --all to have it back again.
Can you try to make updates compatible with my case ?
I guess the only thing is to keep the line : ‘datadirectory’ => ‘/XXX’, unchanged
Thanks!


#15

What about using a symlink ? Just saw that here : https://help.nextcloud.com/t/is-there-a-safe-and-reliable-way-to-move-data-directory-out-of-web-root/3642
Anyone tried that ?


#16

New testing release, including upgrade to 12.0.5 :tada:

Testing branch

  • 13 Jan 2018 - #81
    • Enable redis file locking for better performance
  • 27 Jan 2018
    • Fix logout
    • Fix duplicate log entry in logrotate
    • Upgrade to upstream version 12.0.5

#17

Any ETA as to when Nextcloud 13 will be in stable?

Thank you in advance.


#18

Hi everyone,
I was having the same dream!
A nextcloud 13 one day?
No rush, just to know!
Thanks to all devs and have a good week end


#19

New stable release for Nextcloud.

  • 16 Jan 2018 #81 :
    • Enable Redis file locking for better perfomance
    • Fix logout
    • Fix duplicate log entry in logrotate
    • Upgrade to upstream version 12.0.5

PS : a PR is opened for Nexcloud version 13 #90


#20

New testing release :tada:

  • 7 Fev 2018 #89

    • Fix cron config file rights and don’t ovewrite all settings at upgrade
  • 21 Fev 2018 #71

    • Added the “php-ldap” dependency
  • 6 Mar 2018 #90 :

    • Upgrade to Nextcloud 13