Collabora CODE autostart

CODE derver dont work before -u apache apps/richdocumentscode/collabora/Collabora_Online.AppImage

system information

Nextcloud version (eg, 26.0.1): 27.1.5
Operating system and version (eg, Ubuntu 22.04): Linux 5.14.0-402.el9.x86_64 x86_64
Apache or nginx version (eg, Apache 2.4.25): Apache/2.4.57 (CentOS Stream)
PHP version (eg, 8.1): 8.2.14
Database (sqlite or MariaDB or Postgres) mysql Version: 10.5.16
Docker (compose)
Snap
Is this the first time you’ve seen this error? yes/no

The issue you are facing:

  • Steps to replicate it:
  1. I have Installed the CODE server from the apps shop
  2. I have Installed the NextCloudOffice from the apps shop
    2.a nextcloud CODE connection status green OK
  3. Documents didnt open by office (stuck on loading) but began to open when I start using DEMO server and I realized office CODE didnt work
  4. I have tried to run it manually using command: -u apache apps/richdocumentscode/collabora/Collabora_Online.AppImage
  5. It works, but I need to run the command manually
  • The output of your Nextcloud log in Admin > Logging:
no logs were found
  • The output of your config.php file in /path/to/nextcloud**
    (use https://.../settings/admin/support which auto-removes identifying information!):
    Enabled:
  • activity: 2.19.0
  • admin_audit: 1.17.0
  • bruteforcesettings: 2.7.0
  • calendar: 4.6.2
  • cloud_federation_api: 1.10.0
  • comments: 1.17.0
  • contactsinteraction: 1.8.0
  • dashboard: 7.7.0
  • dav: 1.27.0
  • deck: 1.11.2
  • federatedfilesharing: 1.17.0
  • federation: 1.17.0
  • files: 1.22.0
  • files_pdfviewer: 2.8.0
  • files_reminders: 1.0.0
  • files_rightclick: 1.6.0
  • files_sharing: 1.19.0
  • files_trashbin: 1.17.0
  • files_versions: 1.20.0
  • firstrunwizard: 2.16.0
  • logreader: 2.12.0
  • lookup_server_connector: 1.15.0
  • nextcloud_announcements: 1.16.0
  • notes: 4.9.2
  • notifications: 2.15.0
  • oauth2: 1.15.1
  • password_policy: 1.17.0
  • photos: 2.3.0
  • privacy: 1.11.0
  • provisioning_api: 1.17.0
  • recommendations: 1.6.0
  • related_resources: 1.2.0
  • richdocuments: 8.2.3
  • richdocumentscode: 23.5.604
  • serverinfo: 1.17.0
  • settings: 1.9.0
  • sharebymail: 1.17.0
  • support: 1.10.0
  • survey_client: 1.15.0
  • suspicious_login: 5.0.0
  • text: 3.8.0
  • theming: 2.2.0
  • twofactor_backupcodes: 1.16.0
  • twofactor_totp: 9.0.0
  • updatenotification: 1.17.0
  • user_status: 1.7.0
  • viewer: 2.1.0
  • weather_status: 1.7.0
  • workflowengine: 2.9.0
    Disabled:
  • circles: 26.0.0
  • encryption: 2.14.0
  • files_archive: 1.1.3
  • files_external
  • fileslibreofficeedit: 1.1.0
  • officeonline: 2.0.3
  • onlyoffice: 8.2.4
  • systemtags: 1.16.0
  • user_ldap
  • wopi: 3.5.11
Configuration (config/config.php)

{
“instanceid”: “REMOVED SENSITIVE VALUE”,
“passwordsalt”: “REMOVED SENSITIVE VALUE”,
“secret”: “REMOVED SENSITIVE VALUE”,
“trusted_domains”: [
“REMOVED SENSITIVE VALUE”
],
“forwarded_for_headers”: [
“HTTP_X_FORWARDED_FOR”
],
“datadirectory”: “REMOVED SENSITIVE VALUE”,
“dbtype”: “mysql”,
“version”: “27.1.5.1”,
“overwrite.cli.url”: “http://REMOVED SENSITIVE VALUE”,
“dbname”: “REMOVED SENSITIVE VALUE”,
“dbhost”: “REMOVED SENSITIVE VALUE”,
“dbport”: “”,
“memcache.local”: “\OC\Memcache\Redis”,
“memcache.locking”: “\OC\Memcache\Redis”,
“filelocking.enabled”: “true”,
“redis”: {
“host”: “REMOVED SENSITIVE VALUE”,
“port”: 0,
“timeout”: 0
},
“dbtableprefix”: “oc_”,
“mysql.utf8mb4”: true,
“dbuser”: “REMOVED SENSITIVE VALUE”,
“dbpassword”: “REMOVED SENSITIVE VALUE”,
“installed”: true,
“theme”: “”,
“loglevel”: 2,
“maintenance”: false,
“updater.release.channel”: “stable”,
“app_install_overwrite”: [
“files_archive”,
“wopi”
],
“twofactor_enforced”: “true”,
“twofactor_enforced_groups”: ,
“twofactor_enforced_excluded_groups”:
}

hi @doomerkg welcome to the forum :handshake:

you are missing the required support template. Please fill this form out and edit into your post. This will give us the technical info and logs needed to help you in case the machine in question in spitting out errors! Since you’ve provided zero technical details it is impossible to help you as-is. Thanks.

Please use the search - lot of issues have been discussed already

I have changed my post according the rules. Sorry.

you are welcome.

Please check/upload nextcloud.log and apache log - if there is something related to CODE start - when you restart the system.

older thread describes a ugly workaround with crontab

Please review:

1 Like

NC v19 not able to start CODE
done this work arround hope this gonna help

#sudo netstat -tulpn|grep loolwsd

kill all runnin loolwsd
2)

sudo kill 7448

  1. go to NC-dir

cd /var/www/html/nextcloud/apps/richdocumentscode/collabora/

  1. start it manually

sudo -u www-data ./Collabora_Online.AppImage &disown

  1. check if workin and /port

sudo netstat -tulpn|grep loolwsd

be aware after reboot you have to do it again or you can add
a cron
#sudo -u www-data crontab -e
#@reboot /var/www/html/nextcloud/apps/richdocumentscode/collabora/Collabora_Online.AppImage </dev/null &>/dev/nul