.ott document template creates .docx files, not .odt

Nextcloud version : 30.0.2
Operating system and version: Debian GNU/Linux 12 (bookworm), Linux raspberrypi 6.6.51+rpt-rpi-2712 #1 SMP PREEMPT Debian 1:6.6.51-1+rpt3 (2024-10-08) aarch64 GNU/Linux
Apache or nginx version: nginx/1.22.1
PHP version: 8.3.12

The issue you are facing:

I created a .ott template document in LibreOffice locally and uploaded it to Nextcloud via Admin > Office > Global templates

Whenever I create a new file with this template, a .docx file is created. I’d like it to be .odt just as the default Empty template creates documents.

Is this the first time you’ve seen this error? (Y/N):

Y

Steps to replicate it:

  1. Upload .ott template file to Nextcloud
  2. Create new document from template
  3. See that the document is .docx, not .odt.

The output of your Nextcloud log in Admin > Logging, I get an empty error with the following details:

{"reqId":"OoNs6WUceWAFAbEv1vPS","level":3,"time":"2024-11-09T13:32:01+00:00","remoteAddr":"192.168.1.1","user":"DeviantEgg","app":"richdocuments","method":"GET","url":"/ocs/v2.php/apps/files/api/v1/templates","message":"","userAgent":"Mozilla/5.0 (X11; Linux x86_64; rv:128.0) Gecko/20100101 Firefox/128.0","version":"30.0.2.2","data":{"app":"richdocuments"}}

The output of your config.php file in /path/to/nextcloud (make sure you remove any identifiable information!):

<?php
$CONFIG = array (
  'instanceid' => ''
  'passwordsalt' => ''
  'secret' => ''
  'trusted_domains' => 
  array (
    2 => 'example.com'
    1 => 'public ip here',
  ),
  'datadirectory' => '/mnt/external-drive/projects/nextcloud/data',
  'dbtype' => 'pgsql',
  'version' => '30.0.2.2',
  'overwrite.cli.url' => 'https://collabora.example.com',
  'dbname' => ''
  'dbhost' => 'localhost:5432',
  'dbport' => '',
  'dbtableprefix' => 'oc_',
  'dbuser' => '',
  'dbpassword' => ''
  'default_phone_region' => 'DK',
  'installed' => true,
  'maintenance' => false,
  'memcache.local' => '\\OC\\Memcache\\Redis',
  'memcache.locking' => '\\OC\\Memcache\\Redis',
  'redis' => 
  array (
    'host' => 'localhost',
    'port' => 6379,
    'password' => '',
    'timeout' => 1.5,
  ),
  'maintenance_window_start' => '03:00',
  'maintenance_window_end' => '05:00',
  'mail_smtpmode' => 'smtp',
  'mail_smtpsecure' => 'ssl',
  'mail_sendmailmode' => 'smtp',
  'theme' => '',
  'loglevel' => 0,
);

The output of your Apache/nginx/system log in /var/log/____:

2024/11/09 14:31:33 [error] 57209#57209: *13167 open() "/usr/share/nginx/html/mnt/external-drive/projects/nextcloud/data/.ncdata" failed (2: No such file or directory), client: 192.168.1.1, server: collabora.example.dk, request: "GET /mnt/external-drive/projects/nextcloud/data/.ncdata HTTP/1.1", host: "185.105.x.x"  

The output of journalctl coolwsd:

nov 09 14:25:29 raspberrypi coolwsd[57079]: wsd-57079-57095 2024-11-09 14:25:29.289489 +0100 [ websrv_poll ] ERR  Skipping the token [--nc-light-color-primary-default=] since it is empty| wsd/FileServerUtil.cpp:410

It seems I’ve solved my own problem again. I was too unaware about the options I’ve chosen. The “Use Office Open XML (OOXML) instead of OpenDocument Format (ODT) by default for new files” was toggled on, as it was recommended by the guide I had followed. I’m still curious why you’d want to choose OOXML over ODT when working in Collabora. If Collabora is an online LibreOffice service, wouldn’t ODT be better compatible with it?

This topic was automatically closed 8 days after the last reply. New replies are no longer allowed.