zowe / zowe-install-packaging

Packaging repository for the Zowe install scripts and files
Eclipse Public License 2.0
27 stars 51 forks source link

PTF APPLY fails. Unable to delete files. #868

Closed John-A-Davies closed 4 years ago

John-A-Davies commented 4 years ago

Describe the bug The APPLY step failed RC=08 after I removed CHECK. The first error is

rm -r zlux-app-server                                                                                                    
rm: FSUM9196 cannot remove directory "zlux-app-server/deploy/instance/users/TSTRADM/ZLUX/pluginStorage/org.zowe.zlux.ng2 

There are many similar errors.

To Reproduce Steps to reproduce the behavior: Unzip the PTF bundle, extract the JCL and RECEIVE and APPLY the 2 PTFs. Remove the CHECK and re-run APPLY.

Expected behavior APPLY step RC=00

Additional context This may be because I ran SMP/E with a userid that is not effectively UID 0. If this is required, the Program Directory must say so. The Program Directory does say so but only for the FILESYS JOB which . Allocates a new z/OS UNIX file system . Creates a mount point directory . Mounts the file system

The FILESYS JOB is not part of the PTF bundle. The PTF bundle does not carry a Program Directory.

John-A-Davies commented 4 years ago

Job output is saved in DSN=TSTRADM.PTFREAP.LOG on WINMVS3B.

DATE 11/21/19  TIME 16:22:52                                      SMP/E 36.105  
SHELL SCRIPT ZWESHPAX OUTPUT FOR HFS ZWEPAX05                    SEQ NUM 000007 

-- Start script processing...                                                   

/tmp/usr/lpp/zowe/SMPE/ZWESHPAX                                                 
MV3B -- Thu Nov 21 16:22:52 2019 UTC                                            
uid=213(TSTRADM) gid=5(TSOUSER) groups=202(IZUADMIN),0(STGRP),201(ZOE)          

-- Input environment variables                                                  

SMP_Directory=/tmp/usr/lpp/zowe/SMPE/                                           
SMP_File     =ZWEPAX05                                                          
SMP_Phase    =POST                                                              
SMP_Action   =COPY                                                              

-- Processing ZWEPAX05 POST COPY                                                

