Git Product home page Git Product logo

docker-onlyoffice-owncloud's Introduction

Document Server and ownCloud Docker installation

Document Server (distributed as ONLYOFFICE Docs starting from version 6.0) and ownCloud Docker installation will install the preconfigured version of ONLYOFFICE Document Server connected to ownCloud to your server running them in Docker containers. This Docker Compose installation is only distributed for testing purposes and cannot be used in any production environment. The feature requests should be submitted to the repo https://github.com/ONLYOFFICE/onlyoffice-owncloud

Requirements

Installation

  1. Get the latest version of this repository running the command:

    git clone --recursive https://github.com/ONLYOFFICE/docker-onlyoffice-owncloud
    cd docker-onlyoffice-owncloud
    git submodule update --init --remote --recursive
    
  2. Run Docker Compose:

    Please note: the action must be performed with root rights.

    docker-compose up -d
    

    Please note: you might need to wait a couple of minutes when all the containers are up and running after the above command.

Please note: The default JWT (secret key) is enabled in ONLYOFFICE Document Server. It is recommended to specify your own secret key in the ownCloud administrative configuration and ONLYOFFICE Docs.

Now you can enter ownCloud and create a new document. It will be opened in ONLYOFFICE Document Server.

ONLYOFFICE Docs editions

Here we offer you to deploy ownCloud with preconfigured free version of ONLYOFFICE Docs (packaged as Document Server). Note that there're commercial versions of it.

ONLYOFFICE Docs:

  • Community Edition (onlyoffice-documentserver package)

  • Enterprise Edition (onlyoffice-documentserver-ee package)

The table below will help you make the right choice.

Pricing and licensing Community Edition Enterprise Edition
Get it now Start Free Trial
Cost FREE Go to the pricing page
Simultaneous connections up to 20 maximum As in chosen pricing plan
Number of users up to 20 recommended As in chosen pricing plan
License GNU AGPL v.3 Proprietary
Support Community Edition Enterprise Edition
Documentation Help Center Help Center
Standard support GitHub or paid One year support included
Premium support Buy Now Buy Now
Services Community Edition Enterprise Edition
Conversion Service + +
Document Builder Service + +
Interface Community Edition Enterprise Edition
Tabbed interface + +
Dark theme + +
150% scaling + +
White Label - -
Integrated test example (node.js) - +
Access to pro features via desktop - +
Plugins & Macros Community Edition Enterprise Edition
Plugins + +
Macros + +
Collaborative capabilities Community Edition Enterprise Edition
Two co-editing modes + +
Comments + +
Built-in chat + +
Review and tracking changes + +
Display modes of tracking changes + +
Version history + +
Document Editor features Community Edition Enterprise Edition
Font and paragraph formatting + +
Object insertion + +
Content control + +
Layout tools + +
Table of contents + +
Navigation panel + +
Mail Merge + +
Comparing Documents - +*
Spreadsheet Editor features Community Edition Enterprise Edition
Font and paragraph formatting + +
Object insertion + +
Functions, formulas, equations + +
Table templates + +
Pivot tables + +
Data validation + +
Conditional formatting for viewing +** +**
Sheet Views - +
Presentation Editor features Community Edition Enterprise Edition
Font and paragraph formatting + +
Object insertion + +
Transitions + +
Presenter mode + +
Notes + +
Get it now Start Free Trial

* It's possible to add documents for comparison from your local drive, from URL and from ownCloud storage.

** Support for all conditions and gradient. Adding/Editing capabilities are coming soon

Project Information

Official website: https://www.onlyoffice.com/

Code repository: https://github.com/ONLYOFFICE/docker-onlyoffice-owncloud

If you have any problems with or questions about ONLYOFFICE Document Server, please visit our official forum to find answers to your questions: forum.onlyoffice.com or you can ask and answer ONLYOFFICE development questions on Stack Overflow.

docker-onlyoffice-owncloud's People

Contributors

agolybev avatar alexeybannov avatar hellonadya avatar ibnpetr avatar iskandarkurbonov avatar linneys avatar shockwavenn avatar svetlana81 avatar tcuc avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

docker-onlyoffice-owncloud's Issues

problem with code integrity check

hi i got this problem an onlyoffice is not working for me

Security & setup warnings
Transactional file locking should be configured to use memory-based locking, not the default slow database-based locking. See the documentation ↗ for more information.
SQLite is used as database. For larger installations we recommend to switch to a different database backend.
Especially when using the desktop client for file syncing the use of SQLite is discouraged.
To migrate to another database use the command line tool: 'occ db:convert-type', or see the documentation ↗.
Some files have not passed the integrity check. Further information on how to resolve this issue can be found in our documentation. (List of invalid files… / Rescan…)
The "X-XSS-Protection" HTTP header is not configured to equal to "1; mode=block". This is a potential security or privacy risk and we recommend adjusting this setting.
The "X-Content-Type-Options" HTTP header is not configured to equal to "nosniff". This is a potential security or privacy risk and we recommend adjusting this setting.
The "X-Robots-Tag" HTTP header is not configured to equal to "none". This is a potential security or privacy risk and we recommend adjusting this setting.
The "X-Download-Options" HTTP header is not configured to equal to "noopen". This is a potential security or privacy risk and we recommend adjusting this setting.
The "X-Permitted-Cross-Domain-Policies" HTTP header is not configured to equal to "none". This is a potential security or privacy risk and we recommend adjusting this setting.
You are accessing this site via HTTP. We strongly suggest you configure your server to require using HTTPS instead as described in our security tips.
Please double check the installation guides ↗, and check for any errors or warnings in the log.

outdated reference to owncloud/nextcloud app

Hi,

it seems the reference to the onlyoffice owncloud app points to commit 262ce12, which is from September 2017, while the actual app has seen some development since.

This caused some trouble but the fix was quite simple, though after a lot of digging: it suffice to comment out this line:

docker cp ./onlyoffice app-server:/var/www/html/apps/

then the script goes and fetch the latest app instead of the outdated one.

Hope this helps,
thanks for the nice project !

Can't Upload files greater than 500 KB

I followed the installation and I can use OnlyOffice correctly.
However, when I upload a file relatively big it, like a Word with some images, it stills in the a few seconds loading bar.

Should I adjust any other settings? I see some other issues related with the number of workers but I don't find where I can modify it.

My machine has 6 CPU and 6GB RAM.

Thanks!

docker onlyoffice : cannot loading file larger 5MB

Hi,
My environnement :
Unbuntu 16.04 TLS
PHP7/Nginx
Nextcloud 16
onlyoffice/documentserver last docker version
Installation guide from https://riegers.in/nextcloud-and-only-office-nginx/

The problem appears for files larger than 5MB.

Here is the out.log
==> /var/log/onlyoffice/documentserver/converter/out.log <==
[2020-03-24T08:28:12.961] [ERROR] nodeJS - error downloadFile:url=https://MYURL/apps/onlyoffice/download?doc=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJmaWxlSWQiOjQ0MDk0NCwidXNlcklkIjoib2xpdmllci5wcmFkaWVyIiwic2hhcmVUb2tlbiI6bnVsbCwiYWN0aW9uIjoiZG93bmxvYWQifQ.GYRae6RvXNCRDjacKQ4DZEsl68BAD8wke42CtRbtNnk;attempt=1;code:ESOCKETTIMEDOUT;connect:false;(id=2550348282)
Error: ESOCKETTIMEDOUT
at ClientRequest. (/snapshot/server/build/server/Common/node_modules/request/request.js:816:19)
at Object.onceWrapper (events.js:286:20)
at ClientRequest.emit (events.js:198:13)
at TLSSocket.emitRequestTimeout (_http_client.js:662:40)
at Object.onceWrapper (events.js:286:20)
at TLSSocket.emit (events.js:198:13)
at TLSSocket.Socket._onTimeout (net.js:443:8)
at ontimeout (timers.js:436:11)
at tryOnTimeout (timers.js:300:5)
at listOnTimeout (timers.js:263:5)
at Timer.processTimers (timers.js:223:10)

A little help ?
Thanks !

Returns 500 301

Hello, i installed this repository on my pc with internet connection enabled, almost everything went fine (except it refused to connect to my pg database), saved images and app_data, transferred 'em to a close network server, loaded images, and ported volumes to a server directories (with contents, copied earlier). As i docker-compose up -d this repo, it turns up and running, but as i enter the homepage in browser, it returns an internal server error. i can see 500 301 in nginx log and just 500 in app_server log. Can i use some help, solving this one?

HTTPS refused to connect and MySQL can't be used #250

Ubuntu 18.04 (fresh, only OpenSSH)

Next, follow blindly the tutorial. And docker mysql, createdb cloud

Use SQLite instead of MySQL. This happens when I tried to use MySQL

failed to connect to the database: an exception occured in driver: sqlstate [hy000] [2002] no such file or directory

End of the result. HTTP responds (on IE only. Google Chrome redirect it to HTTPS but since it does not work, it refused to connect), HTTPS refused to connect (OnlyOffice works)

In short,
I am frustated, this is as far as I can to install ownCloud w/ ONLYOFFICE on the same machine. Manual installation does not work (at first it worked, install the ownCloud, MySQL w/ no problem, install ONLYOFFICE Document Server, ownCloud broke, I am confused).

I can not edit /var/www/owncloud/config/config.php and et cetera (it does not exist). The tutorial become useless.

EDIT
This is supposed to be docker-owncloud-onlyoffice issue

I am not able to see the onlyoffice options in main menu

Hi @LinneyS,

I restart the dockers and rerun the $ sudo bash set_configuration.sh

But I am not able to see again the docs on the menu.

I shared here some images in order to help.

1ª) Trying to create a new document writer
only-office_001

2ª) Some errors showed on backend
only-office_002

3ª) Apps Management
only-office_003

4ª) Market
only-office_004

Thanks in advance

Unknown error: Press "OK" to return to document list.

Hi, someone know how fix it?

I'm using traefik as loadbalancer, here an capture and my docker-compose.yml file:

log

## document server (/var/log/onlyoffice/documentserver/nginx.error.log)
2017/11/11 14:11:56 [crit] 407#0: *108 connect() to [::1]:8080 failed (99: Cannot assign requested address) while connecting to upstream, client: 172.19.0.3, server: , request: "GET /2017-10-28-08-40/spellchecker/doc/95_1510408155/c/info?t=1510409516194 HTTP/1.1", upstream: "http://[::1]:8080/doc/95_1510408155/c/info", host: "demo.nextcloud.com", referrer: "https://demo.nextcloud.com/ds-vpath/2017-10-28-08-40/web-apps/apps/documenteditor/main/index.html?_dc=2017-10-28-08-40&lang=en&customer=ONLYOFFICE&frameEditorId=iframeEditor"

if I try do or change something on the admin area, get this message:

Error when trying to connect (Mixed Active Content is not allowed. HTTPS address for Document Server is required.) Nextcloud Search Basic settings Monitoring Sharing Security Theming Encryption Workflow Activity Usage survey Logging Additional settings Tips & tricks

screenshot from 2017-11-11 13-53-05

version: "3"

networks:
  proxy:
    external: true
  internal:
    external: false

volumes:
  document_data:
  document_log:
  app_data:
  nextcloud-db-data:

