Bought a linux shared hosting service on a cloud provider to host my wordpress site.
Did a fresh of NC 18, followed by the Community Document Server (the timeout issue solved) and then the ONLYOFFICE conector app.
NC works just fine.
When I try to open/edit a new document, the result is “ONLYOFFICE cannot be reached. Please contact admin”.
Server configuration detail
Operating system: Linux 3.10.0-962.3.2.lve1.5.28.el7.x86_64
Webserver: Apache (litespeed)
Database: mysql 5.7.29
PHP version: 7.3.16
Nextcloud version: 18.0.3 - 18.0.3.0
config/config.php:
“instanceid”: “REMOVED SENSITIVE VALUE”,
“passwordsalt”: “REMOVED SENSITIVE VALUE”,
“secret”: “REMOVED SENSITIVE VALUE”,
“trusted_domains”: [
“mydomain”
],
“datadirectory”: “REMOVED SENSITIVE VALUE”,
“dbtype”: “mysql”,
“version”: “18.0.3.0”,
“overwrite.cli.url”: “https://mydomain/nextcloud”,
“dbname”: “REMOVED SENSITIVE VALUE”,
“dbhost”: “REMOVED SENSITIVE VALUE”,
“dbport”: “”,
“dbtableprefix”: “oc_”,
“dbuser”: “REMOVED SENSITIVE VALUE”,
“dbpassword”: “REMOVED SENSITIVE VALUE”,
“installed”: true,
“mail_smtpmode”: “smtp”,
“mail_smtpsecure”: “ssl”,
“mail_sendmailmode”: “smtp”,
“mail_from_address”: “REMOVED SENSITIVE VALUE”,
“mail_domain”: “REMOVED SENSITIVE VALUE”,
“mail_smtpauthtype”: “PLAIN”,
“mail_smtpauth”: 1,
“mail_smtphost”: “REMOVED SENSITIVE VALUE”,
“mail_smtpport”: “465”,
“mail_smtpname”: “REMOVED SENSITIVE VALUE”,
“mail_smtppassword”: “REMOVED SENSITIVE VALUE”,
“maintenance”: false
}
My ONLYOFFICE automatic configuration is:
- Server settings
Document Editing Service address
https://mydomain/nextcloud/index.php/apps/documentserver_community/ - Advanced server settings
Document Editing Service address for internal requests from the server
https://‘documentserver’/
Server address for internal requests from the Document Editing Service
https://mydomain/nextcloud/
Is this the first time you’ve seen this error?:
Yes it is.
Can you reliably replicate it? (If so, please outline steps):
Yes. I have gotten this error message everytime I try to open/edit a OO document.
The issue you are facing:
When I’m trying to access onlyoffice via Nextcloud I get ONLYOFFICE cannot be reached. Please contact admin as an error message in the browser.
I’ve tryed with FF, IE and EDGE with admin user and a regular user. Same error result.
The browser is trying to access:
https://mydomain/privatecloud/index.php/apps/onlyoffice/672?filePath=%2FDocuments%2FDocument_test.docx
While inspecting the site I saw that api.js is blocked due to a mime tpe discrepancy (!?):
SEC7112: The https://mydomain/nextcloud/index.php/apps/documentserver_community/web-apps/apps/api/documents/api.js script has been blocked due
to a mime type discrepancy
I can also see this while inspecting the site:
div id=“app”
div id=“iframeEditor”
data-id=“672”
data-path="/Documents/Document_test.docx"
data-sharetoken=""
data-directtoken=""
data-inframe="" /div
<script nonce=“REMOVED SENSITIVE VALUE”
src=“https://mydomain/nextcloud/index.php/apps/documentserver_community/web-apps/apps/api/documents/api.js” type=“text/javascript” /script
/div
My NC 18 Logging states:
Exception: fclose() expects parameter 1 to be resource, null given at <>
- /mydomain/nextcloud/lib/private/AppFramework/App.php line 125
OC\AppFramework\Http\Dispatcher->dispatch(OCA\DocumentServ … {}, “webApps”) - /mydomain/nextcloud/lib/private/AppFramework/Routing/RouteActionHandler.php line 47
OC\AppFramework\App::main(“OCA\DocumentSe … r”, “webApps”, OC\AppFramework\ … {}, {path: "apps/api … "}) - <>
OC\AppFramework\Routing\RouteActionHandler->__invoke({path: "apps/api … "}) - /mydomain/nextcloud/lib/private/Route/Router.php line 299
call_user_func(OC\AppFramework\ … {}, {path: "apps/api … "}) - /mydomain/nextcloud/lib/base.php line 1008
OC\Route\Router->match("/apps/documents … s") - /mydomain/nextcloud/index.php line 38
OC::handleRequest()
Caused by TypeError: fclose() expects parameter 1 to be resource, null given
0. /mydomain/nextcloud/apps/documentserver_community/lib/Document/ConverterBinary.php - line 53:
fclose(null)
- /mydomain/nextcloud/apps/documentserver_community/lib/Document/ConverterBinary.php - line 72:
OCA\DocumentServer\Document\ConverterBinary->run("") - /mydomain/nextcloud/apps/documentserver_community/lib/SetupCheck.php - line 34:
OCA\DocumentServer\Document\ConverterBinary->test() - /mydomain/nextcloud/apps/documentserver_community/lib/Controller/StaticController.php - line 89:
OCA\DocumentServer\SetupCheck->check() - /mydomain/nextcloud/lib/private/AppFramework/Http/Dispatcher.php - line 170:
OCA\DocumentServer\Controller\StaticController->webApps(“apps/api/documents/api.js”) - /mydomain/nextcloud/lib/private/AppFramework/Http/Dispatcher.php - line 99:
OC\AppFramework\Http\Dispatcher->executeController(OCA\Document … {}, “webApps”) - /mydomain/nextcloud/lib/private/AppFramework/App.php - line 125:
OC\AppFramework\Http\Dispatcher->dispatch(OCA\Document … {}, “webApps”) - /mydomain/nextcloud/lib/private/AppFramework/Routing/RouteActionHandler.php - line 47:
OC\AppFramework\App::main(“OCA\Docume … r”, “webApps”, OC\AppFramew … {}, { path: "app … "}) - <>
OC\AppFramework\Routing\RouteActionHandler->__invoke({ path: "app … "}) - /mydomain/nextcloud/lib/private/Route/Router.php - line 299:
call_user_func(OC\AppFramew … {}, { path: "app … "}) - /mydomain/nextcloud/lib/base.php - line 1008:
OC\Route\Router->match("/apps/docum … s") - /mydomain/nextcloud/index.php - line 38:
OC::handleRequest()
[PHP] Error: proc_open() has been disabled for security reasons at /mydomain/nextcloud/apps/documentserver_community/lib/Document/ConverterBinary.php#51
Anyone that got any clue about this?
Thanks in advance
/Henrique