Control Panel Error 402

After updating Community Server using Control Panel I lost access to Control Panel with error 402. What steps can I take to diagnose the problem?

Community Server/Control Panel version: 11.5.2.1542/3.0.3.410
Type of installation of Workspace (docker, deb/rpm, exe) docker
OS: CentOS Linux release 8.4.2105
Browser version: Chrome

Hello,
Please specify the way you installed the update for the Workspace.
Note that current versions of the Community Server and Control Panel are 11.6.0.1620 and 3.0.3.410.
Please run the installation script with an additional parameter -u true:
bash workspace-install.sh -u true
After that check if the issue persists.


I installing update by web interface.
After I download and update the Community Server, I will lose access to the Control Panel with error 402.
The Community Server is working fine at the same time.

Please try to execute the script as I mentioned earlier and check if the issue persists.

After a successful update using the script, the problem was not solved.

Please reproduce the issue by trying to open the Control Panel and send me the following logs after that:
web.log, web.api.log from /app/onlyoffice/CommunityServer/logs
web.controlpanel.log from /app/onlyoffice/ControlPanel/logs

web.api.log

2022-01-28 09:13:12,398 ERROR [10] ASC.Api - method error: https://127.0.0.1/api/2.0/portal/tenantextra - Server error System.Net.WebException: The remote server returned an error: (404) Not Found.
  at System.Net.HttpWebRequest.GetResponseFromData (System.Net.WebResponseStream stream, System.Threading.CancellationToken cancellationToken) [0x00146] in <88f564ea69dd4dc8ba9bf979e48d5996>:0 
  at System.Net.HttpWebRequest.RunWithTimeoutWorker[T] (System.Threading.Tasks.Task`1[TResult] workerTask, System.Int32 timeout, System.Action abort, System.Func`1[TResult] aborted, System.Threading.CancellationTokenSource cts) [0x000f8] in <88f564ea69dd4dc8ba9bf979e48d5996>:0 
  at System.Net.HttpWebRequest.GetResponse () [0x00016] in <88f564ea69dd4dc8ba9bf979e48d5996>:0 
  at ASC.Web.Core.Files.DocumentService.CommandRequest (System.String documentTrackerUrl, ASC.Web.Core.Files.DocumentService+CommandMethod method, System.String documentRevisionId, System.String callbackUrl, System.String[] users, ASC.Web.Core.Files.DocumentService+MetaData meta, System.String signatureSecret) [0x0014c] in <0efcfcdecfe1447da3b29bd728394a1c>:0 
  at ASC.Web.Core.Files.DocumentServiceLicense.GetDocumentServiceLicense () [0x00036] in <0efcfcdecfe1447da3b29bd728394a1c>:0 
  at ASC.Web.Core.Files.DocumentServiceLicense.GetLicenseQuota () [0x00006] in <0efcfcdecfe1447da3b29bd728394a1c>:0 
  at ASC.Api.Portal.PortalApi.GetTenantExtra () [0x00056] in <4f77b12559e144fbb3ccd012884ff96a>:0 
  at (wrapper managed-to-native) System.Reflection.RuntimeMethodInfo.InternalInvoke(System.Reflection.RuntimeMethodInfo,object,object[],System.Exception&)
  at System.Reflection.RuntimeMethodInfo.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x0006a] in <f2b3ab7dfff746f594d2ef5b16ec3c90>:0 