services:
  app:
    restart: always
    container_name: app-server
    image: nextcloud:fpm
    stdin_open: true
    tty: true
    expose:
      - '80'
      - '9000'
    networks:
      - onlyoffice
    volumes:
      - app_data:/var/www/html
    networks:
      - proxy
      - internal
    labels:
      - traefik.enable=false

  onlyoffice-document-server:
    restart: always
    container_name: onlyoffice-document-server
    image: onlyoffice/documentserver:latest
    stdin_open: true
    tty: true
    networks:
      - onlyoffice
    expose:
      - '80'
      - '443'
    volumes:
      - document_data:/var/www/onlyoffice/Data
      - document_log:/var/log/onlyoffice
    networks:
      - proxy
      - internal
    labels:
      - traefik.docker.network=proxy

  nextcloud-db:
    image: postgres
    volumes:
      - nextcloud-db-data:/var/lib/postgresql/data
    environment:
      - POSTGRES_USER=nextcloud
      - POSTGRES_PASSWORD=nextcloud
      - POSTGRES_DB=nextcloud
      - POSTGRES_HOST=nextcloud-db
    networks:
      - internal
    labels:
      - traefik.enable=false

  nginx:
    restart: always
    container_name: nginx-server
    image: nginx
    stdin_open: true
    tty: true
    expose:
    - '80'
    - '443'
    volumes:
      - ./nginx.conf:/etc/nginx/nginx.conf
      - app_data:/var/www/html
    labels:
      - traefik.backend=demo.nextcloud.com
      - traefik.frontend.rule=Host:demo.nextcloud.com
      - traefik.docker.network=proxy
    networks:
      - internal
      - proxy

Error opening files after Update >5.1.0.115

Hi folks,

after updating to the newest ONLYOFFICE docker image available I can't open files in nextcloud anymore. When opening a file this message pops up after several ten seconds.
oo

My script to start the container (not using compose obviously) is this, where I just edited the version number. The default.json is unchanged.

docker create -t --rm --name nextcloud-oo \
        -v <path>/default.json:/etc/onlyoffice/documentserver/default.json \
        --network nextcloud \
        onlyoffice/documentserver:5.1.3.35

The logs in /var/log/onlyoffice/documentserver/ show this error message.

Error: Configuration property "editor" is not defined
    at Object.Config.get (/var/www/onlyoffice/documentserver/server/DocService/node_modules/config/lib/config.js:202:11)
    at Object.<anonymous> (/var/www/onlyoffice/documentserver/server/DocService/sources/DocsCoServer.js:40:50)
    at Module._compile (module.js:577:32)
    at Object.Module._extensions..js (module.js:586:10)
    at Module.load (module.js:494:32)
    at tryModuleLoad (module.js:453:12)
    at Function.Module._load (module.js:445:3)
    at Module.require (module.js:504:17)
    at require (internal/module.js:20:19)
    at Object.<anonymous> (/var/www/onlyoffice/documentserver/server/DocService/sources/gc.js:17:20)
/var/www/onlyoffice/documentserver/server/DocService/node_modules/config/lib/config.js:202
    throw new Error('Configuration property "' + property + '" is not defined');
    ^

Nextcloud v13.0.0
Nextcloud ONLYOFFICE app v1.3.0
Last working ONLYOFFICE docker image 5.1.0.115
Non-working ONLYOFFICE docker images 5.1.1.23 5.1.2.9 5.1.3.35

Need any further details?

Error while downloading the document file to be converted.

I've installed owncloud, and run Docker image ONLYOFFICE
I got correct https://my.owncloud.host:docker-port/welcome/
but when I try set onlyoffice settings in owncloud panel, I got "Error while downloading the document file to be converted."
I search about 6 hours this problem, and make all advises but it still do not work
And I see that inside container I can't resolve owncloud host
wget: unable to resolve host address ‘my.owncloud.host’
I'm using one SSL Let'sEncrypt serts on both
Running docker image by
docker run -i -t -d -p 8443:443 -v /app/onlyoffice/DocumentServer/data:/var/www/onlyoffice/Data onlyoffice/documentserver
enabled SSL3 in docker

root@d54f96f3bd8c:/# openssl s_client -ssl3 -connect 172.17.0.2:443
139969868351128:error:140A90C4:SSL routines:SSL_CTX_new:null ssl method passed:ssl_lib.c:1878:

set up
'onlyoffice' => array ( 'verify_peer_off' => true, ),
in the owncloud config
and
"rejectUnauthorized": false
in /etc/onlyoffice/documentserver/default.json

How to restrict access to specific domain name with SSL certificate

Hey Dev. Team,

Awesome trick you've done there with this collection! However, I wish to ask for help or a HOWTO.

  • I have two domains set to redirect to my VPS (cloud.mycompany.com and docs.mycompany.com)
  • I have SSL certificate for my domain name. Where can I set the document server and community-server to use the SSL certificate?
  • I find it a bit worrying that the IP address of my VPS is accessible by the HTTP and HTTPS ports. How can I modify the docker-compose.yml to deny all access to the server except coming from the URLs redirected to this server?

unable to connect

log

2018-09-17 17:39:37 [minion@hqs006 docker-onlyoffice-owncloud]$ docker logs 663b94b383f0
2018/09/17 09:32:07 [emerg] 1#1: host not found in upstream "onlyoffice-document-server" in /etc/nginx/nginx.conf:93
nginx: [emerg] host not found in upstream "onlyoffice-document-server" in /etc/nginx/nginx.conf:93
2018-09-17 17:40:07 [minion@hqs006 docker-onlyoffice-owncloud]$ 

but I can ping the onlyoffice-document-server inside the container

