Try the fastest and simplest way to install ONLYOFFICE

File editing start error

Any issues about docs (uploading, editing and etc.)

File editing start error

Postby coisox » Tue Aug 21, 2018 3:41 am

I setup OnlyOffice Document Server (DS) with Community Server (CS) on 2 environment; Development and Staging.

Development Server:
CS version: 9.6.2.171
DS version: Not sure how to check

Development Server:
CS version: 9.6.3.173
DS version: Not sure how to check

On Development, it works fine. I can open a document from CS and start editing. But On Staging, it (the CS) can open document but when I start typing, a popup show "File editing start error". Inspecting the console show this:
Code: Select all
{
   "Detail": "File editing start error",
   "inner":
   {
      "message": "File editing start error",
      "source": "mscorlib",
      "stack": "  at ASC.Web.Files.Services.WCFService.FileStorageServiceController.StartEdit (System.String fileId, System.Boolean editingAlone, System.String doc) [0x00124] in <49c1fd4d320c4b8aac13ecc37110833d>:0 \n  at (wrapper dynamic-method) System.Object.lambda_method(System.Runtime.CompilerServices.Closure,object,object[])\n  at System.Web.Http.Controllers.ReflectedHttpActionDescriptor+ActionExecutor+<>c__DisplayClass10.<GetExecutor>b__9 (System.Object instance, System.Object[] methodParameters) [0x00000] in <f99f496cb0d249c1a945c1fcabce1695>:0 \n  at System.Web.Http.Controllers.ReflectedHttpActionDescriptor+ActionExecutor.Execute (System.Object instance, System.Object[] arguments) [0x00000] in <f99f496cb0d249c1a945c1fcabce1695>:0 \n  at System.Web.Http.Controllers.ReflectedHttpActionDescriptor.ExecuteAsync (System.Web.Http.Controllers.HttpControllerContext controllerContext, System.Collections.Generic.IDictionary`2[TKey,TValue] arguments, System.Threading.CancellationToken cancellationToken) [0x00045] in <f99f496cb0d249c1a945c1fcabce1695>:0 \n--- End of stack trace from previous location where exception was thrown ---\n  at System.Web.Http.Controllers.ApiControllerActionInvoker+<InvokeActionAsyncCore>d__0.MoveNext () [0x000c7] in <f99f496cb0d249c1a945c1fcabce1695>:0 \n--- End of stack trace from previous location where exception was thrown ---\n  at System.Web.Http.Controllers.ActionFilterResult+<ExecuteAsync>d__2.MoveNext () [0x00137] in <f99f496cb0d249c1a945c1fcabce1695>:0 \n--- End of stack trace from previous location where exception was thrown ---\n  at System.Web.Http.Filters.AuthorizationFilterAttribute+<ExecuteAuthorizationFilterAsyncCore>d__2.MoveNext () [0x00109] in <f99f496cb0d249c1a945c1fcabce1695>:0 \n--- End of stack trace from previous location where exception was thrown ---\n  at System.Web.Http.Controllers.ExceptionFilterResult+<ExecuteAsync>d__0.MoveNext () [0x00097] in <f99f496cb0d249c1a945c1fcabce1695>:0 ",
      "type": "System.InvalidOperationException"
   },
   "message": "Bad request."
}


I found similar but old topic here: viewtopic.php?f=38&t=6299 but when I compare with webappsettings.config in Development (the environment that has no problem), it didn't specify files.docservice.url.command at all. So does it still needed in the newer CS version?

Anyway, I still try to put these (one at a time) code in the Staging environment and restart server but when I try to open a document, the editor hang. So for now I remove these code (at least the CS editor allow view):
Code: Select all
<add key="files.docservice.url.command value="http://communityserver_ip/coauthoring/CommandService.ashx" />

Code: Select all
<add key="files.docservice.url.command value="http://documentserver_ip/coauthoring/CommandService.ashx" />


FYI, I got these setting in both Development and Staging server:
Code: Select all
<add key="files.docservice.url.public" value="https://documentserver_ip/" />
<add key="files.docservice.url.internal" value="https://documentserver_ip/" />
<add key="files.docservice.url.portal" value="https://communityserver_ip/" /> 
coisox
 
Posts: 6
Joined: Tue Jul 31, 2018 1:52 am

Re: File editing start error

Postby Maxim » Tue Aug 21, 2018 12:02 pm

Hello coisox!
I setup OnlyOffice Document Server (DS) with Community Server (CS) on 2 environment; Development and Staging.

Please specify what instruction you followed to install.
Is API accessible on your Staging server?
Code: Select all
http://Staging_server_ip/web-apps/apps/api/documents/api.js
Maxim
 
Posts: 1737
Joined: Tue Oct 11, 2016 2:34 pm

Re: File editing start error

Postby coisox » Thu Aug 23, 2018 3:29 am

Maxim wrote:Please specify what instruction you followed to install.

https://www.onlyoffice.com/download.aspx > COMMUNITY SERVER > DEB PACKAGE

Maxim wrote:Is API accessible on your Staging server?

Yes. I can download and open document through the API. It just that after open a document (even directly from OnlyOffice Portal), when I start typing the error popup.
coisox
 
Posts: 6
Joined: Tue Jul 31, 2018 1:52 am

Re: File editing start error

Postby Maxim » Fri Aug 31, 2018 10:54 am

Hello coisox!
Your link leads to the Community Edition, it is not Community Server.

<add key="files.docservice.url.portal" value="https://communityserver_ip/" />

How you can use HTTPS with ip address?

Please make a screenshot of the Document Service Location
Maxim
 
Posts: 1737
Joined: Tue Oct 11, 2016 2:34 pm

Re: File editing start error

Postby coisox » Fri Aug 31, 2018 12:27 pm

ive changed the document server to https and its ok now.

btw, i got confuse. didn't realize there is community server and edition. i want ask for ur help since i can't find my self the url for all onlyoffice product (i remember i stumbled that page). need clearer picture different between them
coisox
 
Posts: 6
Joined: Tue Jul 31, 2018 1:52 am

Re: File editing start error

Postby Maxim » Mon Sep 03, 2018 8:32 am

Hello coisox!
a popup show "File editing start error"

Do you still get this error or after "changed the document server to https and its ok now"?
Maxim
 
Posts: 1737
Joined: Tue Oct 11, 2016 2:34 pm

Re: File editing start error

Postby coisox » Tue Sep 04, 2018 12:38 am

After change to https, its ok now. No more error.
coisox
 
Posts: 6
Joined: Tue Jul 31, 2018 1:52 am

Re: File editing start error

Postby Maxim » Thu Sep 06, 2018 12:46 pm

Hello coisox!
After change to https, its ok now. No more error.

:D Great!
Maxim
 
Posts: 1737
Joined: Tue Oct 11, 2016 2:34 pm


Return to Documents

Who is online

Users browsing this forum: No registered users and 2 guests