Collabora CODE does not open migration from Onlyoffice

Hi,
I have migrated from Owncloud 10 to Nextcloud 24.
Previosly I have used/configured Onlyoffice and worked well.
With Nextcloud I want to use built in CODE but it does not open any document.

“Document loading failed
Failed to load Nextcloud Office - please try again later-”

I did’t see any error in logs.
Config:
Apache
Php 8.1
Nextcloud 24.0.5
richdocumentscode 22.5.1301 installed

I have checked the browser communication:

  1. https://xxx/server/remote.php/dav/files/admin/mydoc.odt - got http200
  2. https://xxx/server/apps-external/richdocumentscode/proxy.php?status - got http200
  3. https://xxx/server/index.php/apps/richdocuments/index?fileId=199407&requesttoken=REMOVEDxyztoken=&path=/mydoc.odt - got http200

but it returns some interesting content:

<!DOCTYPE html>
<html class="ng-csp" data-placeholder-focus="false" lang="en" data-locale="en" >
	<head
...
var oc_userconfig={"avatar":{"version":0,"generated":true}};

</script>
		<link rel="stylesheet" href="/server/index.php/css/icons/icons-vars.css?v=1681908911"/><link rel="stylesheet" href="/server/index.php/apps/theming/styles?v=0"/><meta name="robots" content="noindex, nofollow"/>	</head>
	<body id="body-login">
		<noscript>
	<div id="nojavascript">
		<div>
			This application requires JavaScript for correct operation. Please <a href="https://www.enable-javascript.com/" target="_blank" rel="noreferrer noopener">enable JavaScript</a> and reload the page.		</div>
	</div>
</noscript>
					<input type="hidden" id="initial-state-core-config" value="removed">
					<input type="hidden" id="initial-state-core-capabilities" value="removed>
					<input type="hidden" id="initial-state-theming-data" value="removed==">
					<input type="hidden" id="initial-state-accessibility-data" value="removed==">
					<input type="hidden" id="initial-state-comments-maxAutoCompleteResults" value="MTA=">
				<div class="wrapper">
			<div class="v-align">
									<header role="banner">
						<div id="header">
							<div class="logo">
								<h1 class="hidden-visually">
									Nextcloud								</h1>
															</div>
						</div>
					</header>
								<main>
					<div class="error">
	<h2>Error</h2>
	<ul>
			<li>
			<p>Failed to open the requested file.</p>
					</li>
		</ul>
</div>				</main>

Failed to open the requested file

I have compared with fresh new installtion and not migrated one(witch) works well and it should be like that:

cript nonce="removed=" defer src="/server/apps/firstrunwizard/js/about.js?v=39957389-0"></script>
<script nonce="removed=" defer src="/server/apps/theming/js/theming.js?v=39957389-0"></script>
<script nonce="removed=" defer src="/server/apps-external/richdocuments/js/richdocuments-document.js?v=39957389-0"></script>
<script nonce="removed=">
																																		 
var _oc_debug=false;
var _oc_isadmin=true;
var backendAllowsPasswordConfirmation=true;
var oc_dataURL=false;
var _oc_webroot="/server";
var _oc_appswebroots={"accessibility":"/server/apps/accessibility","activity":"/server/apps/activity","bruteforcesettings":"/server/apps-external/bruteforcesettings..
var datepickerFormatDate="M\/d\/yy";
var nc_lastLogin=1681911538;
var nc_pageLoad=1681916336;
var dayNames=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"];
var dayNamesShort=["Sun.","Mon.","Tue.","Wed.","Thu.","Fri.","Sat."];
var dayNamesMin=["Su","Mo","Tu","We","Th","Fr","Sa"];
var monthNames=["January","February","March","April","May","June","July","August","September","October","November","December"];
var monthNamesShort=["Jan.","Feb.","Mar.","Apr.","May.","Jun.","Jul.","Aug.","Sep.","Oct.","Nov.","Dec."];
var firstDay=0;
var _oc_config={"session_lifetime":1440,"session_keepalive":true,"auto_logout":false,"version":"24.0.5.1"..
var oc_appconfig={"core":{"defaultExpireDateEnabled":false,"defaultExpireDate":null,..
var _theme={"entity":"Nextcloud","name":"Nextcloud","productName":"Nextcloud",..
var oc_userconfig={"avatar":{"version":0,"generated":true}};

</script>

according to
apps-external/richdocuments/templates/documents.php

Could you help me what have I missed during upgrade? I think somewhere it remembers to the old Onlyoffice settings.

config.php is same in both version

hi @zsolex welcome to the forum :handshake:

from your description I guess you are testing NC using different domain where might have blocked Javascript in oppsite to your old installation…

@ [wwe] thx :slight_smile:

I have installed a new nexcloud 24 from scratch and it looks like little bit diffenet one compare to migrated version.

new one has following structure regarding apps:
apps folder inside lot of apps like:
calendar, dav, encryption, richdocuments, richdocumentscode, text usw.

migrated has follwing apps in app folders:
dav, encryption, text usw.

but no richdocuments, richdocumentscode, calendar

The migrated version has two more folder (from the old owncloud world) besides of app folder
apps-external and apps-extras(empty)

I have found calendar, richdocuments, richdocumentscode in apps-external

It looks like every new installed SW goes to apps-external

think config.php tells that

‘apps_paths’ =>
array (
0 =>
array (
‘path’ => ‘/var/www/server/apps’,
‘url’ => ‘/apps’,
‘writable’ => false,
),
1 =>
array (
‘path’ => ‘/var/www/server/apps-external’,
‘url’ => ‘/apps-external’,
‘writable’ => true,
),
),

Folder/file permissions are the same.

Can cause that the problem, I do not want only move or change the config regarding Database configuration.
What would be the clean way to clean it up?