2018-09-17 17:44:51 [minion@hqs006 docker-onlyoffice-owncloud]$ docker exec -it 663b94b383f0 /bin/bash
root@663b94b383f0:/# ping onlyoffice-document-server
PING onlyoffice-document-server (172.19.0.4) 56(84) bytes of data.
64 bytes from onlyoffice-document-server.dockeronlyofficeowncloud_onlyoffice (172.19.0.4): icmp_seq=1 ttl=64 time=0.048 ms
64 bytes from onlyoffice-document-server.dockeronlyofficeowncloud_onlyoffice (172.19.0.4): icmp_seq=2 ttl=64 time=0.068 ms
^C
--- onlyoffice-document-server ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 1026ms
rtt min/avg/max/mdev = 0.048/0.058/0.068/0.010 ms
root@663b94b383f0:/# 

any suggestions ?

No access to OlyOffice functions

I am new to the Docker world (and Linux) so apologies if I am being stupid. Please be patient.

I have installed the docker-onlyoffice-owncloud image on a RHEL 7.3 docker host.
There had been an onlyoffice developer container previously, which was not started.
No issues during install.

I changed none of the configuration files.
When I went to webpage, I created a user/password for admin, took all defaults SQLLite etc.

I ran the set_configuration.sh . It reports:

  • docker cp ./onlyoffice app-server:/var/www/html/apps/
    lstat /home/rmaynard/apps/ownonly/onlyoffice: no such file or directory

When I browse to site, I see a working owncloud site, but no access or reference to OnlyOffice.
What have I done wrong? A docker ps shows:

CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
8e29248b18e3 nginx "nginx -g 'daemon ofâ¦" 41 minutes ago Up 40 minutes 0.0.0.0:80->80/tcp, 0.0.0.0:443->443/tcp nginx-server
25fa20efb8bc onlyoffice/documentserver:latest "/bin/sh -c 'bash -Câ¦" 41 minutes ago Up 40 minutes 80/tcp, 443/tcp onlyoffice-document-server
d433518ac4fd owncloud:fpm "docker-entrypoint.sâ¦" 41 minutes ago Up 41 minutes 80/tcp, 9000/tcp app-server

Cannot login

After installation's login screen: cannot enter any user or set a password nor does the initial credential works. Simply: the login screen appears and that's it.

OnlyOffice stops saving the update of document back to NextCloud

Problem: OnlyOffice does not save the update of document back to NextCloud.
The update content of document are still in OnlyOffice. When open the document again the update contents are in OnlyOffice Editor.

Please kindly help on this problem. In case of any configs, logs or info required, please feel free to let me know.

Cannot saved documents with HTTPS setup

Hi,
I deployed the latest image (with NextCloud) and modified the setup to get HTTPS but since then the documents cannot be saved.
screenshot from 2018-08-09 16-41-08
Not really sure what can cause this but I think it's my Nginx configuration as follows:
`user www-data;
worker_processes 1;

error_log /var/log/nginx/error.log warn;
pid /var/run/nginx.pid;

events {
worker_connections 1024;
}

http {

upstream backend {
  server nextcloud:9000;
}


include       /etc/nginx/mime.types;
default_type  application/octet-stream;

log_format  main  '$remote_addr - $remote_user [$time_local] "$request" '
                  '$status $body_bytes_sent "$http_referer" '
                  '"$http_user_agent" "$http_x_forwarded_for"';

access_log  /var/log/nginx/access.log  main;

sendfile        on;
#tcp_nopush     on;

keepalive_timeout  65;

map $http_host $this_host {
    "" $host;
    default $http_host;
}

map $http_x_forwarded_proto $the_scheme {
    default $http_x_forwarded_proto;
    "" $scheme;
}

map $http_x_forwarded_host $the_host {
   default $http_x_forwarded_host;
   "" $this_host;
}

server {
listen 80;
    server_name cloud.mycompany.com;
    return 301 https://$server_name$request_uri;
}

server {

    listen 443 ssl http2;
    #listen [::]:443 ssl http2;
    server_name cloud.mycompany.com;

    ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
    ssl_prefer_server_ciphers on;
    ssl_ciphers "EECDH+AESGCM:EDH+AESGCM:ECDHE-RSA-AES128-GCM-SHA256:AES256+EECDH:DHE-RSA-AES128-GCM-SHA256:AES256+EDH:ECDHE-RSA-AES256-GCM-SHA384:DHE-RSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-SHA384:ECDHE-RSA-AES128-SHA256:ECDHE-RSA-AES256-SHA:ECDHE-RSA-AES128-SHA:DHE-RSA-AES256-SHA256:DHE-RSA-AES128-SHA256:DHE-RSA-AES256-SHA:DHE-RSA-AES128-SHA:ECDHE-RSA-DES-CBC3-SHA:EDH-RSA-DES-CBC3-SHA:AES256-GCM-SHA384:AES128-GCM-SHA256:AES256-SHA256:AES128-SHA256:AES256-SHA:AES128-SHA:DES-CBC3-SHA:HIGH:!aNULL:!eNULL:!EXPORT:!DES:!MD5:!PSK:!RC4";

    ssl_certificate /etc/nginx/certs/mycompany.cert;
    ssl_certificate_key /etc/nginx/certs/mycompany.key;

    # Add headers to serve security related headers
    add_header Strict-Transport-Security "max-age=15768000; includeSubDomains; preload;";
    add_header X-Content-Type-Options nosniff;
    add_header X-XSS-Protection "1; mode=block";
    add_header X-Robots-Tag none;
    add_header X-Download-Options noopen;
    add_header X-Permitted-Cross-Domain-Policies none;

    root /var/www/html;
    client_max_body_size 10G; # 0=unlimited - set max upload size
    fastcgi_buffers 64 4K;

    gzip off;

    index index.php;
    error_page 403 /core/templates/403.php;
    error_page 404 /core/templates/404.php;

    rewrite ^/.well-known/carddav /remote.php/dav/ permanent;
    rewrite ^/.well-known/caldav /remote.php/dav/ permanent;

    location = /robots.txt {
        allow all;
        log_not_found off;
        access_log off;
    }

    location ~ ^/(build|tests|config|lib|3rdparty|templates|data)/ {
        deny all;
    }

    location ~ ^/(?:\.|autotest|occ|issue|indie|db_|console) {
        deny all;
    }

    location / {
        rewrite ^/remote/(.*) /remote.php last;
        rewrite ^(/core/doc/[^\/]+/)$ $1/index.html;
        try_files $uri $uri/ =404;
    }

location ~* ^/ds-vpath/ {
	rewrite /ds-vpath/(.*) /$1  break;
            proxy_pass http://onlyoffice-document-server;
            proxy_redirect     off;

            client_max_body_size 100m;

            proxy_http_version 1.1;
            proxy_set_header Upgrade $http_upgrade;
            proxy_set_header Connection "upgrade";

            proxy_set_header Host $http_host;
            proxy_set_header X-Real-IP $remote_addr;
            proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
            proxy_set_header X-Forwarded-Host $the_host/ds-vpath;
            proxy_set_header X-Forwarded-Proto $the_scheme;
    }

    location ~ \.php(?:$|/) {
        fastcgi_split_path_info ^(.+\.php)(/.+)$;
        include fastcgi_params;
        fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
        fastcgi_param PATH_INFO $fastcgi_path_info;
        fastcgi_param HTTPS off;
        fastcgi_param modHeadersAvailable true; #Avoid sending the security headers twice
        fastcgi_pass backend;
        fastcgi_intercept_errors on;
    }

    # Adding the cache control header for js and css files
    # Make sure it is BELOW the location ~ \.php(?:$|/) { block
    location ~* \.(?:css|js)$ {
        add_header Cache-Control "public, max-age=7200";
        # Add headers to serve security related headers
        add_header Strict-Transport-Security "max-age=15768000; includeSubDomains; preload;";
        add_header X-Content-Type-Options nosniff;
        add_header X-Frame-Options "SAMEORIGIN";
        add_header X-XSS-Protection "1; mode=block";
        add_header X-Robots-Tag none;
        add_header X-Download-Options noopen;
        add_header X-Permitted-Cross-Domain-Policies none;
        # Optional: Don't log access to assets
        access_log off;
    }

    # Optional: Don't log access to other assets
    location ~* \.(?:jpg|jpeg|gif|bmp|ico|png|swf)$ {
        access_log off;
    }

}

}
`
Furthermore here the logs I'm getting when opening and closing an OnlyOffice document. Regarding the fact I'm getting some 301 code I think it's, even more, a lead towards Nginx
dockers.log