2022-01-28 09:16:35,367 ERROR [6] ASC.Api - method error: https://127.0.0.1/api/2.0/portal/tenantextra - Server error System.Net.WebException: The remote server returned an error: (404) Not Found.
  at System.Net.HttpWebRequest.GetResponseFromData (System.Net.WebResponseStream stream, System.Threading.CancellationToken cancellationToken) [0x00146] in <88f564ea69dd4dc8ba9bf979e48d5996>:0 
  at System.Net.HttpWebRequest.RunWithTimeoutWorker[T] (System.Threading.Tasks.Task`1[TResult] workerTask, System.Int32 timeout, System.Action abort, System.Func`1[TResult] aborted, System.Threading.CancellationTokenSource cts) [0x000f8] in <88f564ea69dd4dc8ba9bf979e48d5996>:0 
  at System.Net.HttpWebRequest.GetResponse () [0x00016] in <88f564ea69dd4dc8ba9bf979e48d5996>:0 
  at ASC.Web.Core.Files.DocumentService.CommandRequest (System.String documentTrackerUrl, ASC.Web.Core.Files.DocumentService+CommandMethod method, System.String documentRevisionId, System.String callbackUrl, System.String[] users, ASC.Web.Core.Files.DocumentService+MetaData meta, System.String signatureSecret) [0x0014c] in <0efcfcdecfe1447da3b29bd728394a1c>:0 
  at ASC.Web.Core.Files.DocumentServiceLicense.GetDocumentServiceLicense () [0x00036] in <0efcfcdecfe1447da3b29bd728394a1c>:0 
  at ASC.Web.Core.Files.DocumentServiceLicense.GetLicenseQuota () [0x00006] in <0efcfcdecfe1447da3b29bd728394a1c>:0 
  at ASC.Api.Portal.PortalApi.GetTenantExtra () [0x00056] in <4f77b12559e144fbb3ccd012884ff96a>:0 
  at (wrapper managed-to-native) System.Reflection.RuntimeMethodInfo.InternalInvoke(System.Reflection.RuntimeMethodInfo,object,object[],System.Exception&)
  at System.Reflection.RuntimeMethodInfo.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x0006a] in <f2b3ab7dfff746f594d2ef5b16ec3c90>:0 

web.controlpanel.01-28.log

2022-01-28 08:54:22 - info: Express server listening on port 80
2022-01-28 08:58:17 - error: executeOneClickinstallScript stderr
2022-01-28 08:58:17 - error: Error: No such object: onlyoffice-mail-server

2022-01-28 08:59:14 - info: Express server listening on port 80
2022-01-28 09:00:40 - error: http://onlyoffice-community-server/api/2.0/settings/companywhitelabel.json Unexpected token  in JSON at position 0
2022-01-28 09:00:40 - error: http://onlyoffice-community-server/api/2.0/people/@self.json Unexpected token  in JSON at position 0
2022-01-28 09:00:40 - error: http://onlyoffice-community-server/api/2.0/portal.json Unexpected token  in JSON at position 0
2022-01-28 09:00:40 - error: http://onlyoffice-community-server/api/2.0/settings/controlpanel.json Unexpected token  in JSON at position 0
2022-01-28 09:02:42 - error: executeOneClickinstallScript stderr
2022-01-28 09:02:42 - error: Error: No such object: onlyoffice-mail-server

2022-01-28 09:10:46 - error: checkDomainName queryA ENODATA ****.**
2022-01-28 09:10:54 - error: checkDomainName queryA ENODATA ****.**
2022-01-28 09:12:06 - info: stop container:
onlyoffice-community-server
remove container:
onlyoffice-community-server
check removed container:
5fffbdb82db09a679f9a516992fa477d8887f202ab56c3f4ea65940c4ae1c503
COMMUNITY SERVER successfully installed.

Hello,
I would ask you to attach the requested log files, and not copy their content here.

image
I can’t attach the zip file.
Here is a link to the archive.

Could you please provide an account on your portal with admin rights so I could access the Control Panel? You can send the info via personal messages.

No problem! But I can not find how to send PM.

You can click on my avatar and there click on ‘Message’.

Thank you, I’m seeing the issue now. Could you please send the log files again?

The issue was caused by incorrect addresses of the Document Editing Service on the portal.

Please specify which addresses were used to fix it. I have the same issue.

Hello @OnlyOfficeTester,
Please open the Settings module => Integration => Document Service => make a screenshot of this page and attach it here.

Sorry I can’t get the screenshot at the moment. I had this issue since quite long so made a fresh install of Windows Server 2016 and installed OnlyOffice Workspace using instructions from here Installing ONLYOFFICE Workspace for Windows on a local server - ONLYOFFICE
And still I get the same issue on clicking any of the Documents: “Document Service is not available. Please contact support” and also Control Panel doesn’t open like this: https://github.com/ONLYOFFICE/CommunityServer/issues/335

These are the values on Settings module => Integration => Document Service Page:
Document Editing Service Address: /ds-vpath/
Document Service address for requests from the Community Server: http:/ /localhost:8083/
Community Server address for requests from the Document Service: http:/ /localhost

The Application is reachable from localhost in browser

On clicking Inspect, It shows Loading failed for the with source “http:/ /localhost/ds-vpath/web-apps/apps/api/documents/api.js”

(P.S.: I have added spaces in the links purposely since I was not allowed to post with links for some reason so please ignore the same)