ONLYOFFICE / docker-onlyoffice-nextcloud

MIT License
375 stars 157 forks source link

Onlyoffice docker image doesn't work with overlay2 #3

Closed enoch85 closed 5 years ago

enoch85 commented 5 years ago
### Steps to reproduce 1. Run 18.06.1-ce and `devicemapper` 2. Upgrade to 18.09.1-ce and notice that Onlyoffice stops working 3. Figure out why and realize that `devicemapper` is deprecated 4. Change to `overlay2` 5. Still not working ### Expected behaviour Onlyoffice should work with `overlay2` ### Actual behaviour Onlyoffice is working with `devicemapper` but not with `overlay2` ## Server configuration detail **Operating system:** Linux 4.15.0-38-generic #41-Ubuntu SMP Wed Oct 10 10:59:38 UTC 2018 x86_64 **Webserver:** Apache/2.4.29 (Ubuntu) (fpm-fcgi) **Database:** pgsql PostgreSQL 10.5 (Ubuntu 10.5-0ubuntu0.18.04) on x86_64-pc-linux-gnu, compiled by gcc (Ubuntu 7.3.0-16ubuntu3) 7.3.0, 64-bit **PHP version:** 7.2.10-0ubuntu0.18.04.1 Modules loaded: Core, date, libxml, openssl, pcre, zlib, filter, hash, Reflection, SPL, sodium, session, standard, cgi-fcgi, redis, PDO, xml, bz2, calendar, ctype, curl, dom, mbstring, fileinfo, ftp, gd, gettext, gmp, iconv, imagick, imap, intl, json, ldap, exif, pdo_pgsql, pgsql, Phar, posix, readline, shmop, SimpleXML, smbclient, soap, sockets, sysvmsg, sysvsem, sysvshm, tokenizer, wddx, xmlreader, xmlwriter, xsl, zip, libsmbclient, Zend OPcache **Nextcloud version:** 14.0.3 - 14.0.3.0 **Updated from an older Nextcloud/ownCloud or fresh install:** **Where did you install Nextcloud from:** unknown
Signing status Array ( )
List of activated apps ``` Enabled: - accessibility: 1.0.1 - activity: 2.7.0 - calendar: 1.6.3 - caniupdate: 0.2.0 - checksum: 0.4.1 - cloud_federation_api: 0.0.1 - comments: 1.4.0 - contacts: 2.1.7 - dav: 1.6.0 - deck: 0.5.0 - federatedfilesharing: 1.4.0 - federation: 1.4.0 - files: 1.9.0 - files_fulltextsearch: 1.1.1 - files_pdfviewer: 1.3.2 - files_sharing: 1.6.2 - files_texteditor: 2.6.0 - files_trashbin: 1.4.1 - files_versions: 1.7.1 - files_videoplayer: 1.3.0 - firstrunwizard: 2.3.0 - fulltextsearch: 1.1.0 - fulltextsearch_elasticsearch: 1.0.2 - gallery: 18.1.0 - issuetemplate: 0.4.0 - logreader: 2.0.0 - lookup_server_connector: 1.2.0 - nextcloud_announcements: 1.3.0 - notifications: 2.2.1 - oauth2: 1.2.1 - password_policy: 1.4.0 - provisioning_api: 1.4.0 - richdocuments: 3.0.5 - serverinfo: 1.4.0 - sharebymail: 1.4.0 - spreed: 4.0.1 - survey_client: 1.2.0 - systemtags: 1.4.0 - theming: 1.5.0 - twofactor_backupcodes: 1.3.1 - updatenotification: 1.4.1 - workflowengine: 1.4.0 Disabled: - admin_audit - encryption - files_external - user_external - user_ldap ```
Configuration (config/config.php) ``` { "passwordsalt": "***REMOVED SENSITIVE VALUE***", "secret": "***REMOVED SENSITIVE VALUE***", "trusted_domains": [ "localhost", "192.168.10.8", "cloud.hanssonit.se", "office.hanssonit.se" ], "datadirectory": "***REMOVED SENSITIVE VALUE***", "dbtype": "pgsql", "version": "14.0.3.0", "overwrite.cli.url": "https:\/\/cloud.hanssonit.se\/", "dbname": "***REMOVED SENSITIVE VALUE***", "dbhost": "***REMOVED SENSITIVE VALUE***", "dbport": "", "dbtableprefix": "oc_", "dbuser": "***REMOVED SENSITIVE VALUE***", "dbpassword": "***REMOVED SENSITIVE VALUE***", "installed": true, "instanceid": "***REMOVED SENSITIVE VALUE***", "mail_smtpmode": "smtp", "log_rotate_size": "10485760", "memcache.local": "\\OC\\Memcache\\Redis", "filelocking.enabled": true, "memcache.distributed": "\\OC\\Memcache\\Redis", "memcache.locking": "\\OC\\Memcache\\Redis", "redis": { "host": "***REMOVED SENSITIVE VALUE***", "port": 0, "timeout": 0.5, "dbindex": 0, "password": "***REMOVED SENSITIVE VALUE***" }, "htaccess.RewriteBase": "\/", "loglevel": "2", "log_type": "file", "logfile": "\/mnt\/ncdata\/nextcloud.log", "logtimezone": "Europe\/Stockholm", "maintenance": false, "mail_smtpauthtype": "LOGIN", "mail_smtpauth": 1, "mail_smtpport": "587", "mail_from_address": "***REMOVED SENSITIVE VALUE***", "mail_domain": "***REMOVED SENSITIVE VALUE***", "mail_smtpsecure": "tls", "mail_smtphost": "***REMOVED SENSITIVE VALUE***", "simpleSignUpLink.shown": false, "trusted_proxies": "***REMOVED SENSITIVE VALUE***", "forwarded_for_headers": [ "HTTP_X_FORWARDED", "HTTP_FORWARDED_FOR" ], "trashbin_retention_obligation": "auto, 30", "activity_expire_days": 60, "mail_smtpname": "***REMOVED SENSITIVE VALUE***", "mail_smtppassword": "***REMOVED SENSITIVE VALUE***", "remember_login_cookie_lifetime": 1800 } ```
**Are you using external storage, if yes which one:** local/smb/sftp/... **Are you using encryption:** **Are you using an external user-backend, if yes which one:** LDAP/ActiveDirectory/Webdav/... ## Client configuration **Browser:** Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:63.0) Gecko/20100101 Firefox/63.0 **Operating system:** ## Logs
Browser log ``` Insert your browser log here, this could for example include: a) The javascript console log b) The network log c) ... ```
Nextcloud log ``` Insert your Nextcloud log here ```
Browser log Insert your browser log here, this could for example include: a) The javascript console log b) The network log c) ...
Carazyda commented 5 years ago

