ONLYOFFICE / onlyoffice-nextcloud

The app which enables the users to edit office documents from Nextcloud using ONLYOFFICE Document Server, allows multiple users to collaborate in real time and to save back those changes to Nextcloud
GNU Affero General Public License v3.0
568 stars 161 forks source link

Healthcheck Request: 400 Bad Request #632

Open lucyferu opened 2 years ago

lucyferu commented 2 years ago

literally having sameissue as #125 with the difference that when i access the healthcheck through browser i receive the same 400 Bad Request as when try to sync with nextcloud.

SergeyKorneyev commented 2 years ago

Hello, That probably means that the Document Server is malfunctioning. Could you check if its core services (Docservice, Converter) and dependencies (RabbitMQ, PostgreSQL, Nginx) are working correctly? If you need more precise information on how to do that, let me know the OS you've installed the Document Server on and the installation type you used.

werty1st commented 2 years ago

make sure to set a dns server for docker. this was the cause on my setup.

  onlyoffice:
    image: onlyoffice/documentserver:latest
    restart: always
    networks:
      - "web"
    dns:
      - 1.1.1.1
      - 8.8.8.8
    volumes:
      - document_data1:/var/www/onlyoffice/Data
      - document_log1:/var/log/onlyoffice
      - document_db1:/var/lib/postgresql
      - ./local.json:/etc/onlyoffice/documentserver/local.json
      - ./default.json:/etc/onlyoffice/documentserver/default.json
    labels:
      traefik.enable: "true"
      traefik.http.routers.office.rule: Host(`docs.homelab.eu`)
      traefik.http.services.office.loadbalancer.server.port: 80
      traefik.http.services.office.loadbalancer.server.scheme: http
      traefik.http.routers.office.entrypoints: websecure
      traefik.http.routers.office.tls.certresolver: myresolver
      traefik.http.routers.office.service: office
      #traefik.http.routers.office.middlewares: office-headers
      #traefik.http.middlewares.office-headers.headers.customrequestheaders.X-Forwarded-Proto: https
      #traefik.http.middlewares.office-headers.headers.accessControlAllowOrigin: "*"

  nextcloud:
    image: nextcloud
    links:
      - mysql:db
    volumes:
      - ./data/:/var/www/html/data/
      - ./nextcloud/:/var/www/html/
      - ./config/:/var/www/html/config/
      - /pool18tb/Downloads/:/Downloads
      - /pool18tb/Filme/:/media/Filme:ro
      - /pool18tb/Serien/:/media/Serien:ro
      - /pool18tb/Audio/:/media/Audio:ro
    restart: always
    user: "1000"
    dns:
      - 1.1.1.1
      - 8.8.8.8
#    command: |
#      apt update && apt install smbclient libsmbclient-dev
#      pecl install smbclient
#      docker-php-ext-enable smbclient
    environment: 
      - APACHE_RUN_USER=#1000
    networks:
        - "web"
        - "mysql"
    labels:
      traefik.enable: "true"
      traefik.http.routers.nextcloud.rule: Host(`nextcloud.homelab.eu`)
      traefik.http.services.nextcloud.loadbalancer.server.port: 80
      traefik.http.services.nextcloud.loadbalancer.server.scheme: http
      traefik.http.routers.nextcloud.entrypoints: websecure
      traefik.http.routers.nextcloud.tls.certresolver: myresolver

      ofelia.enabled: "true"
      ofelia.job-exec.nextcloud.schedule: "@hourly"
      ofelia.job-exec.nextcloud.user: "1000"
      ofelia.job-exec.nextcloud.command: "php -f /var/www/html/cron.php"
      ofelia.job-exec.nextcloud-files.schedule: "0 0 3 * * *"
      ofelia.job-exec.nextcloud-files.user: "1000"
      ofelia.job-exec.nextcloud-files.command: "php occ files:scan --all"
      ofelia.job-exec.nextcloud-db.schedule: "@daily"
      ofelia.job-exec.nextcloud-db.no-overlap: "true"
      ofelia.job-exec.nextcloud-db.user: "1000"
      ofelia.job-exec.nextcloud-db.command: "php occ db:add-missing-indices && php occ db:add-missing-primary-keys && php occ db:convert-filecache-bigint"
lucyferu commented 2 years ago

Hello, That probably means that the Document Server is malfunctioning. Could you check if its core services (Docservice, Converter) and dependencies (RabbitMQ, PostgreSQL, Nginx) are working correctly? If you need more precise information on how to do that, let me know the OS you've installed the Document Server on and the installation type you used.

sorry for the late reply. and, yes, i would need more information please. the os is Debian 10, however not sure what you mean by installation type? i manage my server through yunohost, so install all of my app through that.

SergeyKorneyev commented 2 years ago

sorry for the late reply. and, yes, i would need more information please. the os is Debian 10, however not sure what you mean by installation type? i manage my server through yunohost, so install all of my app through that.

The ONLYOFFICE package for Yunohost is not created nor supported by us. You could try to either reach out to them or use one of our official installation methods. The instructions are available here: https://helpcenter.onlyoffice.com/installation/docs-community-index.aspx.