NextCloud Office and Collabora CODE

I have set up a couple of other NextCloud servers in the past and have not run into this issue.

But in setting up NC 25.02 and enabling the use of NextCloud Office and install the Collobora CODE server it will not open .odt files or .docx files or really any files that require using a Nextcloud office app.

I can get it working by going to the Nextcloud Office Administration settings and toggling off “Use the built-in CODE” and then reselecting it.

This seems to will allow it to work for a short period. Have not determined how long, but it seems to quit working if Apache server or PHP service is reloaded or restarted. I then have to do the above to make it start working again. It seems it is interrupted any time a cron job that reloads the Apache server is run.

This is the error in the logs that seems to be connected to this issue.

[no app in context] Warning: Host was not connected to because it violates local access rules

GET /index.php/core/preview?fileId=42&c=96e1fbdcf8ad60802e1c738d82676fa8&x=250&y=250&forceIcon=0&a=0
from by shane at 2023-01-05T15:43:45+00:00

welcome to the forum @rippletide :handshake:

Please use the search, most of the problems have been discussed already!

# for docker 
docker exec --user www-data <nextcloud container name> php occ config:system:set allow_local_remote_servers --value true --type bool

# native install (sudo might be required)
php occ config:system:set allow_loca_remote_servers --value true --type bool

See below: