ONLYOFFICE / onlyoffice-humhub

Plugin for integrating ONLYOFFICE online editors with HumHub
GNU Affero General Public License v3.0
12 stars 9 forks source link

Module connects successfully to Onlyoffice with my JWT but I get: "The document could not be saved" when opening document #61

Open monacoblue opened 3 years ago

monacoblue commented 3 years ago

Sorry to repost as separate topic - but I'm getting no responses, because my issue is buried in an old thread.

I have carefully searched and read all the threads on this topic, but none of them has helped me (since afaik i'm not behind proxy, permalinks are https etc.)

Tried a kazillion things and am desperately trying to get this to work!

Log Error: "Expected JWT" "The document could not be saved. Please check connection settings or contact your administrator"

Version: Humhub 1.9.1 Document Server: ONLYOFFICE DOCS 6.4.1 (Cloudron/Docker) runing on https://office.glowrepeat.net Humhub Server: LAMP installation on CentOS WHM PHP 7.3. AutoSSL (Secticgo) running on https://hub.glowrepe.at

Here's what I did/tried so far:

Here is the humhub LOG:

`2021-10-12 15:39:22 [78.129.139.241][-][-][error][onlyoffice] Expected JWT 2021-10-12 15:39:22 [78.129.139.241][-][-][info][application] $_GET = [ 'key' => '(hidden)' ]

$_SERVER = [ 'CONTENT_LENGTH' => '161' 'CONTENT_TYPE' => 'application/json' 'CONTEXT_DOCUMENT_ROOT' => '/home/glowrepe/public_html/APP_hub' 'CONTEXT_PREFIX' => '' 'DOCUMENT_ROOT' => '/home/glowrepe/public_html/APP_hub' 'GATEWAY_INTERFACE' => 'CGI/1.1' 'HTTPS' => 'on' 'HTTP_CPANEL_LOCALHOST' => '1' 'HTTP_HOST' => 'hub.glowrepe.at' 'HTTP_USER_AGENT' => 'Node.js/6.13' 'HTTP_X_FORWARDED_FOR' => '46.101.106.221' 'HTTP_X_FORWARDED_HOST' => 'hub.glowrepe.at' 'HTTP_X_FORWARDED_PORT' => '443' 'HTTP_X_FORWARDED_PROTO' => 'https' 'HTTP_X_FORWARDED_SERVER' => 'hub.glowrepe.at' 'HTTP_X_REAL_IP' => '46.101.106.221' 'PATH' => '/bin:/usr/bin' 'PHP_INI_SCAN_DIR' => '/opt/cpanel/ea-php73/root/etc:/opt/cpanel/ea-php73/root/etc/php.d:.' 'QUERY_STRING' => 'key=(hidden)' 'REDIRECT_HTTPS' => 'on' 'REDIRECT_QUERY_STRING' => 'key=(hidden)' 'REDIRECT_STATUS' => '200' 'REDIRECT_UNIQUE_ID' => '(hidden)' 'REDIRECT_URL' => '/onlyoffice/backend/track' 'REDIRECT_isproxyrequest' => '1' 'REMOTE_ADDR' => '78.129.139.241' 'REMOTE_PORT' => '40560' 'REQUEST_METHOD' => 'POST' 'REQUEST_SCHEME' => 'https' 'REQUEST_URI' => '/onlyoffice/backend/track?key=(hidden)' 'SCRIPT_FILENAME' => '/home/glowrepe/public_html/APP_hub/index.php' 'SCRIPT_NAME' => '/index.php' 'SERVER_ADDR' => '78.129.139.242' 'SERVER_ADMIN' => '(hidden)' 'SERVER_NAME' => 'hub.glowrepe.at' 'SERVER_PORT' => '443' 'SERVER_PROTOCOL' => 'HTTP/1.1' 'SERVER_SIGNATURE' => '' 'SERVER_SOFTWARE' => 'Apache' 'TZ' => 'Europe/Copenhagen' 'UNIQUE_ID' => '(hidden)' 'isproxyrequest' => '1' 'PHP_SELF' => '/index.php' 'REQUEST_TIME_FLOAT' => (hidden) 'REQUEST_TIME' => (hidden) 'argv' => [ 0 => 'key=(hidden)' ] 'argc' => 1 ]`

Onlyoffice and Humhub are on two different servers so it seems the internal requests sections are not relevant.

I suspect that it is related to the AutoSSL that is preventing onlyoffice from seeing Humhub? However I am havinga hard time wrapping my head around what specifically I need to do to fix that?

I would be very grateful for any tips or help 🙏

Many thanks, M

monacoblue commented 3 years ago

BUMP - Still stuck with this - any help would be greatly appreciated 🙏

CarlOnlyoffice commented 3 years ago

@monacoblue Hi, sorry for the late reply. Could you please provide a guide that you used to install HumHub? We need it to replicate your environment and reproduce the issue.