ERROR: ONLYOFFICE cant be installed: not compatible with this version of server.

Issues during installation, usage and configuring
Post Reply
RilicTheWolf
Posts: 1
Joined: Sun Dec 23, 2018 8:36 am

ERROR: ONLYOFFICE cant be installed: not compatible with this version of server.

Post by RilicTheWolf » Sun Dec 23, 2018 8:54 am

Nextcloud version : 15.0.0
Operating system and version: Ubtuntu 16.04.5 LTS
Nginx version: nginx/1.15.7
PHP version: 7.2.13

I am a user with little to no docker experience, although I know the general gist of what it is. I am currently following this tutorial on how to use docker to run both nextcloud and onlyoffice on one machine: https://medium.com/onlyoffice/deploying ... 93387cc681

However, I am getting this error when I run set_configuration.sh:
App "ONLYOFFICE" cannot be installed because it is not compatible with this version of the server.
Here is the log of when I bash the script:

Code: Select all

+ docker exec -u www-data app-server php occ --no-warnings config:system:get trusted_domains
+ grep -q app-server trusted_domain.tmp
++ cat trusted_domain.tmp
++ wc -l
+ TRUSTED_INDEX=5
+ docker exec -u www-data app-server php occ --no-warnings config:system:set trusted_domains 5 --value=nginx-server
System config value trusted_domains => 5 set to string nginx-server
+ rm trusted_domain.tmp
+ docker cp ./onlyoffice app-server:/var/www/html/apps/
+ docker exec -u www-data app-server php occ --no-warnings app:enable onlyoffice

In Installer.php line 117:

  App "ONLYOFFICE" cannot be installed because it is not compatible with this version of the server.
 

app:enable [-g|--groups GROUPS] [--] <app-id>

+ docker exec -u www-data app-server php occ --no-warnings config:system:set onlyoffice DocumentServerUrl --value=/ds-vpath/
System config value onlyoffice => DocumentServerUrl set to string /ds-vpath/
+ docker exec -u www-data app-server php occ --no-warnings config:system:set onlyoffice DocumentServerInternalUrl --value=http://onlyoffice-document-server/
System config value onlyoffice => DocumentServerInternalUrl set to string http://onlyoffice-document-server/
+ docker exec -u www-data app-server php occ --no-warnings config:system:set onlyoffice StorageUrl --value=http://nginx-server/
System config value onlyoffice => StorageUrl set to string http://nginx-server/
What is the “server version” referring to? Nginx? What version should I be using, and how would I go about downgrading/upgrading whatever is causing this error? I’m sorry if this is a dumb question, but I figured it was worth a shot.

Maxim
Posts: 1859
Joined: Tue Oct 11, 2016 2:34 pm

Re: ERROR: ONLYOFFICE cant be installed: not compatible with this version of server.

Post by Maxim » Thu Dec 27, 2018 10:08 am

Hello RilicTheWolf!
Just now i have tested this instruction on my test server with Ubuntu 16.04 and have found no errors. Docker compose file works.

Code: Select all

Creating nginx-server ...
Creating onlyoffice-document-server ...
Creating nginx-server               ... done
Creating onlyoffice-document-server ... done
Creating app-server                 ... done
root@osipov1:~/docker-onlyoffice-owncloud# bash set_configuration.sh
+ docker exec -u www-data app-server php occ --no-warnings config:system:get trusted_domains


  There are no commands defined in the "config:system" namespace.


+ grep -q app-server trusted_domain.tmp
++ wc -l
++ cat trusted_domain.tmp
+ TRUSTED_INDEX=0
+ docker exec -u www-data app-server php occ --no-warnings config:system:set trusted_domains 0 --value=nginx-server
  There are no commands defined in the "config:system" namespace.
+ rm trusted_domain.tmp
+ docker cp ./onlyoffice app-server:/var/www/html/apps/
+ docker exec -u www-data app-server php occ --no-warnings app:enable onlyoffice
  Command "app:enable" is not defined.

  Did you mean this?
      app:check-code

+ docker exec -u www-data app-server php occ --no-warnings config:system:set onlyoffice DocumentServerUrl --value=/ds-vpath/
  There are no commands defined in the "config:system" namespace.
+ docker exec -u www-data app-server php occ --no-warnings config:system:set onlyoffice DocumentServerInternalUrl --value=http://onlyoffice-document-server/
  There are no commands defined in the "config:system" namespace.
+ docker exec -u www-data app-server php occ --no-warnings config:system:set onlyoffice StorageUrl --value=http://nginx-server/
  There are no commands defined in the "config:system" namespace.
But there is no nginx installed on my server. You get after installation 3 containers with Nextcloud/Owncloud, Nginx and Document Server
docker cont.png
docker cont.png (10.82 KiB) Viewed 289 times

Post Reply