Any advice is more than welcome.

Thanks a lot in advance

Data lost and account is clear.

Do you want to request a feature or report a bug?

bug

What is the current behavior?

I have run https://github.com/ONLYOFFICE/docker-onlyoffice-owncloud by docker-compose for some weeks, but today I found can not login with my account and admin's password be reset to admin after I docker-compose stop and up again.

docker inspect onlyoffice-document-server can found postgresql and redis 's volumes changed, because I backup this command's output yestoday. Now, volume changed, I think this is the reason of system is reset.

And there is nothing in container's path /var/www/onlyoffice/Data.

If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem.

What is the expected behavior?

How to take back my account and files? The volume may not be the key reason, and what should to do now?

Did this work in previous versions of DocumentServer?

DocumentServer Docker tag:

7.4.0

Host Operating System:

Ubuntu 20.04

how to achieve reverse proxy access

hi,i have set up the docker compose server and word fine.
now ,this pc is a LAN ,i want to setup a revers proxy server for internet access. the nextcloud is worked ,but only will display errors.

how can i do?

App cannot be enabled

After starting up the setup I want to activate the onlyoffice connector which is saying

This app has no minimum Nextcloud version assigned. This will be an error in the future.
This app has no maximum Nextcloud version assigned. This will be an error in the future.
This app cannot be installed because the following dependencies are not fulfilled:
Server version 10 or lower is required.

This leaves the enable button inactive.

docker-compose currenty uses nextcloud v15 and onlyoffice v5.2.6.3.

Any ideas?

The document could not be saved.

The document could not be saved.
Please check your connection settings or contact your administrator. When you click the OK button, you will be prompted to download the document. Find more information about the Document Server connection.

docker_error_002

What do I need to do?

You are accessing the server from an insecure domain.

You are accessing the server from an insecure domain.
Contact your administrator. If you are the administrator, configure "trusted_domains" in config / config.php. In config / config.sample.php you will find an example for the configuration.

My public IP is: http://193.145.246.20/

docker_config_001

docker_config_003

What do you think it is the best way to do it working well?

Thanks and best regards

Error when configuring the OnlyOffice application in NC13.0.2