cd /tmp/usr/lpp/zowe/SMPE/..                                                    
-- Existing manifest: "ZWEPAX.20191113_121708.manifest.txt"                     
eval manifest=ZWEPAX.20191118_182741.manifest.txt                               
-- Manifest in pax: "ZWEPAX.20191118_182741.manifest.txt"                       
+- manifest <> '', active <> '', manifest <> active                             
-- Removing files & manifest using active manifest                              
+- counting files                                                               
+- 1287 entries in components                                                   
+- 1 entries in manifest.json                                                   
+- 90 entries in sample-angular-app                                             
+- 14 entries in sample-iframe-app                                              
+- 40 entries in sample-react-app                                               
+- 54 entries in scripts                                                        
+- 22 entries in tn3270-ng2                                                     
+- 22 entries in vt-ng2                                                         
+- 23 entries in xmem-server                                                    
+- 2433 entries in zlux-app-manager                                             
+- 218 entries in zlux-app-server                                               
+- 18 entries in zlux-build                                                     
+- 154 entries in zlux-editor                                                   
+- 13 entries in zlux-platform                                                  
+- 5118 entries in zlux-server-framework                                        
+- 29 entries in zlux-shared                                                    
+- 19 entries in zlux-workflow                                                  
+- 13 entries in zosmf-auth                                                     
+- 13 entries in zss-auth                                                       
-- Removing 9581 files and directories                                          
+- removing components                                                          
rm -r components                                                                
+- removing manifest.json                                                       
rm -r manifest.json                                                             
+- removing sample-angular-app                                                  
rm -r sample-angular-app                                                        
+- removing sample-iframe-app                                                   
rm -r sample-iframe-app                                                         
+- removing sample-react-app                                                    
rm -r sample-react-app                                                                                                  
+- removing scripts                                                                                                     
rm -r scripts                                                                                                           
+- removing tn3270-ng2                                                                                                  
rm -r tn3270-ng2                                                                                                        
+- removing vt-ng2                                                                                                      
rm -r vt-ng2                                                                                                            
+- removing xmem-server                                                                                                 
rm -r xmem-server                                                                                                       
+- removing zlux-app-manager                                                                                            
rm -r zlux-app-manager                                                                                                  
+- removing zlux-app-server                                                                                             
rm -r zlux-app-server                                                                                                   
rm: FSUM9196 cannot remove directory "zlux-app-server/deploy/instance/users/TSTRADM/ZLUX/pluginStorage/org.zowe.zlux.ng2
desktop/ui/launchbar/plugins": EDC5111I Permission denied. (errno2=0xEF086015)                                          
rm: FSUM9196 cannot remove directory "zlux-app-server/deploy/instance/users/TSTRADM/ZLUX/pluginStorage/org.zowe.zlux.ng2
desktop/ui/launchbar": EDC5111I Permission denied. (errno2=0xEF086015)                                                  
rm: FSUM9196 cannot remove directory "zlux-app-server/deploy/instance/users/TSTRADM/ZLUX/pluginStorage/org.zowe.zlux.ng2
desktop/ui/themebin": EDC5111I Permission denied. (errno2=0xEF086015)                                                   
rm: FSUM9196 cannot remove directory "zlux-app-server/deploy/instance/users/TSTRADM/ZLUX/pluginStorage/org.zowe.zlux.ng2
desktop/ui": EDC5111I Permission denied. (errno2=0xEF086015)                                                            
rm: FSUM9196 cannot remove directory "zlux-app-server/deploy/instance/users/TSTRADM/ZLUX/pluginStorage/org.zowe.zlux.ng2
desktop/actions": EDC5111I Permission denied. (errno2=0xEF086015)                                                       
rm: FSUM9196 cannot remove directory "zlux-app-server/deploy/instance/users/TSTRADM/ZLUX/pluginStorage/org.zowe.zlux.ng2
desktop/recognizers": EDC5111I Permission denied. (errno2=0xEF086015)                                                   
rm: FSUM9196 cannot remove directory "zlux-app-server/deploy/instance/users/TSTRADM/ZLUX/pluginStorage/org.zowe.zlux.ng2
desktop": EDC5111I Permission denied. (errno2=0xEF086015)                                                               
rm: FSUM9196 cannot remove directory "zlux-app-server/deploy/instance/users/TSTRADM/ZLUX/pluginStorage/org.zowe.terminal
.tn3270/sessions": EDC5111I Permission denied. (errno2=0xEF086015)                                                      
rm: FSUM9196 cannot remove directory "zlux-app-server/deploy/instance/users/TSTRADM/ZLUX/pluginStorage/org.zowe.terminal
.tn3270": EDC5111I Permission denied. (errno2=0xEF086015)                                                               
rm: FSUM9196 cannot remove directory "zlux-app-server/deploy/instance/users/TSTRADM/ZLUX/pluginStorage/org.zowe.terminal
.vt/sessions": EDC5111I Permission denied. (errno2=0xEF086015)                                                          
rm: FSUM9196 cannot remove directory "zlux-app-server/deploy/instance/users/TSTRADM/ZLUX/pluginStorage/org.zowe.terminal
.vt": EDC5111I Permission denied. (errno2=0xEF086015)                                                                   
rm: FSUM9196 cannot remove directory "zlux-app-server/deploy/instance/users/TSTRADM/ZLUX/pluginStorage": EDC5111I Permis
sion denied. (errno2=0xEF086015)                                                                                        
rm: FSUM9196 cannot remove directory "zlux-app-server/deploy/instance/users/TSTRADM/ZLUX": EDC5111I Permission denied. (
errno2=0xEF086015)                                                                                                      
rm: FSUM9196 cannot remove directory "zlux-app-server/deploy/instance/users/TSTRADM": EDC5136I Directory not empty. (err
no2=0xEF086033)                                                                                                         
rm: FSUM9196 cannot remove directory "zlux-app-server/deploy/instance/users/WINCHJ/ZLUX/pluginStorage/org.zowe.zlux.ng2d
esktop/ui/launchbar/plugins": EDC5111I Permission denied. (errno2=0xEF086015)                                           
rm: FSUM9196 cannot remove directory "zlux-app-server/deploy/instance/users/WINCHJ/ZLUX/pluginStorage/org.zowe.zlux.ng2d
esktop/ui/launchbar": EDC5111I Permission denied. (errno2=0xEF086015)                                                   
rm: FSUM9196 cannot remove directory "zlux-app-server/deploy/instance/users/WINCHJ/ZLUX/pluginStorage/org.zowe.zlux.ng2d
esktop/ui/themebin": EDC5111I Permission denied. (errno2=0xEF086015)                                                    
rm: FSUM9196 cannot remove directory "zlux-app-server/deploy/instance/users/WINCHJ/ZLUX/pluginStorage/org.zowe.zlux.ng2d
esktop/ui": EDC5111I Permission denied. (errno2=0xEF086015)                                                             
rm: FSUM9196 cannot remove directory "zlux-app-server/deploy/instance/users/WINCHJ/ZLUX/pluginStorage/org.zowe.zlux.ng2d
esktop/actions": EDC5111I Permission denied. (errno2=0xEF086015)                                                        
rm: FSUM9196 cannot remove directory "zlux-app-server/deploy/instance/users/WINCHJ/ZLUX/pluginStorage/org.zowe.zlux.ng2d
esktop/recognizers": EDC5111I Permission denied. (errno2=0xEF086015)                                                    
rm: FSUM9196 cannot remove directory "zlux-app-server/deploy/instance/users/WINCHJ/ZLUX/pluginStorage/org.zowe.zlux.ng2d

Here are the file permissions for the first directory in error drwxr-x--- 2 IZUSVR IZUADMIN 0 Nov 14 12:32 zlux-app-server/deploy/instance/users/TSTRADM/ZLUX/pluginStorage/org.zowe.zlux.ng2desktop/ui/launchbar/plugins

John-A-Davies commented 4 years ago

I ran SMP/E RESTORE but that failed RC=08 too.

The zowe ROOT_DIR is now missing some directories

jes_explorer          
manifest.json         
mvs_explorer          
sample-angular-       
sample-iframe-a       
sample-react-ap       
scripts               
tn3270-ng2            
uss_explorer          
vt-ng2                
xmem-server           

So Zowe can't be restarted.

OnnoVdT commented 4 years ago

SMPE lays down zlux-app-server/deploy/instance/users, with nothing in it. Customization dumps stuff in here with different ownership, and that breaks the SMPE processes when SMPE lacks the permit to clean up this mess. This problem resolves itself once config/runtime no longer updates the install directory.

Until then you must test PTF before testing config/runtime, even with sufficient permits, as the PTF will erase all your customization.

John-A-Davies commented 4 years ago

Yes. Deleting these files created when zowe starts and runs has always been a problem, even for manual re-installs.

John-A-Davies commented 4 years ago

This problem will disappear when CUPIDS work is complete, because no changes will then be made to the SMP/E target directory. For now we can test APPLY of the PTF before any configuration is done.