Update Script Failure on Centos7

After running the updated against the latest packaged version of Zammad on Centos 7, We received this error.

Updating   : zammad-3.1.0-1570545649.c1160c5e.centos7.x86_64                                                                                                                                                                                             
chown: cannot access ‘/opt/zammad/tmp/cache_file_store_production/507’: No such file or directory
warning: %post(zammad-3.1.0-1570545649.c1160c5e.centos7.x86_64) scriptlet failed, exit status 1
Non-fatal POSTIN scriptlet failure in rpm package zammad-3.1.0-1570545649.c1160c5e.centos7.x86_64
ls /opt/zammad/tmp/cache_file_store_production/50*
/opt/zammad/tmp/cache_file_store_production/501:
1B0

/opt/zammad/tmp/cache_file_store_production/504:
450

/opt/zammad/tmp/cache_file_store_production/506:
470

/opt/zammad/tmp/cache_file_store_production/507:
480

/opt/zammad/tmp/cache_file_store_production/50A:
4B0

Hi,

i didn’t tried the update but have you enforced SELinux? Some informations using “sealert -a /var/log/audit/audig.log”?

Wolfgang

Hey,

SELINUX is disabled on the system. I did another update on another C7 host and it completed successfully so it seems linked to the current implementation of Zammad on the host.

I’ll try re-run the update.

Seems a yum reinstall zammad worked this time.

Reinstall  1 Package

Total download size: 236 M
Installed size: 653 M
Is this ok [y/d/N]: y
Downloading packages:
zammad-3.1.0-1570545649.c1160c5e.centos7.x86_64.rpm                                                                                                                                           | 236 MB  00:00:26     
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Installing : zammad-3.1.0-1570545649.c1160c5e.centos7.x86_64                                                                                                                                                   1/1 
# (Re)creating init scripts
Nothing to do.
Nothing to do.
Nothing to do.
# Enabling Zammad on boot
# Stopping Zammad
# database.yml found. Updating db...
# Updating translations...
# Configuring Elasticsearch...
-> removing [ingest-attachment]...
-> Downloading ingest-attachment from elastic
[=================================================] 100%   
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@     WARNING: plugin requires additional permissions     @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
* java.lang.RuntimePermission accessClassInPackage.sun.java2d.cmm.kcms
* java.lang.RuntimePermission accessDeclaredMembers
* java.lang.RuntimePermission getClassLoader
* java.lang.reflect.ReflectPermission suppressAccessChecks
* java.security.SecurityPermission createAccessControlContext
* java.security.SecurityPermission insertProvider
* java.security.SecurityPermission putProviderProperty.BC
See http://docs.oracle.com/javase/8/docs/technotes/guides/security/permissions.html
for descriptions of what these permissions allow and the associated risks.
-> Installed ingest-attachment
# Starting Zammad
# Creating webserver bootstart
# Restarting webserver nginx
####################################################################################

Add your fully qualified domain name or public IP to servername directive of
nginx, if this installation is done on a remote server. You have to change:
/etc/nginx/conf.d/zammad.conf and restart nginx process.
Otherwise just open http://localhost/ in your browser to start using Zammad.


 Remember to enable selinux and firewall rules!

Use the following commands:
        setsebool httpd_can_network_connect on -P
        firewall-cmd --zone=public --add-service=http --permanent
        firewall-cmd --zone=public --add-service=https --permanent
        firewall-cmd --reload

####################################################################################
  Verifying  : zammad-3.1.0-1570545649.c1160c5e.centos7.x86_64                                                                                                                                                   1/1 

Installed:
  zammad.x86_64 0:3.1.0-1570545649.c1160c5e.centos7                                                                                                                                                                  

Complete!
1 Like

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