4 Replies Latest reply on Nov 21, 2016 8:11 AM by azhidkov

    RHQ install ERROR [org.rhq.server.control.RHQControl] error=2, No such file or directory

    azhidkov

      When try [root@SMIX-RIGHT logs]# ../bin/rhqctl install

      19:37:43,269 INFO [org.jboss.modules] JBoss Modules version 1.3.0.Final-redhat-2
      19:37:43,729 INFO [org.rhq.server.control.command.Install] The RHQ storage node is already installed in [/opt/rhq/rhq-storage]. It will not be installed.
      19:37:43,749 ERROR [org.rhq.server.control.RHQControl] error=2, No such file or directory
      19:37:43,750 WARN [org.rhq.server.control.command.Install] UNDO: Reverting server properties file 

      java version "1.7.0_121"
      rhq-server-4.14.0

        • 1. Re: RHQ install ERROR [org.rhq.server.control.RHQControl] error=2, No such file or directory
          jayshaughnessy

          It seems that the RHQ storage node was already installed and so it can't be installed again. The existence of /opt/rhq/rhq-storage indicates it is already there.  If you are sure the original installation of the storage node in in error, you could delete the /opt/rhq/rhq-storage directory.  Otherwise, you can install the server only via rhqct install --server.

          • 2. Re: RHQ install ERROR [org.rhq.server.control.RHQControl] error=2, No such file or directory
            azhidkov

            Yep, I installed storage apart.

            [root@SMIX-RIGHT bin]# history | grep -e "--storage"

              414  ./rhqctl --storage

              415  ./rhqctl install --storage

             

            But

            [root@SMIX-RIGHT bin]# ./rhqctl install --server

            11:57:00,410 INFO  [org.jboss.modules] JBoss Modules version 1.3.0.Final-redhat-2

            11:57:00,865 ERROR [org.rhq.server.control.RHQControl] error=2, No such file or directory

            11:57:00,865 WARN  [org.rhq.server.control.command.Install] UNDO: Reverting server properties file

             

            And after remove all and clean install

            [root@SMIX-RIGHT bin]# ./rhqctl install

            OpenJDK 64-Bit Server VM warning: ignoring option MaxPermSize=128M; support was removed in 8.0

            12:54:19,297 INFO  [org.jboss.modules] JBoss Modules version 1.3.0.Final-redhat-2

            12:54:19,556 INFO  [org.rhq.server.control.command.Install] Preparing to install RHQ storage node.

            Starting RHQ Storage Installer ...

            OpenJDK 64-Bit Server VM warning: ignoring option PermSize=128M; support was removed in 8.0

            OpenJDK 64-Bit Server VM warning: ignoring option MaxPermSize=128M; support was removed in 8.0

            12:54:20,080 INFO  [org.jboss.modules] JBoss Modules version 1.3.0.Final-redhat-2

            12:54:20,207 INFO  [org.rhq.storage.installer.StorageInstaller] Running RHQ Storage Node installer...

            12:54:20,223 INFO  [org.rhq.storage.installer.StorageInstaller] Checking perms for ../../../rhq-data/saved_caches

            12:54:20,224 INFO  [org.rhq.storage.installer.StorageInstaller] Checking perms for ../../../rhq-data/commit_log

            12:54:20,224 INFO  [org.rhq.storage.installer.StorageInstaller] Checking perms for ../../../rhq-data/data

            12:54:20,227 INFO  [org.rhq.cassandra.Deployer] Unzipping storage node to /opt/rhq/rhq-storage

            12:54:20,459 INFO  [org.rhq.cassandra.Deployer] Applying configuration changes to /opt/rhq/rhq-storage/conf/cassandra.yaml

            12:54:20,487 INFO  [org.rhq.cassandra.Deployer] Applying configuration changes to /opt/rhq/rhq-storage/conf/log4j-server.properties

            12:54:20,490 INFO  [org.rhq.cassandra.Deployer] Applying configuration changes to /opt/rhq/rhq-storage/conf/cassandra-jvm.properties

            12:54:20,498 INFO  [org.rhq.cassandra.Deployer] Updating file permissions in /opt/rhq/rhq-storage/bin

            12:54:20,501 INFO  [org.rhq.storage.installer.StorageInstaller] Updating rhq-server.properties...

            12:54:20,509 INFO  [org.rhq.storage.installer.StorageInstaller] Installation of the storage node is complete

            12:54:20,524 INFO  [org.rhq.server.control.command.Install] The storage node installer has finished with an exit value of 0

            12:54:20,529 ERROR [org.rhq.server.control.RHQControl] error=2, No such file or directory

            12:54:20,529 WARN  [org.rhq.server.control.command.Install] UNDO: Stopping component: --storage

            12:54:20,530 WARN  [org.rhq.server.control.command.Install] UNDO: Removing storage node data and install directories

            12:54:20,540 WARN  [org.rhq.server.control.command.Install] UNDO: Reverting server properties file

             

            [root@SMIX-RIGHT ~]# sestatus

            SELinux status:                 disabled

            • 3. Re: RHQ install ERROR [org.rhq.server.control.RHQControl] error=2, No such file or directory
              karthikraj

              Hello Andrey,
                               Verify the server startup script $RHQ-SERVER/jbossas/bin/standalone.sh is not misssing

              Your problem is similiar to like this i guess JBoss ON install fails with "The installer will now exit due to previous errors: java.lang.Exception: Cannot obtain cli…

              • 4. Re: RHQ install ERROR [org.rhq.server.control.RHQControl] error=2, No such file or directory
                azhidkov

                Sorry for the trouble!  I found problem. RHQ4.14 compiled at windows after are used doc2unix, but part of scripts stored in archive. (платформонезависимость, ага)

                In conclusion, part of the script has been "damaged" windows environment.