Last edit timestamp doesn't get updated until I close the tab


(This is my first post - wohoo! :smiley: )

I have a strange behavior with my Onlyoffice installation:

  1. Create a new Onlyoffice Document and open it in browser
  2. Add some text --> “All changes saved”
  3. Reload the Nextcloud tab where the file is located and check the last column “last edit”
  4. Wait for some time (2 minutes)
  5. Switch to document tab and make another modification --> “All changes saved”
  6. Again reload the Nextcloud tab where the file is located and check the last column “last edit”

Compare the two timestamps:
I will still see the first timestamp and not the last one.

Refreshing the document tab doesn’t help.

This is confusing me. I would expect a immediate update on the timestamp when Onlyoffice says “All changes saved”.

I run Nextcloud (17.0.1), Onlyoffice and Redis on seperate Docker container.

Not even the manual trigger of a occ files:scan helps:

www-data@fea57390b610:~/html$ /var/www/html/occ files:scan A7B36162-A321-4998-B2B7-9AF697988A4D
Starting scan for user 1 out of 1 (A7B36162-A321-4998-B2B7-9AF697988A4D)
| Folders | Files | Elapsed time |
| 3445    | 30336 | 00:01:27     |

Only if I close the document tab, the new timestamp will be shown in the Nextcloud tab.

Here is the output of the admin API url:


FROM nextcloud:17.0.1

RUN { \
        echo "deb buster main contrib"; \
        echo "deb buster/updates main contrib"; \
        echo "deb buster-updates main contrib"; \
    }  >> /etc/apt/sources.list \
    && apt-get update \
    && apt-get install -y \
    smbclient \
    supervisor \
    && rm -rf /var/lib/apt/lists/* \
    && mkdir /var/log/supervisord /var/run/supervisord \
    && rm -f /etc/localtime \
    && ln -s /usr/share/zoneinfo/Europe/Berlin /etc/localtime

COPY supervisord.conf /etc/supervisor/supervisord.conf

RUN echo "* * * * * php /var/www/html/occ files:scan --all --unscanned --quiet" >> /var/spool/cron/crontabs/www-data \
    && echo "0 * * * * php /var/www/html/occ files:scan --all --quiet" >> /var/spool/cron/crontabs/www-data


CMD ["/usr/bin/supervisord"]

Btw: Also no error messages in nextcloud log file

Do you have any ideas what the problem is?

Many thanks,

Well, I figured it out myself.
This seems to be a behavior that is expected. Like it is stated from ONLYOFFICE here:

Due to the operational characteristic, Document Server saves a document only after the document has been closed by all the users who edited it.

This behavior is especially tricky when you use the external storage feature. In my situation, I mounted some Windows network shares to the users.
This means, that the users should always close their document-tabs in order to save the new contents. And to let other users (coming from the filesystem/network-share) see the new contents.

Hope this helps someone. At least I was not aware of this behavior of Onlyoffice.

Or do you know a workaround, to let Onlyoffice save the documents automatically every 5 minutes?

1 Like