ZendServer Deployment Fails

General discussion forum for the Zend Server

ZendServer Deployment Fails

Postby tdw-unreality on Wed Nov 07, 2012 4:14 pm

Hi,

on RHEL 5.8 ZendServer deployment always fails with the error "Unable to rename /usr/local/zend/tmp/zdd/.hm4218/application to /usr/local/zend/var/apps/http/__default__/0/kkp/1.0.0.15 Is a directory".
When doing an ls -l /usr/local/zend/var/apps/http/__default__/0/kkp/1.0.0.15 it shows me that it is a file instead of a directory. I tried to deploy the same package to another Server (Debian 6) which worked without problems.

zdd.log:
Code: Select all
[07.11.2012 15:37:19 DBG1] ZDDeploymentManager: upgrading app http://<default-server>/kkp
[07.11.2012 15:37:19 DBG1] Extracted package will be at /usr/local/zend/tmp/zdd/.uC4218
[07.11.2012 15:37:19 DBG1] Extracting /usr/local/zend/tmp/qt_temp.Dh4218 into /usr/local/zend/tmp/zdd/.uC4218
[07.11.2012 15:37:20 DBG1] Updating http://<default-server>/kkp status to DEACTIVATING with the message Deactivating current application (version 1.0.0.14)
[07.11.2012 15:37:20 DBG1] Removing alias /usr/local/zend/etc/sites.d/http/__default__/0/98_kkp.conf
[07.11.2012 15:37:20 DBG1] Updating http://<default-server>/kkp status to UPLOADING
[07.11.2012 15:37:20 DBG1] Extracted package will be at /usr/local/zend/tmp/zdd/.hm4218
[07.11.2012 15:37:20 DBG1] Extracting /usr/local/zend/tmp/qt_temp.KV4218 into /usr/local/zend/tmp/zdd/.hm4218
[07.11.2012 15:37:20 DBG1] Updating http://<default-server>/kkp status to STAGING
[07.11.2012 15:37:20 DBG1] Zend Params: baseUrl='http://<default-server>/kkp', createVhost='1', ignoreFailures='0', userApplicationName='KKP'
[07.11.2012 15:37:20 DBG1] User Params: application_mode='production', writable_dir='/opt/Apache/kkp'
[07.11.2012 15:37:20 DBG1] Checking for global script /pre_stage.php
[07.11.2012 15:37:20 DBG1] Extracted package scripts are in /usr/local/zend/tmp/zdd/.LU4218
[07.11.2012 15:37:20 DBG1] Executing pre_stage.php
[07.11.2012 15:37:21 DBG1] Execution of  pre_stage.php  was successful
[07.11.2012 15:37:21 DBG1] Application version is 1.0.0.15
[07.11.2012 15:37:21 DBG1] Unable to rename /usr/local/zend/tmp/zdd/.hm4218/application to /usr/local/zend/var/apps/http/__default__/0/kkp/1.0.0.15 Is a directory
[07.11.2012 15:37:22 DBG1] Unable to rename /usr/local/zend/tmp/zdd/.hm4218/application to /usr/local/zend/var/apps/http/__default__/0/kkp/1.0.0.15 Is a directory
[07.11.2012 15:37:23 DBG1] Unable to rename /usr/local/zend/tmp/zdd/.hm4218/application to /usr/local/zend/var/apps/http/__default__/0/kkp/1.0.0.15 Is a directory
[07.11.2012 15:37:24 DBG1] Unable to rename /usr/local/zend/tmp/zdd/.hm4218/application to /usr/local/zend/var/apps/http/__default__/0/kkp/1.0.0.15 Is a directory
[07.11.2012 15:37:25 DBG1] Unable to rename /usr/local/zend/tmp/zdd/.hm4218/application to /usr/local/zend/var/apps/http/__default__/0/kkp/1.0.0.15 Is a directory
[07.11.2012 15:37:26 DBG1] Unable to rename /usr/local/zend/tmp/zdd/.hm4218/application to /usr/local/zend/var/apps/http/__default__/0/kkp/1.0.0.15 Is a directory
[07.11.2012 15:37:27 DBG1] Unable to rename /usr/local/zend/tmp/zdd/.hm4218/application to /usr/local/zend/var/apps/http/__default__/0/kkp/1.0.0.15 Is a directory
[07.11.2012 15:37:28 DBG1] Unable to rename /usr/local/zend/tmp/zdd/.hm4218/application to /usr/local/zend/var/apps/http/__default__/0/kkp/1.0.0.15 Is a directory
[07.11.2012 15:37:29 DBG1] Unable to rename /usr/local/zend/tmp/zdd/.hm4218/application to /usr/local/zend/var/apps/http/__default__/0/kkp/1.0.0.15 Is a directory
[07.11.2012 15:37:30 DBG1] Unable to rename /usr/local/zend/tmp/zdd/.hm4218/application to /usr/local/zend/var/apps/http/__default__/0/kkp/1.0.0.15 Is a directory
[07.11.2012 15:37:31 ERROR] Unable to rename /usr/local/zend/tmp/zdd/.hm4218/application to /usr/local/zend/var/apps/http/__default__/0/kkp/1.0.0.15 Is a directory
[07.11.2012 15:37:31 DBG1] Updating http://<default-server>/kkp status to STAGING_ERROR with the message Unable to rename application dir /usr/local/zend/tmp/zdd/.hm4218/application to /usr/local/zend/var/apps/http/__default__/0/kkp/1.0.0.15. Is a directory
[07.11.2012 15:37:31 ERROR] UPGRADE error: Unable to rename application dir /usr/local/zend/tmp/zdd/.hm4218/application to /usr/local/zend/var/apps/http/__default__/0/kkp/1.0.0.15. Is a directory


We never had such issues on Debian.
tdw-unreality
 
Posts: 33
Joined: Sun Jan 30, 2011 7:13 pm

Re: ZendServer Deployment Fails

Postby zvika on Thu Nov 08, 2012 5:59 pm

Hi

I just deployed successfully a 3MB app on default host using RHEL 5.8 64-bit VM and Zend Server PHP 5.3.

Please check SELinux,
and also Mount points for /usr/local/zend/tmp and /usr/local/zend/var, in case they need to be modified for Apache user access:
Code: Select all
# ls -la /usr/local/zend
drwxr-xr-x 11 root   root 4096 Nov  8 18:43 .
...
drwxrwsr-x  7 apache zend 4096 Nov  8 18:55 tmp
drwxr-xr-x  8 root   root 4096 Nov  8 18:43 var
Zvika Dror
Zend Support Team
User avatar
zvika
Zend Global Support
 
Posts: 818
Joined: Sun Dec 14, 2008 9:48 am


Return to Zend Server

Who is online

Users browsing this forum: No registered users and 6 guests