Try the fastest and simplest way to install ONLYOFFICE

The document cannot be saved

Issues during installation and related to database

The document cannot be saved

Postby bclauss » Mon Sep 18, 2017 9:19 am

Hi everyone,

I have installed a document server on docker with this command :
Code: Select all
sudo docker run -i -t -d -p 80:80 --restart=always     -v /onlyoffice-documentserver/onlyoffice/DocumentServer/logs:/var/log/onlyoffice      -v /onlyoffice-documentserver/onlyoffice/DocumentServer/data:/var/www/onlyoffice/Data      -v /onlyoffice-documentserver/onlyoffice/DocumentServer/lib:/var/lib/onlyoffice     -v /onlyoffice-documentserver/onlyoffice/DocumentServer/db:/var/lib/postgresql  onlyoffice/documentserver


The server runs well. I also created an html page to call the API, I created this config object :
Code: Select all
new DocsAPI.DocEditor("placeholder",
        {
            "document": {
                "fileType": "docx",
                "info": {
                    "author": "Baptiste Clauss",
                    "created": "2010-07-07 3:46 PM",
                    "folder": "Example Files",
                    "sharingSettings": [
                        {
                            "permissions": "Full Access",
                            "user": "Baptiste Clauss"
                        },
                    ]
                },
                "key": "Khirz6zTPdfd7",
                "permissions": {
                    "comment": true,
                    "download": true,
                    "edit": true,
                    "print": true,
                    "review": true
                },
                "title": "TEST.docx",
                "url": "http://192.168.X.80:8080/Document/TEST.docx"
            },
            "documentType": "text",
            "editorConfig": {
                "callbackUrl": "http://192.168.X.80:8080/X/X/onlyOffice.html",
                "customization": {
                    "autosave": true,
                    "chat": true,
                    "commentAuthorOnly": false,
                    "compactToolbar": false,
                    "forcesave": true,
                    "goback": {
                        "text": "Go to Documents",
                        "url": "http://google.com"
                    },
                    "showReviewChanges": false,
                    "zoom": 100
                },
                "lang": "en-US",
                "mode": "edit",
                "user": {
                    "id": "78e1e841",
                    "name": "Baptiste Clauss"
                }
            },
            "events": {
                "onCollaborativeChanges": true,
                "onDocumentStateChange": true,
                "onDownloadAs": true,
                "onError": true,
                "onReady": true,
                "onRequestEditRights": true,
                "onRequestHistory": true,
                "onRequestHistoryData": true,
                "onRequestHistoryClose": true
            },
            "height": "1000px",
            "token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.e30.t-IDcSemACt8x4iTMCda8Yhe3iZaWbvV5XKSTbuAn0M",
            "type": "desktop",
            "width": "100%"
        });


When I go to the html page at : localhost:80/, the editor opens the file that I gave but with this message :
The document could not be saved. Please check connection settings or contact your administrator.

In the console I also have this message :
Synchronous XMLHttpRequest on the main thread is deprecated because of its detrimental effects to the end user's experience.


Is there anything left to configure ?

Thanks !
bclauss
 
Posts: 20
Joined: Mon Sep 18, 2017 9:06 am

Re: The document cannot be saved

Postby Maxim » Mon Sep 18, 2017 12:36 pm

Hello bclauss!
You should see how work Integration examples
The document could not be saved.
Maxim
 
Posts: 1311
Joined: Tue Oct 11, 2016 2:34 pm

Re: The document cannot be saved

Postby bclauss » Mon Sep 18, 2017 3:40 pm

I checked the logs of my server and my servlet wasn't running. So the problem is solved !
I still have a question, when is the status 2 send ? Because I always receive status 6, when I'm saving.

Thanks for your answer !
bclauss
 
Posts: 20
Joined: Mon Sep 18, 2017 9:06 am

Re: The document cannot be saved

Postby bclauss » Mon Sep 18, 2017 3:50 pm

Thanks, problem solved, but in the integration example they use the status 2 but I always receive status 6. I don't understand the when a callback (with status 2) is send..
bclauss
 
Posts: 20
Joined: Mon Sep 18, 2017 9:06 am

Re: The document cannot be saved

Postby Maxim » Tue Sep 19, 2017 6:29 am

Hello bclauss!
See here
Maxim
 
Posts: 1311
Joined: Tue Oct 11, 2016 2:34 pm

Re: The document cannot be saved

Postby bclauss » Tue Sep 19, 2017 7:13 am

Hey, yes I see that but I don't really understand. Okay the document has been edited but I never received this message.

Sorry for the double post, I didn't saw that it takes some time to post :)
bclauss
 
Posts: 20
Joined: Mon Sep 18, 2017 9:06 am

Re: The document cannot be saved

Postby Maxim » Thu Sep 21, 2017 8:02 am

Hello bclauss!
Please see here status 2 - saving in 10 seconds
And here status 6 - saving using forcesave
Maxim
 
Posts: 1311
Joined: Tue Oct 11, 2016 2:34 pm

Re: The document cannot be saved

Postby bclauss » Mon Sep 25, 2017 7:21 am

Thanks for the answer.
bclauss
 
Posts: 20
Joined: Mon Sep 18, 2017 9:06 am

Re: The document cannot be saved

Postby Maxim » Thu Sep 28, 2017 10:53 am

Hello bclauss!
Always welcome!
Maxim
 
Posts: 1311
Joined: Tue Oct 11, 2016 2:34 pm


Return to Installation issues

Who is online

Users browsing this forum: No registered users and 1 guest

cron