Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [kapua-dev] failing on installing Kapua

Hi,



the error 


"java.net.SocketTimeoutException: connect timed out: 192.168.33.10:3306"


shows that the maven build is not able to connect to H2 db instance which, in the case of the demo instance, is supposed to be running within the virtual machine (managed through Vagrant). This can happen for several reasons, the virtual machine has not been started, the tcp/ip ports are already in use, etc...


The maven command underneath is listed within the shell script:


"../kapua-develop/dev-tools/src/main/bin/start-demo.sh"


and is the following:


$>mvn clean install -Psql -Pdeploy


so to execute the suggestion run the following:


$>mvn clean install -e -Psql -Pdeploy


from the kapua source root directory.


Regards,
Stefano

From: kapua-dev-bounces@xxxxxxxxxxx <kapua-dev-bounces@xxxxxxxxxxx> on behalf of Yuval Zohar <yuvzohar@xxxxxxxxx>
Sent: Thursday, December 29, 2016 1:49 PM
To: kapua developer discussions
Subject: Re: [kapua-dev] failing on installing Kapua
 
hi,

ive deleted everything under ".vagrant.d" and rerun the "../kapua-develop/dev-tools/src/main/bin/start-demo.sh" script once again  : 

FO] kapua-security-authentication-api .................. SUCCESS [  0.898 s]
[INFO] kapua-commons ...................................... FAILURE [  5.565 s]
[INFO] kapua-locator ...................................... SKIPPED
[INFO] kapua-guice ........................................ SKIPPED
[INFO] kapua-user ......................................... SKIPPED
[INFO] kapua-user-api ..................................... SKIPPED
[INFO] kapua-account ...................................... SKIPPED
[INFO] kapua-account-api .................................. SKIPPED
[INFO] kapua-test ......................................... SKIPPED
[INFO] kapua-security-shiro ............................... SKIPPED
[INFO] kapua-message ...................................... SKIPPED
[INFO] kapua-message-api .................................. SKIPPED
[INFO] kapua-datastore .................................... SKIPPED
[INFO] kapua-datastore-api ................................ SKIPPED
[INFO] kapua-message-internal ............................. SKIPPED
[INFO] kapua-datastore-internal ........................... SKIPPED
[INFO] kapua-device ....................................... SKIPPED
[INFO] kapua-device-api ................................... SKIPPED
[INFO] kapua-device-registry .............................. SKIPPED
[INFO] kapua-device-registry-api .......................... SKIPPED
[INFO] kapua-transport .................................... SKIPPED
[INFO] kapua-transport-api ................................ SKIPPED
[INFO] kapua-device-call .................................. SKIPPED
[INFO] kapua-device-call-api .............................. SKIPPED
[INFO] kapua-translator ................................... SKIPPED
[INFO] kapua-translator-api ............................... SKIPPED
[INFO] kapua-device-call-kura ............................. SKIPPED
[INFO] kapua-device-commons ............................... SKIPPED
[INFO] kapua-transport-mqtt ............................... SKIPPED
[INFO] kapua-translator-kura .............................. SKIPPED
[INFO] kapua-translator-kura-mqtt ......................... SKIPPED
[INFO] kapua-device-call-test ............................. SKIPPED
[INFO] kapua-device-configuration ......................... SKIPPED
[INFO] kapua-device-configuration-api ..................... SKIPPED
[INFO] kapua-device-configuration-internal ................ SKIPPED
[INFO] kapua-device-packages .............................. SKIPPED
[INFO] kapua-device-packages-api .......................... SKIPPED
[INFO] kapua-device-packages-internal ..................... SKIPPED
[INFO] kapua-user-internal ................................ SKIPPED
[INFO] kapua-device-registry-internal ..................... SKIPPED
[INFO] kapua-device-bundle ................................ SKIPPED
[INFO] kapua-device-bundle-api ............................ SKIPPED
[INFO] kapua-device-bundle-internal ....................... SKIPPED
[INFO] kapua-device-command ............................... SKIPPED
[INFO] kapua-device-command-api ........................... SKIPPED
[INFO] kapua-device-command-internal ...................... SKIPPED
[INFO] kapua-account-internal ............................. SKIPPED
[INFO] kapua-device-command-test .......................... SKIPPED
[INFO] kapua-transport-jms ................................ SKIPPED
[INFO] kapua-transport-test ............................... SKIPPED
[INFO] kapua-translator-kapua ............................. SKIPPED
[INFO] kapua-translator-kapua-kura ........................ SKIPPED
[INFO] kapua-translator-kura-jms .......................... SKIPPED
[INFO] kapua-broker-core .................................. SKIPPED
[INFO] kapua-console ...................................... SKIPPED
[INFO] kapua-rest-api ..................................... SKIPPED
[INFO] kapua-assembly ..................................... SKIPPED
[INFO] kapua-dev-tools .................................... SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 18.994 s
[INFO] Finished at: 2016-12-29T14:39:15+02:00
[INFO] Final Memory: 43M/577M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.codehaus.mojo:sql-maven-plugin:1.5:execute (create-schema) on project kapua-commons: Connection is broken: "java.net.SocketTimeoutException: connect timed out: 192.168.33.10:3306" [90067-192] -> [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
[ERROR]  
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR]   mvn <goals> -rf :kapua-commons
VM must be running to open SSH connection. Run `vagrant up`
to start the virtual machine. 


