NOTE: Newbie to admin. Managed to get NextOffice and Collabora working in Jan of 2024 using snap and this forum.
The Basics
- Nextcloud Server version: 30.0.4
- Operating system and version: Ubuntu 22.04.5 LTS
- Web server and version: Apache - not sure which version, managed by snap
- Reverse proxy and version: Apache (I guess? Not sure how to check)
- PHP version: 8.2.26
- Is this the first time youâve seen this error? (Yes / No): Yes
- When did this problem seem to first start?: I havenât used Office docs in awhile, so anytime between Jan of 2024 and now.
- Installation method: snap
- Are you using Cloudflare, mod_security, or similar? (Yes / No): I donât think so. Everything is local
Summary of the issue you are facing:
I cannot load Office documents - I get the never-ending spinner of death/doom/despair.
I see errors on the admin page (see full log below)
[richdocuments] Error: Failed to convert preview: cURL error 28: Operation timed out after 5000 milliseconds with 0 bytes received
When I run cURL from the CLI with same URL, I get:
curl: (60) SSL certificate problem: self-signed certificate
More details here: curl - SSL CA Certificates
When I look at the NextCloud Office admin page, I see two errors show up:
Failed to connect to the remote server: Could not find urlsrc for application/vnd.openxmlformats-officedocument.wordprocessingml.document in WOPI discovery response
AND
our browser has been unable to connect to the Collabora server: http://localhost/extra-apps/richdocumentscode/proxy.php?req=
NOTE:
I have âDisable Certificate Verificationâ checked in the Admin/Nextcloud Office page.
Steps to replicate it (hint: details matter!):
Log into my Nextcloud, navigate to Files and try to open a document, spreadsheet or other supported Office document. See above for troubleshooting that Iâve done so far.
Log entries
Nextcloud
âmessageâ:âFailed to convert preview: cURL error 28: Operation timed out after 5000 milliseconds with 0 bytes received (see libcurl - Error Codes) for https://localhost/extra-apps/richdocumentscode/proxy.php?req=/cool/convert-to/png",âexceptionâ:[],âCustomMessageâ:"Failed to convert preview: cURL error 28: Operation timed out after 5000 milliseconds with 0 bytes received (see libcurl - Error Codes) for https://localhost/extra-apps/richdocumentscode/proxy.php?req=/cool/convert-to/png"},âidâ:"6761903eadd7bâ}
(Pastebin for rest of raw: {"reqId":"R56UemJ3RltXCoh8E4wo","level":3,"time":"2024-12-17T13:58:49+00:00","re - Pastebin.com)
Web server / Reverse Proxy
The output of your Apache/nginx/system log in /var/log/____
:
NOT SURE HOW TO GET THIS FOR SNAP.
Configuration
Nextcloud
{
âsystemâ: {
âapps_pathsâ: [
{
âpathâ: â/snap/nextcloud/current/htdocs/appsâ,
âurlâ: â/appsâ,
âwritableâ: false
},
{
âpathâ: â/var/snap/nextcloud/current/nextcloud/extra-appsâ,
âurlâ: â/extra-appsâ,
âwritableâ: true
}
],
âsupportedDatabasesâ: [
âmysqlâ
],
âmemcache.lockingâ: â\OC\Memcache\Redisâ,
âmemcache.localâ: â\OC\Memcache\Redisâ,
âredisâ: {
âhostâ: âREMOVED SENSITIVE VALUEâ,
âportâ: 0
},
âlog_typeâ: âfileâ,
âlogfileâ: â/var/snap/nextcloud/current/logs/nextcloud.logâ,
âlogfilemodeâ: 416,
âpasswordsaltâ: âREMOVED SENSITIVE VALUEâ,
âsecretâ: âREMOVED SENSITIVE VALUEâ,
âtrusted_domainsâ: [
âlocalhostâ,
â192.168.86.40â,
â192.168.86.*â,
âshortennc.myddns.meâ,
â(NC SERVER NAME REMOVED)â
],
âdatadirectoryâ: âREMOVED SENSITIVE VALUEâ,
âdbtypeâ: âmysqlâ,
âversionâ: â30.0.4.1â,
âoverwrite.cli.urlâ: âhttp://localhostâ,
âdbnameâ: âREMOVED SENSITIVE VALUEâ,
âdbhostâ: âREMOVED SENSITIVE VALUEâ,
âdbportâ: ââ,
âdbtableprefixâ: âoc_â,
âmysql.utf8mb4â: true,
âdbuserâ: âREMOVED SENSITIVE VALUEâ,
âdbpasswordâ: âREMOVED SENSITIVE VALUEâ,
âinstalledâ: true,
âinstanceidâ: âREMOVED SENSITIVE VALUEâ,
âallow_local_remote_serversâ: true,
âmaintenanceâ: false,
âmail_from_addressâ: âREMOVED SENSITIVE VALUEâ,
âmail_smtpmodeâ: âsmtpâ,
âmail_sendmailmodeâ: âsmtpâ,
âmail_domainâ: âREMOVED SENSITIVE VALUEâ,
âmail_smtphostâ: âREMOVED SENSITIVE VALUEâ,
âmail_smtpportâ: â465â,
âmail_smtpauthâ: 1,
âmail_smtpnameâ: âREMOVED SENSITIVE VALUEâ,
âmail_smtppasswordâ: âREMOVED SENSITIVE VALUEâ,
âloglevelâ: 2,
âthemeâ: ââ,
âmaintenance_window_startâ: 1
}
}
Apps
===
Iâve browsed a number of topics, but the threads seem to end w/out a resolution listed. If I get this solved, Iâll put the answer here.