Hello everyone, I’ve got a problem with starting OnlyOffice on Oracle Linux Server 8.6, some help will be appreciated.
I’m using docker-versions of “Community server”, “Document server” and “Control
panel” + local MySQL-server, installed on the same host, but not in docker-container.
How the installation went (main steps):
-
Intalled MySQL server (version 5.7.39) locally on host, created database “onlyoffice”, user “onlyoffice_user” with password “onlyoffice_pass”, granted privileges;
-
Followed the steps by this guide
But I’ve missed step 2 (because I don’t need docker-containered MySQL), missed step 4 (I don’t need mail server now), and in step 6 I’ve done it this way:
sudo docker run --net onlyoffice -i -t -d --privileged --restart=always --name onlyoffice-community-server -p 80:80 -p 443:443 -p 5222:5222
-e MYSQL_SERVER_HOST=172.18.0.1
-e MYSQL_SERVER_PORT=“3306”
-e MYSQL_SERVER_DB_NAME=onlyoffice
-e MYSQL_SERVER_USER=onlyoffice_user
-e MYSQL_SERVER_PASS=onlyoffice_pass
-e DOCUMENT_SERVER_PORT_80_TCP_ADDR=onlyoffice-document-server
-e CONTROL_PANEL_PORT_80_TCP=80
-e CONTROL_PANEL_PORT_80_TCP_ADDR=onlyoffice-control-panel
-v /app/onlyoffice/CommunityServer/letsencrypt:/etc/letsencrypt
-v /sys/fs/cgroup:/sys/fs/cgroup:rw
-v /app/onlyoffice/CommunityServer/data:/var/www/onlyoffice/Data
-v /app/onlyoffice/CommunityServer/logs:/var/log/onlyoffice
-v /app/onlyoffice/DocumentServer/data:/var/www/onlyoffice/DocumentServerData
onlyoffice/communityserver
Now, when I’m entering IP-address of my host in browser I get the following error:
Application Exception
# Runtime Error
## A runtime error has occurred
Description: An application error occurred on the server. The current custom error settings for this application prevent the details of the application error from being viewed (for security reasons).
Details: To enable the details of this specific error message to be viewable, please create a tag within a “web.config” configuration file located in the root directory of the current web application. This tag should then have its “mode” attribute set to “Off”.
<system.web> </system.web>
Notes: The current error page you are seeing can be replaced by a custom error page by modifying the “defaultRedirect” attribute of the application’s configuration tag to point to a custom error page URL.
<system.web> </system.web>
Version Information: 6.8.0.123 (tarball Tue May 12 15:11:57 UTC 2020); ASP.NET Version: 4.0.30319.42000
Powered by [Mono]
Sometimes the situation changes and web-page shows:
Error 502. App Crash
The server was unable to complete your request.
instead of the runtime error above.
/app/onlyoffice/CommunityServer/logs/nginx.error.log contents:
*2022/11/30 10:21:17 [crit] 404#404: 1 connect() to unix:/var/run/onlyoffice/onlyoffice.socket failed (2: No such file or directory) while connecting to upstream, client: 10.0.119.189, server: , request: “GET /TenantLogo.ashx?logotype=3 HTTP/1.1”, upstream: “fastcgi://unix:/var/run/onlyoffice/onlyoffice.socket:”, host: “10.0.119.190”, referrer: “http://10.0.119.190/”
If I do
sudo docker exec -i -t a55675c2c480 systemctl status monoserve
I get:
monoserve.service - FastCGI Mono server
- Loaded: loaded (/lib/systemd/system/monoserve.service; enabled; vendor preset: enabled)*
- Active: active (running) since Wed 2022-11-30 10:28:20 UTC; 30s ago*
- Process: 4292 ExecStartPre=/bin/bash -c test -e /var/run/onlyoffice || install -m 755 -o onlyoffice -g nginx -d /var/run/onlyoffice; rm -f /var/run/onlyoffice/onlyoffice.socket /var/www/onlyoffice/WebStudio/m*
ono_crash /var/www/onlyoffice/WebStudio/core.; (code=exited, status=0/SUCCESS) - Main PID: 4294 (mono)*
- Tasks: 35 (limit: 8826)*
- CGroup: /docker/a55675c2c4801ee7a443abb7b78700954efb74c5b793fc40a6669de30d2804a9/system.slice/monoserve.service*
-
└─4294 /usr/bin/mono /usr/lib/hyperfastcgi/4.0/HyperFastCgi.exe /config=/etc/hyperfastcgi/onlyoffice /logfile=/var/log/onlyoffice/onlyoffice.log /loglevels=Error*
Nov 30 10:28:31 a55675c2c480 hyperfastcgi4[4294]: at ASC.Core.TenantManager.GetTenant (System.String domain) [0x0001f] in <289eba5fc2ef4c3a9bc560fddf6ec9c8>:0
Nov 30 10:28:31 a55675c2c480 hyperfastcgi4[4294]: at ASC.Core.TenantManager.GetCurrentTenant (System.Boolean throwIfNotFound) [0x00047] in <289eba5fc2ef4c3a9bc560fddf6ec9c8>:0
Nov 30 10:28:31 a55675c2c480 hyperfastcgi4[4294]: at ASC.Common.Logging.LogManager+<>c.b__0_0 () [0x00005] in <289eba5fc2ef4c3a9bc560fddf6ec9c8>:0
Nov 30 10:28:31 a55675c2c480 hyperfastcgi4[4294]: at ASC.Common.Logging.LogNLog.Log (NLog.LogEventInfo theEvent) [0x00008] in <71cb3d721bb9413ea8360000a194c805>:0
Nov 30 10:28:31 a55675c2c480 hyperfastcgi4[4294]: at ASC.Common.Logging.LogNLog.Log (NLog.LogLevel level, System.Object message) [0x00025] in <71cb3d721bb9413ea8360000a194c805>:0
Nov 30 10:28:31 a55675c2c480 hyperfastcgi4[4294]: at ASC.Common.Logging.LogNLog.Error (System.Object message) [0x00000] in <71cb3d721bb9413ea8360000a194c805>:0
Nov 30 10:28:31 a55675c2c480 hyperfastcgi4[4294]: at ASC.Api.ApiSetupHttpModule.Init (System.Web.HttpApplication context) [0x00053] in <1174082600f44859b26bb99bb8c52778>:0
Nov 30 10:28:31 a55675c2c480 hyperfastcgi4[4294]: at System.Web.Configuration.HttpModulesSection.LoadModules (System.Web.HttpApplication app) [0x00047] in :0
Nov 30 10:28:31 a55675c2c480 hyperfastcgi4[4294]: at System.Web.HttpApplication.InitOnce (System.Boolean full_init) [0x0008e] in :0
Nov 30 10:28:31 a55675c2c480 hyperfastcgi4[4294]: Please restart your app to unlock it