When Installing nextcloud+onlyoffice, onlyoffice failed to start and report an error:
enter the container to see the error information of out.log
[root@nextcloud ~]# docker ps -a
Emulate Docker CLI using podman. Create /etc/containers/nodocker to quiet msg.
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
a7c97fb93556 docker.io/onlyoffice/documentserver:latest 30 hours ago Up 30 hours ago 0.0.0.0:8080->80/tcp, 0.0.0.0:9000->443/tcp onlyoffice
[root@nextcloud ~]# docker exec -it a7c97fb93556 /bin/bash
Emulate Docker CLI using podman. Create /etc/containers/nodocker to quiet msg.
root@a7c97fb93556:/# cd /var/log/onlyoffice/documentserver/converter/
root@a7c97fb93556:/var/log/onlyoffice/documentserver/converter# ls
err.log out.log-20220729
root@a7c97fb93556:/var/log/onlyoffice/documentserver/converter#
Disabling Document Server Access Authentication
Next, disable access authentication for Document Server, which by default rejects unauthenticated requests (i.e., self-signed HTTPS requests).
I am now running Document Server with Docker, using the docker exec command to log into the container.
There seems to be only the nano editor in the container, but that’s enough.
Open /etc/onlyoffice/documentserver/default.json, go down and find the rejectUnauthorized field and change its value to false.
Restart the container.
Modify default.json
root@a7c97fb93556:/var/log/onlyoffice/documentserver/converter# cd /etc/onlyoffice/
root@a7c97fb93556:/etc/onlyoffice# ls
documentserver documentserver-example
root@a7c97fb93556:/etc/onlyoffice# cd documentserver
root@a7c97fb93556:/etc/onlyoffice/documentserver# ls
default.json local.json production-linux.json
development-linux.json log4js production-windows.json
development-mac.json logrotate supervisor
development-windows.json nginx
root@a7c97fb93556:/etc/onlyoffice/documentserver# pwd
/etc/onlyoffice/documentserver
root@a7c97fb93556:/etc/onlyoffice/documentserver#
Modify as follows: “rejectunauthorized”: false
"requestDefaults": {
"headers": {
"User-Agent": "Node.js/6.13",
"Connection": "Keep-Alive"
},
"gzip": true,
"rejectUnauthorized": false
},
Restart container
root@a7c97fb93556:/etc/onlyoffice/documentserver# exit
exit
[root@nextcloud ~]# docker stop a7c97fb93556
Emulate Docker CLI using podman. Create /etc/containers/nodocker to quiet msg.
Error: given PIDs did not die within timeout
[root@nextcloud ~]# docker start a7c97fb93556
Emulate Docker CLI using podman. Create /etc/containers/nodocker to quiet msg.
Error: unable to start container "a7c97fb93556650c83dd763f9578705a82f34b2673f9759e8d0ce62afc63e77c": container a7c97fb93556650c83dd763f9578705a82f34b2673f9759e8d0ce62afc63e77c must be in Created or Stopped state to be started: container state improper
[root@nextcloud ~]# reboot
Restart nextcloud
login as: root
[email protected]'s password:
Activate the web console with: systemctl enable --now cockpit.socket
Last login: Fri Jul 29 15:59:59 2022 from 192.168.182.1
[root@nextcloud ~]# setenforce 0
[root@nextcloud ~]# systemctl start https
Failed to start https.service: Unit https.service not found.
[root@nextcloud ~]# systemctl start httpd
Enter TLS private key passphrase for localhost:443 (RSA) : ******
[root@nextcloud ~]# docker ps -a
Emulate Docker CLI using podman. Create /etc/containers/nodocker to quiet msg.
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
a7c97fb93556 docker.io/onlyoffice/documentserver:latest 31 hours ago Created 0.0.0.0:8080->80/tcp, 0.0.0.0:9000->443/tcp onlyoffice
[root@nextcloud ~]# docker start a7c97fb93556
Emulate Docker CLI using podman. Create /etc/containers/nodocker to quiet msg.
a7c97fb93556
[root@nextcloud ~]#
Start onlyoffice
run as prompted
[root@nextcloud ~]# sudo docker exec a7c97fb93556 sudo supervisorctl start ds:example
Emulate Docker CLI using podman. Create /etc/containers/nodocker to quiet msg.
sudo: unable to send audit message: Operation not permitted
ds:example: started
Successfully opened word document
Read More:
- cURL error 60: SSL certificate problem: self signed certificate in certificate chain
- Shell curl command reported an error: (60) SSL certificate problem: self signed certificate
- GuzzleHttp cURL error 60: SSL certificate problem: self signed certificate
- Configure HTTPS and self signed certificate for nginx
- Mac running nltk.download () prompt certificate verity failed
- Postman – local opened Charles packet capture tool, postman issued a request error: error: self signed certificate
- svn: E230001: Server SSL certificate verification failed: certificate issued
- Idea svn connection https error report: E230001: Server SSL certificate verification failed: certificate issued
- How to Fix SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed.
- Spark login error unable to verify certificate and certificate host name verification failed
- Keil prompts the stlink download program to prompt error: Flash download failed – target DLL has been cancelled
- cURL error 60: SSL certificate problem: unable to get local issuer certificate
- Solve the error of dual system installation: the grub-efi-amd64-signed package failed to install into /target/.
- [SSL: CERTIFICATE_VERIFY_FAILED] Certificate Verify Failed (_ssl.C:579)
- NPM modify download dependency (modify global download and cache path)
- Was import certificate — error prompt: java.security.cert .CertPathValidatorException: Certificate chaining error
- Bug: unable to download source code in idea, error cannot download sources sources not found for:XXX
- URLError: urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:833)
- python3 request module https certificate verify failed error
- NIOS II – Eclipse – ERROR – ” DownLoad elf failed ” – Verify failed between address ….