Have a fresh install with this docker (fllowed this instructions https://www.linuxbabe.com/docker/onlyoffice-nextcloud-integration-docker

Onlyoffice is already activated when I open Nextcloud. But cannot open a document. There is no icon for opening a document with Onlyoffoce.

I edit the configuration as below:
Document Editing Service address -> https://cloud.korskyrkan-intra.se/ds-vpath/
Document Editing Service address for internal requests from the server -> http://onlyoffice-document-server/
Server address for internal requests from the Document Editing Service -> http://nginx-server/

When saving I get an error. In the log is this error.

Error | onlyoffice | CommandRequest on check error: Error occurred in the document service: Error while downloading the document file to be converted.

Wrong IP on the docker network?

Hello folks,

I have nextcloud:fpm intalled and working fine, using this tutorial until yesterday.
I have all settings persisting for days... nothing was changed, and nothing was lost after reboots...
But yesterday... after a reboot on my server, the application stops to work.

Everything seems to be up... all containers is UP and RUNNING.
But I cant open the web page anymore. Now I got Blank page or Error 503.

Inspecting my docker network with this command: docker network inspect dockeronlyofficeowncloud_onlyoffice I got this output:
{ "Name": "dockeronlyofficeowncloud_onlyoffice", "Id": "6839de04c851522862b5de3de4b9faa5bad2f32817bcc1ccc5156a7a35f9ce5a", "Created": "2018-01-20T15:22:04.206775461Z", "Scope": "local", "Driver": "bridge", "EnableIPv6": false, "IPAM": { "Driver": "default", "Options": null, "Config": [ { "Subnet": "172.18.0.0/16", "Gateway": "172.18.0.1" } ] }, "Internal": false, "Attachable": true, "Ingress": false, "ConfigFrom": { "Network": "" }, "ConfigOnly": false, "Containers": { "01a08986a2748f3196d922cec5c66fbb169151ca69c57d03948d04b85d582f67": { "Name": "mariadb-server", "EndpointID": "4551ce4fa1e0a800ec7ebb97b9f8905eeaa5d37c79b92e6023d4ae94f165eda4", "MacAddress": "02:42:ac:12:00:03", "IPv4Address": "172.18.0.3/16", "IPv6Address": "" }, "0943940a0e2c9cf4d22e432bd66d1ae61c75e9ebd435cefe479e241e42408a41": { "Name": "onlyoffice-document-server", "EndpointID": "bb2045a87d3b12cd0643424a636dc8b6161c182cbb0b6338de5c80e4c57e5894", "MacAddress": "02:42:ac:12:00:05", "IPv4Address": "172.18.0.5/16", "IPv6Address": "" }, "582bf6226052f8aba0096380e4b394bdeb35c22ec5c40960c3b649d57dd4e2b3": { "Name": "nginx-server", "EndpointID": "96d93f70b05cb5f0a0fccf57050afcfd5330a6b425305441938e573e760c7f4e", "MacAddress": "02:42:ac:12:00:02", "IPv4Address": "172.18.0.2/16", "IPv6Address": "" }, "5f57cdd4e651acad6bf00932b775afa66f0af6b878c318fdfe7b4f8f91f47a69": { "Name": "app-server", "EndpointID": "64181f61d8debdcbd202d6083d74aeb3c3f0b56edd1907ddd8d3454dbb9c6cfe", "MacAddress": "02:42:ac:12:00:04", "IPv4Address": "172.18.0.4/16", "IPv6Address": "" } }, "Options": {}, "Labels": { "com.docker.compose.network": "onlyoffice", "com.docker.compose.project": "dockeronlyofficeowncloud" } }

And inspecting my app-server container I have:
`[root@4cloud docker-onlyoffice-owncloud]# docker logs app-server
Cannot write into "config" directory!
This can usually be fixed by giving the webserver write access to the config directory

See https://docs.nextcloud.com/server/12/go.php?to=admin-dir_permissions
The following apps have beed disabled:
[26-Jan-2018 12:11:05] NOTICE: fpm is running, pid 1
[26-Jan-2018 12:11:05] NOTICE: ready to handle connections
172.18.0.2 - 26/Jan/2018:12:11:33 +0000 "GET /index.php" 503
172.18.0.2 - 26/Jan/2018:12:11:35 +0000 "GET /index.php" 503
172.18.0.2 - 26/Jan/2018:12:18:06 +0000 "GET /index.php" 503
172.18.0.2 - 26/Jan/2018:12:30:34 +0000 "OPTIONS /remote.php" 500
172.18.0.2 - 26/Jan/2018:12:30:34 +0000 "PROPFIND /remote.php" 200
172.18.0.2 - 26/Jan/2018:12:30:35 +0000 "OPTIONS /remote.php" 500
172.18.0.2 - 26/Jan/2018:12:51:23 +0000 "GET /index.php" 503
172.18.0.2 - 26/Jan/2018:13:11:50 +0000 "OPTIONS /remote.php" 500
172.18.0.2 - 26/Jan/2018:13:11:50 +0000 "PROPFIND /remote.php" 200
172.18.0.2 - 26/Jan/2018:13:11:50 +0000 "OPTIONS /remote.php" 500
172.18.0.2 - 26/Jan/2018:13:14:33 +0000 "GET /core/templates/404.php" 200
172.18.0.2 - 26/Jan/2018:13:33:56 +0000 "GET /index.php" 503
172.18.0.2 - 26/Jan/2018:13:34:31 +0000 "GET /index.php" 503
172.18.0.2 - 26/Jan/2018:13:34:35 +0000 "GET /index.php" 503
172.18.0.2 - 26/Jan/2018:14:00:55 +0000 "OPTIONS /remote.php" 500
172.18.0.2 - 26/Jan/2018:14:00:55 +0000 "PROPFIND /remote.php" 200
172.18.0.2 - 26/Jan/2018:14:00:56 +0000 "OPTIONS /remote.php" 500
172.18.0.2 - 26/Jan/2018:14:06:13 +0000 "GET /remote.php" 500
172.18.0.2 - 26/Jan/2018:14:36:28 +0000 "GET /index.php" 503
172.18.0.2 - 26/Jan/2018:14:36:32 +0000 "GET /index.php" 503
172.18.0.2 - 26/Jan/2018:15:11:00 +0000 "GET /core/templates/404.php" 200
172.18.0.2 - 26/Jan/2018:15:49:27 +0000 "GET /index.php" 503
172.18.0.2 - 26/Jan/2018:15:51:27 +0000 "POST /azenv.php" 404
172.18.0.2 - 26/Jan/2018:15:51:27 +0000 "GET /core/templates/404.php" 200
172.18.0.2 - 26/Jan/2018:16:40:20 +0000 "OPTIONS /remote.php" 500
172.18.0.2 - 26/Jan/2018:16:40:20 +0000 "PROPFIND /remote.php" 200
172.18.0.2 - 26/Jan/2018:16:40:20 +0000 "OPTIONS /remote.php" 500
172.18.0.2 - 26/Jan/2018:17:21:42 +0000 "OPTIONS /remote.php" 500
172.18.0.2 - 26/Jan/2018:17:21:42 +0000 "PROPFIND /remote.php" 200
172.18.0.2 - 26/Jan/2018:17:21:43 +0000 "OPTIONS /remote.php" 500
172.18.0.2 - 26/Jan/2018:17:33:42 +0000 "GET /index.php" 503
172.18.0.2 - 26/Jan/2018:17:59:50 +0000 "OPTIONS /remote.php" 500
172.18.0.2 - 26/Jan/2018:17:59:50 +0000 "PROPFIND /remote.php" 200
172.18.0.2 - 26/Jan/2018:17:59:50 +0000 "OPTIONS /remote.php" 500
172.18.0.2 - 26/Jan/2018:18:01:27 +0000 "GET /index.php" 503
172.18.0.2 - 26/Jan/2018:18:08:04 +0000 "GET /index.php" 503
[root@4cloud docker-onlyoffice-owncloud]#

`
I really cant figure out why its stop working...
How can I get some elucidation on this case?

Error when trying to connect (Mixed Active Content is not allowed. HTTPS address for Document Server is required.)

Hi,
I have the same problem with the same config as: #11
I'm using traefik as loadbalancer.
If I leave the default configuration of ONLYOFFICE, I have no problem. But if I want to change the configuration, for example, if I check "open file in the same tab", I have the error :
Error when trying to connect (Mixed Active Content is not allowed. HTTPS address for Document Server is required.) And Onlyoffice does not work anymore.

Here are my config file:

`
version: "3"

networks:
proxy:
external: true
internal:
external: false

volumes:
document_data:
document_log:
app_data:
nextcloud-db-data:

services:
app:
restart: always
container_name: app-server
image: nextcloud:fpm
stdin_open: true
tty: true
expose:
- '80'
- '9000'
networks:
- onlyoffice
volumes:
- app_data:/var/www/html
networks:
- proxy
- internal
labels:
- traefik.enable=false

onlyoffice-document-server:
restart: always
container_name: onlyoffice-document-server
image: onlyoffice/documentserver:latest
stdin_open: true
tty: true
networks:
- onlyoffice
expose:
- '80'
- '443'
volumes:
- document_data:/var/www/onlyoffice/Data
- document_log:/var/log/onlyoffice
networks:
- proxy
- internal
labels:
- traefik.docker.network=proxy

nextcloud-db:
image: mariadb
restart: always
container_name: db_netxcloud
volumes:
- nextcloud-db-data:/var/lib/mysql
environment:
- MYSQL_ROOT_PASSWORD=xxx
- MYSQL_PASSWORD=xxx
- MYSQL_DATABASE=xxx
- MYSQL_USER=xxx
networks:
- internal
labels:
- traefik.enable=false

nginx:
restart: always
container_name: nginx-server
image: nginx
stdin_open: true
tty: true
expose:
- '80'
- '443'
volumes:
- ./nginx.conf:/etc/nginx/nginx.conf
- app_data:/var/www/html
labels:
- traefik.backend=test.example.com
- traefik.frontend.rule=Host:test.example.com
- traefik.docker.network=proxy
networks:
- internal
- proxy

`
2018-03-29_21h02_22

PostgreSQL usage unavailable

Hello, i try to use an option of postgresql as i set up an admin account, but an application returns "unable to connect". Of course i installed DBeaver and connected to my localhost successfully... what am i doing wrong while installation, or maybe there's a problem in my docker-compose file? but i'm sure to download it from this repository... i attach some screenshots to show what i get from this situation
Screenshot from 2020-03-26 21-22-00
screenshot_1
screenshot_2

add_header conflicts with owncloud

Hello. There is a nginx.conf file where multiple add_header options are set in server block. So these settings apply to both location /, which are intended to proxy to the owncloud service, and location ~* ^/ds-vpath/ for the onlyoffice server.
With this configuration of owncloud, under General "Security & setup warnings" a warning appears saying that with these headers there is a "potential security or privacy risk". (Screenshot attached)
Maybe add_header settings should be moved inside location ~* ^/ds-vpath/?

Like this

        location ~* ^/ds-vpath/ {
            add_header X-Content-Type-Options nosniff;
            add_header X-XSS-Protection "1; mode=block";
            add_header X-Robots-Tag none;
            add_header X-Download-Options noopen;
            add_header X-Permitted-Cross-Domain-Policies none;
            
            rewrite /ds-vpath/(.*) /$1 break;
            proxy_pass http://onlyoffice-document-server;
            proxy_redirect off;

            client_max_body_size 100m;

            proxy_http_version 1.1;
            proxy_set_header Upgrade $http_upgrade;
            proxy_set_header Connection "upgrade";

            proxy_set_header Host $http_host;
            proxy_set_header X-Real-IP $remote_addr;
            proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
            proxy_set_header X-Forwarded-Host $the_host/ds-vpath;
            proxy_set_header X-Forwarded-Proto $the_scheme;
        }

Owncloud version is 10.12.1.3
Onlyoffice version is current latest

Screenshot 2023-05-19 at 00 49 57

Error occured with (u version 10 or lower is required.)when I run the project。

the onlyoffice pulgin cannot be statrted, the following question is:

该应用没有指定支持的 Nextcloud 最低版本。可能会在将来出现问题。
该应用没有指定支持的 Nextcloud 最高版本。可能会在将来出现问题。
无法安装应用,因为无法满足下列依赖:
Server version 10 or lower is required.
ONLYOFFICE connector enables you to edit Office documents within ONLYOFFICE from the familiar web interface. This will create a new Open in ONLYOFFICE action within the document library for Office documents. This allows multiple users to collaborate in real time and to save back those changes to your file storage.

please help me, thank you very much.

onlyoffice not found

i publish in docker-compose,and has run run.sh.but when execute app:enable onlyoffice. return
onlyoffice not found
please help me

Unable to download

OS: Ubuntu 18.04 LTS
Docker version 18.06.1-ce, build e68fc7a
Docker-Compose 1.22.0

The download always stalls when pulling from library/nextcloud, specifically 97bfe05c49ae. It always stalls at ~20% mark.

I can pull the regular nextcloud and other docker libraries fine individually, the issue only happens when trying to start the containers from the *.yml file.

I have tried the instructions on Ubuntu 16.04, and it works fine.

PS. This issue also only happens when using an AWS lightsail instance (Sydney). It downloads fine from my Linode.

a

Issue with trusted domains while running the example

I am attempting to run the example exactly like suggested in the Readme. However, the trusted_domains security feature of ownCloud seems to prevent it from working.

Fistly, I cannot access ownCloud at all after starting. I added

    environment:
      - OWNCLOUD_TRUSTED_DOMAINS=localhost

to the docker-compose.yml and that helped. I was under the impression that localhost ist trusted by default.

But then, opening documents in OnlyOffice does not work. It fails with "Download Failed".

In the log, I see errors like this:

onlyoffice-document-server  | [2022-11-08T08:08:10.739] [ERROR] [localhost] [conv_3048841145_jpeg] [userId] nodeJS - error downloadFile:url=http://nginx-server/apps/onlyoffice/download?doc=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJhY3Rpb24iOiJkb3dubG9hZCIsImZpbGVJZCI6MTUsInVzZXJJZCI6ImFkbWluIn0.Xts--kEsipbC1Db_ibBx-t_Pd1GYF9ITs0RprOgtUpE;attempt=1;code:undefined;connect:undefined Error: Error response: statusCode:400; headers:{"server":"nginx/1.23.2","date":"Tue, 08 Nov 2022 08:08:10 GMT","content-type":"text/html; charset=UTF-8","content-length":"6764","connection":"keep-alive","x-content-type-options":"nosniff","x-xss-protection":"0","x-robots-tag":"none","x-frame-options":"SAMEORIGIN","x-download-options":"noopen","x-permitted-cross-domain-policies":"none","set-cookie":["ocpjuaeyq9a1=kggiu4g2m853166ohvfe6msc0h; path=/; HttpOnly; SameSite=Strict","oc_sessionPassphrase=cXZ7D34qIbi1f14BPjH8fHmgQnunNmWnMolB3dvavLF7jaw4xnpGIgzxQuCvpNIThhzoQJyLHFx40mXnLAJbVJ4qVV7HMOmbqJ3yAXkyxpBplXZ%2BH7uH70LHncnvTcTN; expires=Tue, 08-Nov-2022 08:28:10 GMT; Max-Age=1200; path=/; HttpOnly; SameSite=Strict"],"expires":"Thu, 19 Nov 1981 08:52:00 GMT","cache-control":"no-store, no-cache, must-revalidate","pragma":"no-cache","content-security-policy":"default-src 'self'; script-src 'self' 'unsafe-eval'; style-src 'self' 'unsafe-inline'; frame-src *; img-src * data: blob:; font-src 'self' data:; media-src *; connect-src *","status":"400 Bad Request"};

and this:

app-server                  | 172.21.0.3 - - [08/Nov/2022:08:08:10 +0000] "GET /apps/onlyoffice/download?doc=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJhY3Rpb24iOiJkb3dubG9hZCIsImZpbGVJZCI6MTUsInVzZXJJZCI6ImFkbWluIn0.Xts--kEsipbC1Db_ibBx-t_Pd1GYF9ITs0RprOgtUpE HTTP/1.0" 400 7773 "-" "Node.js/6.13"

I suspect that the problem is again the trusted domains setting. I tried the download from my browser (http://localhost/apps/onlyoffice/download?doc=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJhY3Rpb24iOiJkb3dubG9hZCIsImZpbGVJZCI6MTUsInVzZXJJZCI6ImFkbWluIn0.Xts--kEsipbC1Db_ibBx-t_Pd1GYF9ITs0RprOgtUpE) and that was successful, I got the file. Then I tried the download from within the OnlyOffice container using curl -v http://app-server:8080/apps/onlyoffice/download?doc=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJhY3Rpb24iOiJkb3dubG9hZCIsImZpbGVJZCI6MTUsInVzZXJJZCI6ImFkbWluIn0.Xts--kEsipbC1Db_ibBx-t_Pd1GYF9ITs0RprOgtUpE. It failed with error 400 and I am getting the page containing "You are accessing the server from an untrusted domain.".

So, now I tried adding the name of the OnlyOffice container to the trusted domains like this:

    environment:
      - OWNCLOUD_TRUSTED_DOMAINS=localhost,onlyoffice-document-server

Unfortunately, that made no difference, same errors.

Now I don't know how to proceed. Any help would be appreciated!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.