GMU - GatewayMigrationUtility.sh V10.0 with error - Can't load log handler "com.ca.gateway.rest.commandline.LogFileHandler"

book

Article ID: 194616

calendar_today

Updated On:

Products

CA API Gateway API SECURITY CA API Gateway Precision API Monitoring Module for API Gateway (Layer 7) CA API Gateway Enterprise Service Manager (Layer 7) STARTER PACK-7 CA Microgateway

Issue/Introduction

The following noises/errors occur with any gmu commands; however, the actual commands execute fine but it throws these noises at the beginning. 
 
GatewayMigrationUtility.sh list --type SERVICE --argFile svm1289.properties
Can't load log handler "com.ca.gateway.rest.commandline.LogFileHandler"
java.nio.file.AccessDeniedException: ./gmu.log.lck
java.nio.file.AccessDeniedException: ./gmu.log.lck
        at sun.nio.fs.UnixException.translateToIOException(UnixException.java:84)
        at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:102)
        at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:107)
        at sun.nio.fs.UnixFileSystemProvider.newFileChannel(UnixFileSystemProvider.java:177)
        at java.nio.channels.FileChannel.open(FileChannel.java:287)
        at java.nio.channels.FileChannel.open(FileChannel.java:335)
        at java.util.logging.FileHandler.openFiles(FileHandler.java:459)
        at java.util.logging.FileHandler.<init>(FileHandler.java:292)
        at com.ca.gateway.rest.commandline.LogFileHandler.<init>(Unknown Source)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
        at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
        at java.lang.Class.newInstance(Class.java:442)
        at java.util.logging.LogManager$5.run(LogManager.java:966)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.util.logging.LogManager.loadLoggerHandlers(LogManager.java:958)
        at java.util.logging.LogManager.initializeGlobalHandlers(LogManager.java:1578)
        at java.util.logging.LogManager.access$1500(LogManager.java:145)
        at java.util.logging.LogManager$RootLogger.accessCheckedHandlers(LogManager.java:1667)
        at java.util.logging.Logger.getHandlers(Logger.java:1777)
        at java.util.logging.Logger.log(Logger.java:735)
        at java.util.logging.Logger.doLog(Logger.java:765)
        at java.util.logging.Logger.log(Logger.java:788)
        at com.ca.gateway.rest.commandline.command.GatewayCommand.setClientConfig(Unknown Source)
        at com.ca.gateway.rest.commandline.command.GatewayCommand.init(Unknown Source)
        at com.ca.gateway.rest.commandline.command.ListCommand.init(Unknown Source)
        at com.ca.gateway.rest.commandline.command.Command.init(Unknown Source)
        at com.ca.gateway.rest.commandline.Main.main(Unknown Source)  

Environment

Release : 10.0

Component : API GATEWAY

Resolution

It is a java error; this is not a gateway specific error. And that the o/s is not allowing it to access the file.
The actual problem was related to the group permissions of the GMU folder.

>> chmod -R g+rwx <gmu folder>

The details of java error can be found in the following link.
https://docs.oracle.com/javase/8/docs/api/java/nio/file/AccessDeniedException.html