Hello @enoch85 other containers stopped working too? Have you changed the storage driver without save containers? In official docker instructions says:

Changing the storage driver makes existing containers and images inaccessible on the local system. Use docker save to save any images you have built or push them to Docker Hub or a private registry, so that you do not need to re-create them later.

tiagoefreitas commented 5 years ago

Instructions to change here: https://meta.discourse.org/t/how-to-change-storage-backend-in-docker/75352

Carazyda commented 5 years ago

Hello @tiagoefreitas did you completely followed this instructions? After upgrade docker 18.06 to 18.09, the docker service will not start, and cant save containers.

Storage driver change is successful, if containers are properly stored. And Onlyoffice docker images works fine with overlay2 storage driver.

enoch85 commented 5 years ago

@Carazyda

Storage driver change is successful if containers are properly stored.

Hmm, then why doesn't it work? I mean docker pull [container] [settings] should be enough, right?

Carazyda commented 5 years ago

@enoch85 At first, you need save docker containers. I tested this instruction, it says about commit containers to docker images and save it in tar.gz on hdd. Change storage driver of docker. Then load archives to docker as images. And last, start containers from images with the same parametres.

enoch85 commented 5 years ago

@Carazyda I will do some tests today but in a regular Docker installation /etc/docker/daemon.json doesn't exist.

This is how we do it in the VM.

Let's see how this ends.

enoch85 commented 5 years ago

This issue can be closed.

https://github.com/nextcloud/vm/commit/e88c3a4cc3aded518074c7696159bad0f6b36414