Okay, let me know when you are ready to continue.
why if i chek healthchek in browser
cannot get /healthchek
Hello @wawan
In your reply word has a typo, correct spelling is healthcheck
.
Hi,
I have the same problem with nextcloud and onlyoffice in two different servers:
office.claimcenter.com running onlyoffice document server 8.3.2
cloud.rafelamer.com running netcloud 30.0.8
Both servers runs rocky linux 9.
Here’s my config/config.php in the nexcloud server
<?php
$CONFIG = array (
'maintenance_window_start' => 1,
'instanceid' => 'xxxxxxxxxxxx',
'passwordsalt' => 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx',
'secret' => 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx',
'trusted_domains' =>
array (
0 => 'cloud.rafelamer.com',
1 => 'nuvol.agn.dance',
2 => 'office.claimcenter.com',
),
'datadirectory' => '/home/nextcloud/',
'dbtype' => 'pgsql',
'version' => '30.0.8.1',
'overwrite.cli.url' => 'https://cloud.rafelamer.com',
'dbname' => 'nextcloud',
'dbhost' => 'localhost',
'dbport' => '',
'dbtableprefix' => 'oc_',
'dbuser' => 'ogo',
'dbpassword' => '',
'installed' => true,
'ldapIgnoreNamingRules' => false,
'ldapProviderFactory' => 'OCA\\User_LDAP\\LDAPProviderFactory',
'maintenance' => false,
'memcache.distributed' => '\\OC\\Memcache\\Redis',
'memcache.local' => '\\OC\\Memcache\\Redis',
'redis' =>
array (
'host' => '127.0.0.1',
'port' => 6379,
),
'memcache.locking' => '\\OC\\Memcache\\Redis',
'theme' => '',
'updater.release.channel' => 'stable',
'mail_smtpmode' => 'smtp',
'mail_smtpauthtype' => 'PLAIN',
'mail_sendmailmode' => 'smtp',
'mail_smtpsecure' => 'tls',
'mail_smtpauth' => 1,
'default_phone_region' => 'ES',
'encryption.legacy_format_support' => false,
'encryption.key_storage_migrated' => false,
'mail_domain' => 'rafelamer.com',
'mail_from_address' => 'admin',
'mail_smtphost' => 'mail.rafelamer.com',
'mail_smtpport' => '25',
'mail_smtpname' => 'admin',
'mail_smtppassword' => 'xxxxxxxxxxxxxxxxxxxxx',
'app_install_overwrite' =>
array (
0 => 'bbb',
),
'loglevel' => 3,
'auth.bruteforce.protection.enabled' => false,
'onlyoffice' =>
array (
'verify_peer_off' => true,
'jwt_secret' => 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx',
'jwt_header' => 'AuthorizationJWT'
),
);
And that’s my /etc/onlyoffice/documentserver/local.json in the onlyoffice server
{
"services": {
"CoAuthoring": {
"sql": {
"dbHost": "localhost",
"dbName": "onlyoffice",
"dbUser": "onlyoffice",
"dbPass": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
"type": "postgres",
"dbPort": "5432"
},
"token": {
"enable": {
"request": {
"inbox": true,
"outbox": true
},
"browser": true
},
"inbox": {
"header": "Authorization"
},
"outbox": {
"header": "Authorization"
}
},
"secret": {
"inbox": {
"string": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
},
"outbox": {
"string": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
},
"session": {
"string": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
}
}
}
},
"queue": {
"type": "rabbitmq"
},
"rabbitmq": {
"url": "amqp://onlyoffice:xxxxxxxxxxxxxxxxxxxxxxxxxx@localhost"
},
}
When I click the Save button in the onlyoffice configuration page in Nextcloud, I get the error
Error occurred in the document service: Error while downloading the document file to be converted. (version 8.3.2.19)
I think that the problem is that, when I click the Save button, the function getConvertedUri in apps/onlyoffice/lib/DocumentService.php in the Nexcloud server sends a request to https://office.claimcenter.com. When the onlyoffice server receives this request, it send a request back to the Nexcloud server
ttps://cloud.rafelamer.com/index.php/apps/onlyoffice/empty?doc=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJhY3Rpb24iOiJlbXB0eSJ9.vu9Aj0Y27pHZgCYqj3mW7LqdcIgz7-5UK5aSjtdBfUk
but it receives 403 Forbidden from the Nexcloud server.
Does anybody knows how can I solve this problem?
Best regards,
Rafel Amer
Hello @rafel.amer
You are using different JWT headers in Document Server and Nextcloud configs. Change them so that in both configs the same value is used and then try again.