Problem updating zammad from 2.9 to 2.9 last release

Infos:

  • Used Zammad version: 2.9
  • Used Zammad installation source: package
  • Operating system: ubuntu 16.04

Actual behavior:

I did a dist-upgrade of my system and I have a problem upgrading to the last release of zammad.

I post here the error message. I tryed to install libimlib2 libimlib2-dev but they were already installed.

Setting up zammad (2.9.0-1557934377.16325a31.xenial) …
chown: cannot access ‘/opt/zammad/tmp/cache_file_store_production/507’: No such file or directory
chown: cannot access ‘/opt/zammad/tmp/cache_file_store_production/504’: No such file or directory
dpkg: error processing package zammad (–configure):
subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
zammad
E: Sub-process /usr/bin/dpkg returned an error code (1)
W: Operation was interrupted before it could finish

apt-get install libimlib2 libimlib2-dev
Reading package lists… Done
Building dependency tree
Reading state information… Done
libimlib2 is already the newest version (1.4.7-1ubuntu0.1).
libimlib2 set to manually installed.
libimlib2-dev is already the newest version (1.4.7-1ubuntu0.1).
libimlib2-dev set to manually installed.
The following packages were automatically installed and are no longer required:
linux-headers-4.4.0-146 linux-headers-4.4.0-146-generic
Use ‘apt autoremove’ to remove them.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] y
Setting up zammad (2.9.0-1557934377.16325a31.xenial) …
chown: cannot access ‘/opt/zammad/tmp/cache_file_store_production/504’: No such file or directory
dpkg: error processing package zammad (–configure):
subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
zammad
E: Sub-process /usr/bin/dpkg returned an error code (1)
W: Operation was interrupted before it could finish

Can you help please ?

Thank you very much. I love Zammad

1 Like

Please run zammad run rails r 'Cache.clear' and try again.

I have this warning, even if I do what it ask to do

root@helpdesk:~# chmod 0664 /opt/zammad/log/production.log
root@helpdesk:~# zammad run rails r ‘Cache.clear’
WARNING: Nokogiri was built against LibXML version 2.9.3, but has dynamically loaded 2.9.4
Rails Error: Unable to access log file. Please ensure that /opt/zammad/log/production.log exists and is writable (ie, make it writable for user and group: chmod 0664 /opt/zammad/log/production.log). The log level has been raised to WARN and the output directed to STDERR until the problem is fixed.

Phew, please let us know who owns the logfile ~

zammad user and zammad group

ls -l /opt/zammad/log/production.log
-rw-rw-r-- 1 zammad zammad 1607930 May 24 14:52 /opt/zammad/log/production.log

If you run zammad run rails r ‘Cache.clear’ now, it still can’t write to your logfile…?!
Ensure your system has enough free space on the drive.

Also, the Nokogiri-Warning is safe to ignore (and normal).

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