[*** IVE TYPED vagrant up ***]                                                                                                                                                                                                                
yuval@zmaor-kubuntu:~/Development/Wireless/IoT/Eclipse/Clouds/framework/kapua-develop/dev-tools/src/main/bin$ vagrant up
A Vagrant environment or target machine is required to run this
command. Run `vagrant init` to create a new Vagrant environment. Or,                                                                                                                                                                          
get an ID of a target machine from `vagrant global-status` to run                                                                                                                                                                             
this command on. A final option is to change to a directory with a                                                                                                                                                                            
Vagrantfile and to try again.                                                                                                                                                               

[*** IVE TYPED vagrant init ***]                                                                                                             

                     
yuval@zmaor-kubuntu:~/Development/Wireless/IoT/Eclipse/Clouds/framework/kapua-develop/dev-tools/src/main/bin$ vagrant init 

A `Vagrantfile` has been placed in this directory. You are now
ready to `vagrant up` your first virtual environment! Please read
the comments in the Vagrantfile as well as documentation on
`vagrantup.com` for more information on using Vagrant. 


it says : "To see the full stack trace of the errors, re-run Maven with the -e switch.Re-run Maven using the -X switch to enable full debug logging." 
i'm not a maven expert, what should i type in order to see the full trace ? 
"mvn -e" ?
"mvn -Xe" ?

thanks



On Thu, Dec 29, 2016 at 2:21 PM, Mezzasalma, Claudio <Claudio.Mezzasalma@xxxxxxxxxxxx> wrote:

By reading the log it seems that there’s something wrong with the downloaded VirtualBox image:

 

Progress state: VBOX_E_FILE_ERROR

VBoxManage: error: Appliance import failed

VBoxManage: error: Could not create the imported medium '/home/yuval/VirtualBox VMs/ubuntu-cloudimg-trusty-vagrant-amd64_1482941047842_69109/box-disk1.vmdk'.

VBoxManage: error: VMDK: Compressed image is corrupted '/home/yuval/.vagrant.d/boxes/ubuntu-VAGRANTSLASH-trusty64/20161214.0.0/virtualbox/box-disk1.vmdk' (VERR_ZIP_CORRUPTED)

VBoxManage: error: Details: code VBOX_E_FILE_ERROR (0x80bb0004), component ApplianceWrap, interface IAppliance

VBoxManage: error: Context: "RTEXITCODE handleImportAppliance(HandlerArg*)" at line 877 of file VBoxManageAppliance.cpp

 

Have you tried cleaning up the .vagrant.d folder under your home (beware of any other vagrant boxes you may have!) and running the script again to redownload the base box?

 

-- 

Claudio Mezzasalma | Eurotech

 

Da: <kapua-dev-bounces@xxxxxxxxxxx> per conto di Yuval Zohar <yuvzohar@xxxxxxxxx>
Risposta: kapua developer discussions <kapua-dev@xxxxxxxxxxx>
Data: mercoledì 28 dicembre 2016 17:42
A: kapua developer discussions <kapua-dev@xxxxxxxxxxx>
Oggetto: Re: [kapua-dev] failing on installing Kapua

 

Hi,

 

Thanks for your response.

Yes, I've downloaded the zip file (kapua-develop) from  https://github.com/eclipse/kapua with develop branch. 

 

I've followed the instructions for the "demo machine quick start" :

 

$ cd $KAPUA_GITHUB_HOME_DIR/dev-tools/src/main/bin
$ ./start-demo.sh

I think all the problems refers to the vagrant VM (as i recall i had to install it manually on the linux machine but it didnt help to solve the problem).   

 

attached is the log file

 

 

 

 

 

On Wed, Dec 28, 2016 at 5:24 PM, Mezzasalma, Claudio <Claudio.Mezzasalma@eurotech.com> wrote:

Hello Yuval,

 

Are you trying to run the script on the develop branch? If so, do you have any detailed error log when the compilation is failing?

 

-- 

Claudio Mezzasalma | Eurotech

 

Da: <kapua-dev-bounces@xxxxxxxxxxx> per conto di Yuval Zohar <yuvzohar@xxxxxxxxx>
Risposta: kapua developer discussions <kapua-dev@xxxxxxxxxxx>
Data: mercoledì 28 dicembre 2016 15:27
A: "kapua-dev@xxxxxxxxxxx" <kapua-dev@xxxxxxxxxxx>
Oggetto: [kapua-dev] failing on installing Kapua

 

Hello ,

 

We're trying to install Kapua on a Kubuntu machine by following instructions from both github's README :

 

 

 

Unfortunately,  running the scripts keep falling.

 

O] kapua .............................................. SUCCESS [  1.356 s]
[INFO] kapua-service ...................................... SUCCESS [  0.007 s]
[INFO] kapua-service-api .................................. SUCCESS [  5.280 s]
[INFO] kapua-security ..................................... SUCCESS [  0.012 s]
[INFO] kapua-security-authorization ....................... SUCCESS [  0.020 s]
[INFO] kapua-security-authorization-api ................... SUCCESS [  0.517 s]
[INFO] kapua-security-authentication ...................... SUCCESS [  0.007 s]
[INFO] kapua-security-authentication-api .................. SUCCESS [  0.174 s]
[INFO] kapua-commons ...................................... FAILURE [  4.147 s]

 

is there any detailed documentation or a step-by-step youtube guide which explains what to do ?   

 

thanks,

yuval.


_______________________________________________
kapua-dev mailing list
kapua-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/kapua-dev

 


_______________________________________________
kapua-dev mailing list
kapua-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/kapua-dev



Back to the top