# Collabora (CODE) not starting - Demo-Server working - Error: ZipArchive::open()

**URL:** <https://help.nextcloud.com/t/collabora-code-not-starting-demo-server-working-error-ziparchive-open/128587>\
**Category:** ℹ️ Support\
**Created:** [December 4, 2021, 5:55pm UTC](https://help.nextcloud.com/t/collabora-code-not-starting-demo-server-working-error-ziparchive-open/128587 "2021-12-04T17:55:52Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![hartworx](https://help.nextcloud.com/letter_avatar/hartworx/32/5_5575768a8748004e209b776fc1b2916d.png) [@hartworx](https://help.nextcloud.com/u/hartworx)\
**Post date:** [December 4, 2021, 5:55pm UTC](https://help.nextcloud.com/t/collabora-code-not-starting-demo-server-working-error-ziparchive-open/128587/1 "2021-12-04T17:55:52Z")

</div>

Hello everyone - maybe you can hint me to the right direction what is going wrong in my docker container setop.

I updated my Docker from 22.x (latest Version) to 23.0.0. Collabora was working before.  
Now I only get a spinning beachball when I want to create or edit an office file.  
 ![Screenshot_1](https://help.nextcloud.com/uploads/default/original/3X/0/1/019f805a63df0ffc479f426bfbc0648597097bb8.jpeg)

Nextcloud: Latest Docker image

The issue you are facing:  
Just a beachball. Log file is giving me an error:

Fehler PHP Error: ZipArchive::open(): Using empty file as ZipArchive is deprecated at /var/www/html/lib/private/Archive/ZIP.php#50

```
<<closure>>

OC\Log\ErrorHandler::onError(8192, "ZipArchive: ... d", "/var/www/ht ... p", 50)

/var/www/html/lib/private/Archive/ZIP.php - line 50:

ZipArchive->open("/tmp/oc_tmp_JDCV9H", 1)

/var/www/html/lib/private/Preview/Bundled.php - line 41:

OC\Archive\ZIP->__construct("/tmp/oc_tmp_JDCV9H")

/var/www/html/lib/private/Preview/OpenDocument.php - line 44:

OC\Preview\Bundled->extractThumbnail(OC\Files\Node\File {}, "Thumbnails/thumbnail.png")

/var/www/html/lib/private/Preview/GeneratorHelper.php - line 62:

OC\Preview\OpenDocument->getThumbnail(OC\Files\Node\File {}, 4096, 4096)

/var/www/html/lib/private/Preview/Generator.php - line 245:

OC\Preview\GeneratorHelper->getThumbnail(OC\Preview\OpenDocument {}, OC\Files\Node\File {}, 4096, 4096)

/var/www/html/lib/private/Preview/Generator.php - line 140:

OC\Preview\Generator->getMaxPreview(OC\Files\Sim ... {}, OC\Files\Node\File {}, "application ... n", "")

/var/www/html/lib/private/Preview/Generator.php - line 109:

OC\Preview\Generator->generatePreviews(OC\Files\Node\File {}, [{ width: 2 ... }], "application ... n")

/var/www/html/lib/private/PreviewManager.php - line 212:

OC\Preview\Generator->getPreview(OC\Files\Node\File {}, 250, 250, true, "fill", null)

/var/www/html/core/Controller/PreviewController.php - line 169:

OC\PreviewManager->getPreview(OC\Files\Node\File {}, 250, 250, true, "fill")

/var/www/html/core/Controller/PreviewController.php - line 142:

OC\Core\Controller\PreviewController->fetchPreview(OC\Files\Node\File {}, 250, 250, false, false, "fill")

/var/www/html/lib/private/AppFramework/Http/Dispatcher.php - line 217:

OC\Core\Controller\PreviewController->getPreviewByFileId(354151, 250, 250, false, false, "fill")

/var/www/html/lib/private/AppFramework/Http/Dispatcher.php - line 126:

OC\AppFramework\Http\Dispatcher->executeController(OC\Core\Cont ... {}, "getPreviewByFileId")

/var/www/html/lib/private/AppFramework/App.php - line 157:

OC\AppFramework\Http\Dispatcher->dispatch(OC\Core\Cont ... {}, "getPreviewByFileId")

/var/www/html/lib/private/Route/Router.php - line 302:

OC\AppFramework\App::main("OC\\Core\\C ... r", "getPreviewByFileId", OC\AppFramew ... {}, { _route: "c ... "})

/var/www/html/lib/base.php - line 1006:

OC\Route\Router->match("/core/preview")

/var/www/html/index.php - line 36:

OC::handleRequest()

```

```auto
This is my config.php:
<?php
$CONFIG = array (
  'htaccess.RewriteBase' => '/',
  'memcache.local' => '\\OC\\Memcache\\APCu',
  'apps_paths' => 
  array (
    0 => 
    array (
      'path' => '/var/www/html/apps',
      'url' => '/apps',
      'writable' => false,
    ),
    1 => 
    array (
      'path' => '/var/www/html/custom_apps',
      'url' => '/custom_apps',
      'writable' => true,
    ),
  ),
  'instanceid' => 'HELLOANDTHANKS',
  'passwordsalt' => 'HELLOANDTHANKS',
  'secret' => 'HELLOANDTHANKS',
  'trusted_domains' => 
  array (
    0 => 'nc.retouch.one',
  ),
  'datadirectory' => '/var/www/html/data',
  'dbtype' => 'mysql',
  'version' => '23.0.0.10',
  'overwrite.cli.url' => 'http://nc.retouch.one',
  'dbname' => 'nextcloud',
  'dbhost' => 'db2',
  'dbport' => '',
  'dbtableprefix' => 'oc_',
  'mysql.utf8mb4' => true,
  'dbuser' => 'HELLOANDTHANKS',
  'dbpassword' => 'HELLOANDTHANKS',
  'installed' => true,
  'default_phone_region' => 'DE',
  'theme' => '',
  'loglevel' => 2,
  'maintenance' => false,
  'mail_from_address' => 'nc',
  'mail_smtpmode' => 'smtp',
  'mail_sendmailmode' => 'smtp',
  'mail_domain' => 'retouch.one',
  'mail_smtpauthtype' => 'LOGIN',
  'mail_smtpauth' => 1,
  'mail_smtphost' => 'HELLOANDTHANKS',
  'mail_smtpport' => '465',
  'mail_smtpname' => 'HELLOANDTHANKS@retouch.one',
  'mail_smtppassword' => 'HELLOANDTHANKS',
  'mail_smtpsecure' => 'ssl',
  'overwriteprotocol' => 'https',
  'inoodb_read_only_compressed' => false,
);

```

```auto
{"reqId":"bK1HMKS01sheIZRdo8ep","level":3,"time":"2021-12-04T17:10:50+00:00","remoteAddr":"88.153.224.159","user":"Hartmut","app":"PHP","method":"GET","url":"/core/preview?fileId=354128&c=b3d3360a3ff40cf1a35b264245fa5c61&x=250&y=250&forceIcon=0&a=0","message":"ZipArchive::open(): Using empty file as ZipArchive is deprecated at /var/www/html/lib/private/Archive/ZIP.php#50","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:94.0) Gecko/20100101 Firefox/94.0","version":"23.0.0.10","exception":{"Exception":"Error","Message":"ZipArchive::open(): Using empty file as ZipArchive is deprecated at /var/www/html/lib/private/Archive/ZIP.php#50","Code":0,"Trace":[{"function":"onError","class":"OC\\Log\\ErrorHandler","type":"::","args":[8192,"ZipArchive::open(): Using empty file as ZipArchive is deprecated","/var/www/html/lib/private/Archive/ZIP.php",50]},{"file":"/var/www/html/lib/private/Archive/ZIP.php","line":50,"function":"open","class":"ZipArchive","type":"->","args":["/tmp/oc_tmp_RP2tfz",1]},{"file":"/var/www/html/lib/private/Preview/Bundled.php","line":41,"function":"__construct","class":"OC\\Archive\\ZIP","type":"->","args":["/tmp/oc_tmp_RP2tfz"]},{"file":"/var/www/html/lib/private/Preview/OpenDocument.php","line":44,"function":"extractThumbnail","class":"OC\\Preview\\Bundled","type":"->","args":[{"__class__":"OC\\Files\\Node\\File"},"Thumbnails/thumbnail.png"]},{"file":"/var/www/html/lib/private/Preview/GeneratorHelper.php","line":62,"function":"getThumbnail","class":"OC\\Preview\\OpenDocument","type":"->","args":[{"__class__":"OC\\Files\\Node\\File"},4096,4096]},{"file":"/var/www/html/lib/private/Preview/Generator.php","line":245,"function":"getThumbnail","class":"OC\\Preview\\GeneratorHelper","type":"->","args":[{"__class __":"OC\\Preview\\OpenDocument"},{"__ class__":"OC\\Files\\Node\\File"},4096,4096]},{"file":"/var/www/html/lib/private/Preview/Generator.php","line":140,"function":"getMaxPreview","class":"OC\\Preview\\Generator","type":"->","args":[{"__class __":"OC\\Files\\SimpleFS\\SimpleFolder"},{"__ class__":"OC\\Files\\Node\\File"},"application/vnd.oasis.opendocument.text",""]},{"file":"/var/www/html/lib/private/Preview/Generator.php","line":109,"function":"generatePreviews","class":"OC\\Preview\\Generator","type":"->","args":[{"__class__":"OC\\Files\\Node\\File"},[{"width":250,"height":250,"crop":true,"mode":"fill"}],"application/vnd.oasis.opendocument.text"]},{"file":"/var/www/html/lib/private/PreviewManager.php","line":212,"function":"getPreview","class":"OC\\Preview\\Generator","type":"->","args":[{"__class__":"OC\\Files\\Node\\File"},250,250,true,"fill",null]},{"file":"/var/www/html/core/Controller/PreviewController.php","line":169,"function":"getPreview","class":"OC\\PreviewManager","type":"->","args":[{"__class__":"OC\\Files\\Node\\File"},250,250,true,"fill"]},{"file":"/var/www/html/core/Controller/PreviewController.php","line":142,"function":"fetchPreview","class":"OC\\Core\\Controller\\PreviewController","type":"->","args":[{"__class__":"OC\\Files\\Node\\File"},250,250,false,false,"fill"]},{"file":"/var/www/html/lib/private/AppFramework/Http/Dispatcher.php","line":217,"function":"getPreviewByFileId","class":"OC\\Core\\Controller\\PreviewController","type":"->","args":[354128,250,250,false,false,"fill"]},{"file":"/var/www/html/lib/private/AppFramework/Http/Dispatcher.php","line":126,"function":"executeController","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->","args":[{"__class__":"OC\\Core\\Controller\\PreviewController"},"getPreviewByFileId"]},{"file":"/var/www/html/lib/private/AppFramework/App.php","line":157,"function":"dispatch","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->","args":[{"__class__":"OC\\Core\\Controller\\PreviewController"},"getPreviewByFileId"]},{"file":"/var/www/html/lib/private/Route/Router.php","line":302,"function":"main","class":"OC\\AppFramework\\App","type":"::","args":["OC\\Core\\Controller\\PreviewController","getPreviewByFileId",{"__class__":"OC\\AppFramework\\DependencyInjection\\DIContainer"},{"_route":"core.Preview.getPreviewByFileId"}]},{"file":"/var/www/html/lib/base.php","line":1006,"function":"match","class":"OC\\Route\\Router","type":"->","args":["/core/preview"]},{"file":"/var/www/html/index.php","line":36,"function":"handleRequest","class":"OC","type":"::","args":[]}],"File":"/var/www/html/lib/private/Log/ErrorHandler.php","Line":92,"CustomMessage":"--"}}

```

Thanks a lot,  
Hartmut

---

<div class="post-metadata">

**Author:** ![ipa](https://help.nextcloud.com/letter_avatar/ipa/32/5_5575768a8748004e209b776fc1b2916d.png) [@ipa](https://help.nextcloud.com/u/ipa)\
**Post date:** [December 6, 2021, 9:08am UTC](https://help.nextcloud.com/t/collabora-code-not-starting-demo-server-working-error-ziparchive-open/128587/2 "2021-12-06T09:08:32Z")

</div>

Hello Hartmut,

I had the same problem with a manual Installation. V 5 of Collabora doesn’t work with the CODE server. Unfortunately, the soution is to downgrade to the previous version as described here:

> [@PSA: How to get collabora working on nextcloud 23!](https://help.nextcloud.com/t/psa-how-to-get-collabora-working-on-nextcloud-23/128511):
>
> The developers of nextcloud 23 decided to release a non-working richdocuments app (v5.0.0). No idea why. The richdocuments developer was aware of this problem before the official release of 23. Plenty of time to pull the app and prevent this. To fix collabora (on a fresh install): Download nextcloud 23; unzip; go into /var/www/nextcloud/apps/ download [https://github.com/nextcloud/richdocuments/releases/download/v4.1.2/richdocuments.tar.gz](https://github.com/nextcloud/richdocuments/releases/download/v4.1.2/richdocuments.tar.gz) tar xf richdocuments tar.gz chown -R www-data:www-…

---

<div class="post-metadata">

**Author:** ![wwe](https://help.nextcloud.com/user_avatar/help.nextcloud.com/wwe/32/72963_2.png) [@wwe](https://help.nextcloud.com/u/wwe)\
**Post date:** [December 14, 2024, 2:44pm UTC](https://help.nextcloud.com/t/collabora-code-not-starting-demo-server-working-error-ziparchive-open/128587/3 "2024-12-14T14:44:26Z")

</div>



---

<div class="post-metadata">

**Author:** ![wwe](https://help.nextcloud.com/user_avatar/help.nextcloud.com/wwe/32/72963_2.png) [@wwe](https://help.nextcloud.com/u/wwe)\
**Post date:** [December 14, 2024, 2:44pm UTC](https://help.nextcloud.com/t/collabora-code-not-starting-demo-server-working-error-ziparchive-open/128587/4 "2024-12-14T14:44:27Z")

</div>


