V23.0.0 no NC Office, no backups

Hello,

Nextcloud Version: Nextcloud Hub II (23.0.0)
Server: Ubuntu 18.04
Webserver: Apache v2.4.51
Nextcloud works fine except some update features.

i installed the version 23.0.0 with the beta channel.
Everything works fine except the custom menu.

But the problem because i write this post, i dont have the announced Nextcloud Office and the backup function. I dont find anything like that. And if i click on a office file like a word document, it just download the file and not open it in nextcloud.
But other problems like the profile page works.

I hope anyone can help me.

Kind regards,
Timo // NiceKype

How did you install it? Did you download the tar file from website and installed it?
Or did you use the VM?

Please provide details.

Have you installed the office and backup apps?

I installed the backup with the installer in nextcloud itself of course.
I simply switched to the beta channel to get the update and and then installed it there.

How did you Nextcloud itself?

ā€¦ ā†’ Nextcloud internal installer. Nextcloud installed it by itself. Thats what that says

not sure if itā€™s related but i have the same problem. i did a fresh install of nextcloud 22 onto a test server and upgraded it to 23.0.2 tonight. i canā€™t use nextcloud office at all. when i click on any document it wants to download it.

if i create a new document it creates it as an .odt and then prompts me for the template. i then get the popup message: ā€œUnable to create new file from templateā€

the document is created but i canā€™t do anything with it.

the logs do show something very useful, however:

{"reqId":"mejCJP81F8EH2Fwzh7n8","level":2,"time":"2022-02-17T11:58:14+00:00","remoteAddr":"192.168.243.2","user":"admin","app":"no app in context","method":"GET","url":"/core/preview?fileId=4948&c=6a405799e7a2a4afbb3f1ab71b230613&x=250&y=250&forceIcon=0&a=0","message":"Host 192.168.80.92 was not connected to because it violates local access rules","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:97.0) Gecko/20100101 Firefox/97.0","version":"23.0.2.1"}
{"reqId":"mejCJP81F8EH2Fwzh7n8","level":3,"time":"2022-02-17T11:58:14+00:00","remoteAddr":"192.168.243.2","user":"admin","app":"core","method":"GET","url":"/core/preview?fileId=4948&c=6a405799e7a2a4afbb3f1ab71b230613&x=250&y=250&forceIcon=0&a=0","message":"OC_Image::fixOrientation(): No image loaded","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:97.0) Gecko/20100101 Firefox/97.0","version":"23.0.2.1"}

192.168.80.92 is the ip address of my test nextcloud server. 192.168.243.2 is the ip address of my workstation.

ā€œHost 192.168.80.92 was not connected to because it violates local access rulesā€ seems fairly significant. i tried searching through the forums here but couldnā€™t find anything.

unfortunately i do not know whether this issue existed with 22 prior to upgrading to 23 (i was mainly focusing on nextcloud talk testing in this release and never launched a document), but iā€™m guessing there is some configuration somewhere which needs to be altered.

is someone able to guide me in the right direction?

cheers, wizdude.

@wizdude
Have you installed and configured the needed apps?
Watch this video.

that video is for collabora online. iā€™m using Nextcloud Office which came pre-installed with groupware setup in Nextcloud Hub.

i have Nextcloud Office 5.0.2 and Collabora Online - Built-in CODE Server 21.11.03 installed.

collabora-server-online

given the error i received in the logs, iā€™m sure there must be some config somewhere that is not accepting the connection. is there some advanced config where i should be putting in a hostname for the built-in CODE server?

this is so strange. the issue appeared to be browser related.

i was playing around with the nextcloud config file to try and deal with the error from the logs, but then i tried accessing it using Chrome on my work pc - worked fine. Tested from Firefox on my home pc - worked fine. Tested from Firefox on my office pc - failed.

restarted firefox at the office - problem gone.

the only thing i donā€™t understand is that i first encountered the problem on firefox at home which is still open and still running - and suddenly itā€™s all good.

based on the fact that the browser wanted to download the file rather than launch nextcloud office, could this be due to a session/cookie thing with the client? i would have thought that if i was offered the file that the server made this decision.

here are all the steps in my testing:

  • restarted server - no change from firefox
  • edited config.php and added 2 => ā€˜192.168.80.92ā€™, into the ā€œtrusted_proxiesā€ array and restarted apache - no change from firefox
  • edited config.php and added ā€˜allow_local_remote_serversā€™ => true, and restarted apache - no change from firefox
  • removed all these changes and reverted back and restarted apache - no change from firefox
  • tried from chrome at office - working
  • tried from firefox at home - working
  • tried from firefox at office - failing
  • restarted firefox at office - working

the bit that mystifies me is that it was initially failing from firefox at home, and i didnā€™t touch this browser and now itā€™s ok.

something got cached somewhere - but iā€™m not sure what.

i guess the issue is resolved unless i can somehow reproduce it again the future.

cheers, wizdude

Hello,

I have the same versions running as you and every time I reboot my server I cannot edit office files as well. It prompts to download them. Here is my workaround:

  1. Go to global settings
  2. Go to Nextcloud Office
  3. ā€œUse the built-in CODE ā€¦ā€ is selected.
  4. Toggle to ā€œUser your own serverā€ and back to previous selection
  5. It works to edit files using Office in the browser

Tested with ff and Safari.

Maybe that helps you.

do you need to do this every time you reboot your server?

Yes, that happened some weeks ago. Cannot remember which app update started this behavior.

Does my workaround work for you?

Iā€™m having the same issue. I tried rakeknivenā€™s workaround, but it did not work for me. Any other solutions to this?