Hello,
I run cloud.domain.nl with nginx reverse prox and apache2. I have Collabora docker on office.domain.nl where iâve disabled apache2 for and only use nginx with the config below. (note that i only use nginx for office and nginx reverse prox and apache2 for cloud.domain.nl).
I really hope someone could help me.
Expected behaviour
Editor should open when opening a .odt doc.
Actual behaviour
Collabora screen opens, keeps initializing and then times out with no error message
Nginx office.domain config
listen 443 ssl;
server_name office.domain.nl;
ssl_certificate /usr/local/psa/var/modules/letsencrypt/etc/live/office.domain.nl/fullchain.pem;
ssl_certificate_key /usr/local/psa/var/modules/letsencrypt/etc/live/office.domain.nl/privkey.pem;
# static files
location ^~ /loleaflet {
proxy_pass https://127.0.0.1:9980;
proxy_set_header Host $http_host;
}
# WOPI discovery URL
location ^~ /hosting/discovery {
proxy_pass https://127.0.0.1:9980;
proxy_set_header Host $http_host;
}
# Main websocket
location ~ /lool/(.*)/ws$ {
proxy_pass https://127.0.0.1:9980;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "Upgrade";
proxy_set_header Host $http_host;
proxy_read_timeout 36000s;
}
# Admin Console websocket
location ^~ /lool/adminws {
proxy_pass https://127.0.0.1:9980;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "Upgrade";
proxy_set_header Host $http_host;
proxy_read_timeout 36000s;
}
# download, presentation and image upload
location ^~ /lool {
proxy_pass https://127.0.0.1:9980;
proxy_set_header Host $http_host;
}
Docker logs
wsd-00026-00034 19:18:51.987142 [ websrv_poll ] WRN WOPI host did not pass optional access_token_ttl| wsd/FileServer.cpp:327
wsd-00026-00034 19:18:52.721646 [ websrv_poll ] ERR #18 Exception while processing incoming request: [GET /lool/https%3A%2F%2Fcloud.domain.nl%2Findex.php%2Fapps%2Frichdocuments%2Fwopi%2Ffiles%2F81%3Facc...]: Invalid or unknown request.| wsd/LOOLWSD.cpp:1665oken_ttl%3D0%26permission%3Dedit/ws HTTP/1.0
wsd-00026-00034 19:19:52.723134 [ websrv_poll ] ERR #18 Exception while processing incoming request: [GET /lool/https%3A%2F%2Fcloud.domain.nl%2Findex.php%2Fapps%2Frichdocuments%2Fwopi%2Ffiles%2F81%3Facc...]: Invalid or unknown request.| wsd/LOOLWSD.cpp:1665oken_ttl%3D0%26permission%3Dedit/ws HTTP/1.0
wsd-00026-00034 19:19:52.961294 [ websrv_poll ] ERR #18 Exception while processing incoming request: [GET /lool/https%3A%2F%2Fcloud.domain.nl%2Findex.php%2Fapps%2Frichdocuments%2Fwopi%2Ffiles%2F81%3Facc...]: Invalid or unknown request.| wsd/LOOLWSD.cpp:1665oken_ttl%3D0%26permission%3Dedit/ws HTTP/1.0
wsd-00026-00034 19:20:52.962154 [ websrv_poll ] ERR #18 Exception while processing incoming request: [GET /lool/https%3A%2F%2Fcloud.domain.nl%2Findex.php%2Fapps%2Frichdocuments%2Fwopi%2Ffiles%2F81%3Facc...]: Invalid or unknown request.| wsd/LOOLWSD.cpp:1665oken_ttl%3D0%26permission%3Dedit/ws HTTP/1.0
Server configuration
Operating system: Linux domain.nl 4.4.0-72-generic #93-Ubuntu SMP Fri Mar 31 14:07:41 UTC 2017 x86_64
Web server: Apache (fpm-fcgi)
Database: mysql 5.7.18
PHP version: 7.1.4
Modules loaded: Core, date, libxml, openssl, pcre, zlib, bz2, calendar, ctype, hash, filter, ftp, gettext, gmp, SPL, iconv, Reflection, session, standard, SimpleXML, sockets, mbstring, tokenizer, xml, cgi-fcgi, mysqlnd, bcmath, curl, dba, dom, enchant, fileinfo, gd, imagick, imap, intl, json, ldap, exif, mcrypt, mysqli, odbc, PDO, pdo_mysql, PDO_ODBC, pdo_pgsql, pdo_sqlite, pgsql, Phar, posix, pspell, redis, soap, sqlite3, sysvmsg, sysvsem, sysvshm, tidy, xmlreader, xmlrpc, xmlwriter, xsl, zip, Zend OPcache
Nextcloud version: 11.0.3 (stable) - 11.0.3.2
Updated from an older Nextcloud/ownCloud or fresh install:
Update from 10
Where did you install Nextcloud from:
nextcloud-setup.php web installer
Signing status:
Signing status
[]
List of activated apps:
App list
``` Enabled: - activity: 2.4.1 - activitylog: 0.0.1 - admin_audit: 1.1.0 - admin_notifications: 1.0.0 - announcementcenter: 3.0.0 - audioplayer: 1.5.1 - calendar: 1.5.2 - checksum: 0.3.4 - comments: 1.1.0 - contacts: 1.5.3 - dav: 1.1.1 - deck: 0.1.4 - defaultgroup: 0.2.0 - external: 1 - federatedfilesharing: 1.1.1 - federation: 1.1.1 - files: 1.6.1 - files_accesscontrol: 1.1.2 - files_automatedtagging: 1.1.1 - files_downloadactivity: 1.0.1 - files_external: 1.1.2 - files_markdown: 1.0.1 - files_pdfviewer: 1.0.1 - files_reader: 1.0.4 - files_retention: 1.0.1 - files_sharing: 1.1.1 - files_texteditor: 2.2 - files_trashbin: 1.1.0 - files_versions: 1.4.0 - files_videoplayer: 1.0.0 - firstrunwizard: 2.0 - gallery: 16.0.0 - githubmergetracker: 0.0.15 - issuetemplate: 0.2.1 - logreader: 2.0.0 - lookup_server_connector: 1.0.0 - mail: 0.6.4 - news: 10.2.0 - nextcloud_announcements: 1.0 - notes: 2.2.0 - notifications: 1.0.1 - ojsxc: 3.1.1 - ownbackup: 17.3.0 - password_policy: 1.1.0 - previewgenerator: 1.0.6 - provisioning_api: 1.1.0 - registration: 0.2.3 - richdocuments: 1.1.24 - serverinfo: 1.1.1 - sharebymail: 1.0.1 - spreed: 1.2.0 - survey_client: 0.1.5 - systemtags: 1.1.3 - tasks: 0.9.5 - templateeditor: 0.2 - theming: 1.1.1 - twofactor_backupcodes: 1.0.0 - twofactor_totp: 1.1.0 - twofactor_u2f: 1.2.0 - updatenotification: 1.1.1 - user_external: 0.4 - weather: 1.3.5 - workflowengine: 1.1.1Disabled:
- encryption
- user_ldap
- user_saml
</details>
**The content of config/config.php:**
<details>
<summary>Config report</summary>
{
âinstanceidâ: âREMOVED SENSITIVE VALUEâ,
âpasswordsaltâ: âREMOVED SENSITIVE VALUEâ,
âsecretâ: âREMOVED SENSITIVE VALUEâ,
âtrusted_domainsâ: [
âcloud.domain.nlâ
],
âdatadirectoryâ: â/ncdataâ,
âoverwrite.cli.urlâ: âhttps://cloud.domain.nlâ,
âdbtypeâ: âmysqlâ,
âversionâ: â11.0.3.2â,
âdbnameâ: âncdbâ,
âdbhostâ: âlocalhostâ,
âdbportâ: ââ,
âdbtableprefixâ: âoc_â,
âdbuserâ: âREMOVED SENSITIVE VALUEâ,
âdbpasswordâ: âREMOVED SENSITIVE VALUEâ,
âlogtimezoneâ: âUTCâ,
âinstalledâ: true,
âmysql.utf8mb4â: true,
âmemcache.localâ: â\OC\Memcache\Redisâ,
âfilelocking.enabledâ: true,
âmemcache.distributedâ: â\OC\Memcache\Redisâ,
âmemcache.lockingâ: â\OC\Memcache\Redisâ,
âredisâ: {
âhostâ: â/var/run/redis/redis.sockâ,
âportâ: 0,
âtimeoutâ: 0,
âdbindexâ: 0,
âpasswordâ: âREMOVED SENSITIVE VALUEâ
},
âupdater.release.channelâ: âstableâ,
âupdater.secretâ: âREMOVED SENSITIVE VALUEâ,
âmaintenanceâ: false,
âthemeâ: ââ,
âloglevelâ: 2,
âmail_smtpmodeâ: âsendmailâ,
âmail_smtpsecureâ: âsslâ,
âmail_from_addressâ: âinfoâ,
âmail_domainâ: âdomain.nlâ,
âmail_smtpauthtypeâ: âLOGINâ,
âmail_smtpauthâ: 1,
âmail_smtphostâ: âsmtp.domain.nlâ,
âmail_smtpportâ: â587â,
âmail_smtpnameâ: âREMOVED SENSITIVE VALUEâ,
âmail_smtppasswordâ: âREMOVED SENSITIVE VALUEâ
}
</details>
**Are you using external storage, if yes which one:** Array
(
[0] => \OC\Files\Storage\Local
[1] => \OCA\Files_External\Lib\Storage\FTP
[2] => \OC\Files\Storage\DAV
[3] => \OCA\Files_External\Lib\Storage\OwnCloud
[4] => \OCA\Files_External\Lib\Storage\SFTP
[5] => \OCA\Files_External\Lib\Storage\AmazonS3
[6] => \OCA\Files_External\Lib\Storage\Dropbox
[7] => \OCA\Files_External\Lib\Storage\Google
[8] => \OCA\Files_External\Lib\Storage\Swift
[9] => \OCA\Files_External\Lib\Storage\SFTP
)
**Are you using encryption:** no
**Are you using an external user-backend, if yes which one:** LDAP/ActiveDirectory/Webdav/...
### Client configuration
**Browser:** Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/55.0.2883.75 Safari/537.36
**Operating system:**
Ubuntu 16.04.02
Plesk Onyx
### Logs
#### Web server error log
<details>
<summary>Web server error log</summary>
```
[Sun May 07 21:12:37.027862 2017] [:notice] [pid 1176] ModSecurity for Apache/2.9.0 (http://www.modsecurity.org/) configured.
[Sun May 07 21:12:37.027867 2017] [:notice] [pid 1176] ModSecurity: APR compiled version="1.5.2"; loaded version="1.5.2"
[Sun May 07 21:12:37.027870 2017] [:notice] [pid 1176] ModSecurity: PCRE compiled version="8.38 "; loaded version="8.38 2015-11-23"
[Sun May 07 21:12:37.027873 2017] [:notice] [pid 1176] ModSecurity: LUA compiled version="Lua 5.1"
[Sun May 07 21:12:37.027875 2017] [:notice] [pid 1176] ModSecurity: LIBXML compiled version="2.9.3"
[Sun May 07 21:12:37.027876 2017] [:notice] [pid 1176] ModSecurity: Original server signature: Apache
[Sun May 07 21:12:37.027878 2017] [:notice] [pid 1176] ModSecurity: Status engine is currently disabled, enable it by set SecStatusEngine to On.
[ 2017-05-07 21:12:37.0493 1177/7fe5a3558780 age/Wat/WatchdogMain.cpp:1291 ]: Starting Passenger watchdog...
[ 2017-05-07 21:12:37.0707 1180/7f6d32994780 age/Cor/CoreMain.cpp:982 ]: Starting Passenger core...
[ 2017-05-07 21:12:37.0709 1180/7f6d32994780 age/Cor/CoreMain.cpp:235 ]: Passenger core running in multi-application mode.
[ 2017-05-07 21:12:37.0927 1180/7f6d32994780 age/Cor/CoreMain.cpp:732 ]: Passenger core online, PID 1180
[ 2017-05-07 21:12:37.1156 1187/7f6fc8b07780 age/Ust/UstRouterMain.cpp:529 ]: Starting Passenger UstRouter...
[ 2017-05-07 21:12:37.1165 1187/7f6fc8b07780 age/Ust/UstRouterMain.cpp:342 ]: Passenger UstRouter online, PID 1187
[Sun May 07 21:12:37.117100 2017] [suexec:notice] [pid 1176] AH01232: suEXEC mechanism enabled (wrapper: /usr/lib/apache2/suexec)
[ 2017-05-07 21:12:37.1356 1180/7f6d277fe700 age/Cor/CoreMain.cpp:532 ]: Signal received. Gracefully shutting down... (send signal 2 more time(s) to force shutdown)
[ 2017-05-07 21:12:37.1357 1187/7f6fc1ed2700 age/Ust/UstRouterMain.cpp:422 ]: Signal received. Gracefully shutting down... (send signal 2 more time(s) to force shutdown)
[ 2017-05-07 21:12:37.1368 1187/7f6fc8b07780 age/Ust/UstRouterMain.cpp:492 ]: Received command to shutdown gracefully. Waiting until all clients have disconnected...
[ 2017-05-07 21:12:37.1369 1187/7f6fc1ed2700 Ser/Server.h:464 ]: [UstRouter] Shutdown finished
[ 2017-05-07 21:12:37.1369 1187/7f6fc16d1700 Ser/Server.h:817 ]: [UstRouterApiServer] Freed 0 spare client objects
[ 2017-05-07 21:12:37.1369 1187/7f6fc16d1700 Ser/Server.h:464 ]: [UstRouterApiServer] Shutdown finished
[ 2017-05-07 21:12:37.1385 1180/7f6d32994780 age/Cor/CoreMain.cpp:901 ]: Received command to shutdown gracefully. Waiting until all clients have disconnected...
[ 2017-05-07 21:12:37.1388 1180/7f6d25ffb700 Ser/Server.h:817 ]: [ServerThr.4] Freed 128 spare client objects
[ 2017-05-07 21:12:37.1388 1180/7f6d25ffb700 Ser/Server.h:464 ]: [ServerThr.4] Shutdown finished
[ 2017-05-07 21:12:37.1389 1180/7f6d267fc700 Ser/Server.h:817 ]: [ServerThr.3] Freed 128 spare client objects
[ 2017-05-07 21:12:37.1389 1180/7f6d26ffd700 Ser/Server.h:817 ]: [ServerThr.2] Freed 128 spare client objects
[ 2017-05-07 21:12:37.1389 1180/7f6d267fc700 Ser/Server.h:464 ]: [ServerThr.3] Shutdown finished
[ 2017-05-07 21:12:37.1389 1180/7f6d26ffd700 Ser/Server.h:464 ]: [ServerThr.2] Shutdown finished
[ 2017-05-07 21:12:37.1391 1180/7f6cebfff700 Ser/Server.h:817 ]: [ServerThr.7] Freed 128 spare client objects
[ 2017-05-07 21:12:37.1391 1180/7f6cebfff700 Ser/Server.h:464 ]: [ServerThr.7] Shutdown finished
[ 2017-05-07 21:12:37.1391 1180/7f6d24ff9700 Ser/Server.h:817 ]: [ServerThr.6] Freed 128 spare client objects
[ 2017-05-07 21:12:37.1392 1180/7f6d24ff9700 Ser/Server.h:464 ]: [ServerThr.6] Shutdown finished
[ 2017-05-07 21:12:37.1393 1180/7f6d277fe700 Ser/Server.h:817 ]: [ServerThr.1] Freed 128 spare client objects
[ 2017-05-07 21:12:37.1393 1180/7f6d277fe700 Ser/Server.h:464 ]: [ServerThr.1] Shutdown finished
[ 2017-05-07 21:12:37.1393 1180/7f6d257fa700 Ser/Server.h:817 ]: [ServerThr.5] Freed 128 spare client objects
[ 2017-05-07 21:12:37.1393 1180/7f6d257fa700 Ser/Server.h:464 ]: [ServerThr.5] Shutdown finished
[ 2017-05-07 21:12:37.1394 1180/7f6ceb7fe700 Ser/Server.h:817 ]: [ServerThr.8] Freed 128 spare client objects
[ 2017-05-07 21:12:37.1394 1180/7f6ceb7fe700 Ser/Server.h:464 ]: [ServerThr.8] Shutdown finished
[ 2017-05-07 21:12:37.1395 1180/7f6ceaffd700 Ser/Server.h:817 ]: [ApiServer] Freed 0 spare client objects
[ 2017-05-07 21:12:37.1395 1180/7f6ceaffd700 Ser/Server.h:464 ]: [ApiServer] Shutdown finished
[ 2017-05-07 21:12:37.1490 1187/7f6fc8b07780 age/Ust/UstRouterMain.cpp:523 ]: Passenger UstRouter shutdown finished
[ 2017-05-07 21:12:37.3156 1180/7f6d32994780 age/Cor/CoreMain.cpp:967 ]: Passenger core shutdown finished
[Sun May 07 21:12:37.346918 2017] [auth_digest:notice] [pid 1216] AH01757: generating secret for digest authentication ...
[Sun May 07 21:12:37.347154 2017] [:notice] [pid 1216] mod_bw : Memory Allocated 0 bytes (each conf takes 48 bytes)
[Sun May 07 21:12:37.347166 2017] [:notice] [pid 1216] mod_bw : Version 0.92 - Initialized [0 Confs]
2017-05-07 21:12:38.0743 1228/7f7eda9b8780 age/Cor/CoreMain.cpp:982 ]: Starting Passenger core...
[ 2017-05-07 21:12:38.0745 1228/7f7eda9b8780 age/Cor/CoreMain.cpp:235 ]: Passenger core running in multi-application mode.
[ 2017-05-07 21:12:38.0882 1228/7f7eda9b8780 age/Cor/CoreMain.cpp:732 ]: Passenger core online, PID 1228
[ 2017-05-07 21:12:38.1246 1235/7f89c85a0780 age/Ust/UstRouterMain.cpp:529 ]: Starting Passenger UstRouter...
[ 2017-05-07 21:12:38.1255 1235/7f89c85a0780 age/Ust/UstRouterMain.cpp:342 ]: Passenger UstRouter online, PID 1235
PHP Warning: Module 'redis' already loaded in Unknown on line 0
[Sun May 07 21:12:38.178882 2017] [:error] [pid 1216] python_init: Python version mismatch, expected '2.7.6', found '2.7.12'.
[Sun May 07 21:12:38.179050 2017] [:error] [pid 1216] python_init: Python executable found '/usr/bin/python'.
[Sun May 07 21:12:38.179062 2017] [:error] [pid 1216] python_init: Python path being used '/usr/lib/python2.7/:/usr/lib/python2.7/plat-x86_64-linux-gnu:/usr/lib/python2.7/lib-tk:/usr/lib/python2.7/lib-old:/usr/lib/python2.7/lib-dynload'.
[Sun May 07 21:12:38.179091 2017] [:notice] [pid 1216] mod_python: Creating 8 session mutexes based on 150 max processes and 0 max threads.
[Sun May 07 21:12:38.179099 2017] [:notice] [pid 1216] mod_python: using mutex_directory /tmp
[Sun May 07 21:12:38.248488 2017] [mpm_prefork:notice] [pid 1216] AH00163: Apache/2.4.18 (Ubuntu) OpenSSL/1.0.2g Apache mod_fcgid/2.3.9 mod_jk/1.2.41 Phusion_Passenger/5.0.30 mod_python/3.3.1 Python/2.7.12 mod_perl/2.0.9 Perl/v5.22.1 configured -- resuming normal operations
[Sun May 07 21:12:38.248577 2017] [core:notice] [pid 1216] AH00094: Command line: '/usr/sbin/apache2'
```
</details>
#### Nextcloud log (data/nextcloud.log)
<details>
<summary>Nextcloud log</summary>
```
{"reqId":"WQ9Ya1Eenn4AABOK45cAAAAI","remoteAddr":"212.92.117.35","app":"PHP","message":"fopen(\/ncdata\/user\/files\/sdfrg\/.ods): failed to open stream: No such file or directory at \/var\/www\/vhosts\/domain.nl\/cloud.domain.nl\/lib\/private\/Files\/Storage\/Local.php#287","level":3,"time":"2017-05-07T17:26:53+00:00","method":"POST","url":"\/index.php\/apps\/richdocuments\/ajax\/documents\/create","user":"user","version":"11.0.3.2"}
```
</details>
#### Browser log
<details>
<summary>Browser log</summary>
```
JQMIGRATE: Migrate is installed, version 1.4.0
jsxc.js:185 State changed to INITIATING
jsxc.js:185 State changed to SUSPEND
5jsxc.js:185 [WARN] Unable to create user prefix
jquery-migrate.min.js:2 JQMIGRATE: Migrate is installed, version 1.4.0
js.js:2139 Deprecation warning: tipsy is deprecated. Use tooltip instead.
jQuery.fn.tipsy @ js.js:2139
documents.js:301 Waiting for page to render ...
bundle.js:49266 Synchronous XMLHttpRequest on the main thread is deprecated because of its detrimental effects to the end user's experience. For more help, check https://xhr.spec.whatwg.org/.
request_JSON @ bundle.js:49266
-------------------------
ws (pending) websocket bundle.js:756 0 B Pending
notifications 200 xhr jquery.js:8630 506 B 496 ms
notifications 200 xhr jquery.js:8630 506 B 531 ms
notifications 200 xhr jquery.js:8630 506 B 523 ms
notifications 200 xhr jquery.js:8630 506 B 485 ms
```
</details>