Uploaded image for project: 'Help-Desk'
  1. Help-Desk
  2. HELP-757

FIWARE.Request.Tech.Data.Stream-oriented.Trying_to_install_some_applications

    Details

      Description

      Hello,

      After installing the Kurento Media Serve, i was trying to deploy some
      applications developed in the Kurento Java Client, that are present in the
      documentation (
      https://forge.fi-ware.org/plugins/mediawiki/wiki/fiware/index.php/StreamOriented_-_Installation_and_Administration_Guide
      )

      At the moment of compilation, in the step "mvn compile exec:java", the
      maven couldn't find one dependency and throw an error.

      Regards,

      Feedback error:

      [INFO] Using 'UTF-8' encoding to copy filtered resources.
      [INFO]
      ------------------------------------------------------------------------
      [INFO] BUILD FAILURE
      [INFO]
      ------------------------------------------------------------------------
      [INFO] Total time: 9.427s
      [INFO] Finished at: Mon Oct 27 15:34:51 WET 2014
      [INFO] Final Memory: 10M/25M
      [INFO]
      ------------------------------------------------------------------------
      [ERROR] Failed to execute goal
      org.apache.maven.plugins:maven-resources-plugin:2.3:resources
      (default-resources) on project kurento-magic-mirror: Cannot create resource
      output directory:
      /home/hugo/Documents/kurento-tutorial-java/kurento-magic-mirror/target/classes
      -> [Help 1]
      [ERROR]
      [ERROR] To see the full stack trace of the errors, re-run Maven with the -e
      switch.
      [ERROR] Re-run Maven using the -X switch to enable full debug logging.
      [ERROR]
      [ERROR] For more information about the errors and possible solutions,
      please read the following articles:
      [ERROR] [Help 1]
      http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException

      --Hugo Fonseca
      htfonseca@onesource.pt
      [image: OneSource]
      http://onesource.pt

      _______________________________________________
      Fiware-lab-help mailing list
      Fiware-lab-help@lists.fi-ware.org
      https://lists.fi-ware.org/listinfo/fiware-lab-help

        Activity

        FIWARE-LAB-HELP FIWARE-LAB-HELP created issue -
        mev Manuel Escriche made changes -
        Field Original Value New Value
        Assignee Luis Lopez [ lulop ]
        llopez NaevaTeC Development Team made changes -
        Status Open [ 1 ] In Progress [ 3 ]
        Hide
        llopez NaevaTeC Development Team added a comment - - edited

        This problem is related to the local environment, and normally happens when

        • the user don't have permissions to write in this folder
        • another process is accessing the folder
        • an IDE is open, and when maven cleans the target folder, the IDE detects that classes disappeared and recompiles the project.

        Could you please provide more info about you local setup?

        Show
        llopez NaevaTeC Development Team added a comment - - edited This problem is related to the local environment, and normally happens when the user don't have permissions to write in this folder another process is accessing the folder an IDE is open, and when maven cleans the target folder, the IDE detects that classes disappeared and recompiles the project. Could you please provide more info about you local setup?
        psimoes Paulo Simoes (Inactive) made changes -
        Assignee Luis Lopez [ lulop ] Paulo Simoes [ psimoes ]
        psimoes Paulo Simoes (Inactive) made changes -
        Assignee Paulo Simoes [ psimoes ] Luis Lopez [ lulop ]
        Hide
        psimoes Paulo Simoes (Inactive) added a comment -

        Yes, it is a problem related with the the user permissions.
        So the documentation need to be re-write:
        ( https://forge.fi-ware.org/plugins/mediawiki/wiki/fiware/index.php/StreamOriented_-_Installation_and_Administration_Guide )

        End to End testing
        Kurento Media Server must be installed and started before running the following example, which is called magic-mirror and it is developed with the Kurento Java Client. You should run this example in a machine with camera and microphone since live media is needed. To launch the application first you need to clone the GitHub project where it is hosted and then run the main class, as follows:
        git clone https://github.com/Kurento/kurento-tutorial-java.git
        cd kurento-tutorial-java/kurento-magic-mirror
        mvn compile exec:java

        Should be add the command "sudo" before the "mvn compile exec:java" command.

        Regards

        Show
        psimoes Paulo Simoes (Inactive) added a comment - Yes, it is a problem related with the the user permissions. So the documentation need to be re-write: ( https://forge.fi-ware.org/plugins/mediawiki/wiki/fiware/index.php/StreamOriented_-_Installation_and_Administration_Guide ) – End to End testing Kurento Media Server must be installed and started before running the following example, which is called magic-mirror and it is developed with the Kurento Java Client. You should run this example in a machine with camera and microphone since live media is needed. To launch the application first you need to clone the GitHub project where it is hosted and then run the main class, as follows: git clone https://github.com/Kurento/kurento-tutorial-java.git cd kurento-tutorial-java/kurento-magic-mirror mvn compile exec:java – Should be add the command "sudo" before the "mvn compile exec:java" command. Regards
        mev Manuel Escriche made changes -
        Reporter FIWARE-LAB-HELP [ fiware-lab-help ] FW External User [ fw.external.urser ]
        Hide
        llopez NaevaTeC Development Team added a comment -

        This command should not be run as root. "sudo" will for sure work, but it just hides the fact that there is something wrong in the local setup, or that you are trying to compile something where you shouldn't. If the tutorial is followed, a user will not run into this. The only way you could find yourself in this situation, is if you run one of the previous commands (especially git clone) as super user.

        Could you check who is the owner of the folder, and post here the output of ls -l run in the root of the cloned repo?

        Show
        llopez NaevaTeC Development Team added a comment - This command should not be run as root. "sudo" will for sure work, but it just hides the fact that there is something wrong in the local setup, or that you are trying to compile something where you shouldn't. If the tutorial is followed, a user will not run into this. The only way you could find yourself in this situation, is if you run one of the previous commands (especially git clone ) as super user. Could you check who is the owner of the folder, and post here the output of ls -l run in the root of the cloned repo?
        Hide
        htfonseca Hugo Fonseca (Inactive) added a comment -

        Yes, indeed the file owner was root.
        For some reason at the cloning of the GIT project, the command was done with the sudo.

        Just check all the examples and they work fine.
        I think that you can close the Bug.

        Regards,

        Show
        htfonseca Hugo Fonseca (Inactive) added a comment - Yes, indeed the file owner was root. For some reason at the cloning of the GIT project, the command was done with the sudo. Just check all the examples and they work fine. I think that you can close the Bug. Regards,
        llopez NaevaTeC Development Team made changes -
        Status In Progress [ 3 ] Answered [ 10104 ]
        llopez NaevaTeC Development Team made changes -
        Resolution Done [ 10000 ]
        Status Answered [ 10104 ] Done [ 10000 ]
        mev Manuel Escriche made changes -
        Component/s FIWARE-TECH-HELP [ 10278 ]
        mev Manuel Escriche made changes -
        Assignee Luis Lopez [ lulop ] Luis López [ llopez ]
        mev Manuel Escriche made changes -
        Fix Version/s Sprint 4.1.2 [ 10738 ]
        llopez NaevaTeC Development Team made changes -
        Summary [Fiware-lab-help] [Kurento GE] Trying to install some applications FIWARE.Request.Lab.Data.Stream-oriented.Trying_to_install_some_applications
        mev Manuel Escriche made changes -
        Summary FIWARE.Request.Lab.Data.Stream-oriented.Trying_to_install_some_applications FIWARE.Request.Tech.Data.Stream-oriented.Trying_to_install_some_applications
        mev Manuel Escriche made changes -
        Workflow FW eRequest Workflow [ 17678 ] FW extRequest Workflow-II [ 40788 ]
        Status Done [ 10000 ] Closed [ 6 ]
        Issue Type eRequest [ 10101 ] extRequest [ 10104 ]
        FI-WARE Environment FI-LAB [ 10100 ]
        mev Manuel Escriche made changes -
        Sender Email htfonseca@onesource.pt
        mev Manuel Escriche made changes -
        HD-Enabler Kurento [ 10873 ]
        HD-Chapter Data [ 10838 ]
        Transition Time In Source Status Execution Times Last Executer Last Execution Date
        Open Open In Progress In Progress
        1d 17h 52m 1 NaevaTeC Development Team 29/Oct/14 10:50 AM
        In Progress In Progress Answered Answered
        5d 6h 50m 1 NaevaTeC Development Team 03/Nov/14 5:40 PM
        Answered Answered Done Done
        44s 1 NaevaTeC Development Team 03/Nov/14 5:41 PM
        Done Done Closed Closed
        434d 15h 27m 1 Manuel Escriche 12/Jan/16 9:08 AM

          People

          • Assignee:
            llopez NaevaTeC Development Team
            Reporter:
            fw.ext.user FW External User
          • Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: