Software Defined Networking
1752703 Members
5781 Online
108789 Solutions
New Discussion

Re: Newbie question: Server error when uploading Application

 
SOLVED
Go to solution
SHawkins
Advisor

Newbie question: Server error when uploading Application

Hi Guys - I followed the instructions to add

"-Dsdn.signedJar=none \"  to /opt/sdn/virgo/bin/dmk.sh, as described in the HP VAN SDN Controller 2.3 Administrator Guide, pg 69, 5.8.2

 

I did stop & start the service as shown, and added it in the location shown - but when I try to add the example Health Monitor App, and click "upload"  I still get

 

App could not be verified: Unsigned file hm-api-1.0.0-SNAPSHOT.jar

Server Error – 400: Bad Request
URL: rs/apps
View ID: apps
Type: error
 
 
Any ideas or thoughts on how to get the VAN controller to run without checking signature?
I even rebooted the server just in case.
14 REPLIES 14
sbotkine
Frequent Advisor

Re: Newbie question: Server error when uploading Application

Exactly the same problem than you.

This add of the instruction "-Dsdn.signedJar=non"  worked with version 2.0 but no more with version 2.3.5 !!!

 

 

ankur_aggarwal
Senior Member

Re: Newbie question: Server error when uploading Application

Could you help with the solution for this as I have tried a couple of things:-

 

1. Capitalised "Dsdn" to "DSDN".

 

2. In SDN UI on Configurations tab, changed "verifyZips" to "false" in App.Manager

 

After this got 2 different errors:-

(i) With Zip file containing UnSigned Jar files: "App could not be verified: Unsigned file"

(ii) With Zip file Signed Jar files: "App could not be verified: Signer not trusted (public certificate missing from sdnjar_trust.jks)"

 

Please suggest a solution.

chrisnagasawa
Occasional Contributor

Re: Newbie question: Server error when uploading Application

I am having a similar problem with v.2.3.5. After building the sample Health Monitor App per the programming guide I tried to install the app on the controller. I get "App could not be verified: Unsigned file com/hp/hm/api/DeviceHealthService.class".  I also have verifyZips = false.

SHawkins
Advisor

Re: Newbie question: Server error when uploading Application

I've opened an HP support Case - 4736080403 - hopefully it will get routed to the SDN team so we can get this resolved for all of us :-)

TurboLuk
Occasional Advisor
Solution

Re: Newbie question: Server error when uploading Application

Hi friends!

Setting -Dsdn.signedJar=none in /opt/sdn/virgo/bin/dmk.sh and setting  com.hp.sdn.adm.mgr.impl.AppManager.verifyZips to flase in HP SDN Controller Console worked for me.

There is another solution to upload apps smoothly, but it's not so convenient.

You need to properly sing every .jar and .war file in your app. In the guides, there is no advice how to achieve this. I didn't succeed with lots of experimentation and hours spent on this issue.

sbotkine
Frequent Advisor

Re: Newbie question: Server error when uploading Application

(I've just Install version 2.3.5)

 

For my part, with:

 

1) Setting -Dsdn.signedJar=none in /opt/sdn/virgo/bin/dmk.sh  and

2) com.hp.sdn.adm.mgr.impl.AppManager.verifyZips = false 

 

I can now UPLOAD all my  applications (I didn't before point 1) and 2) )

 

However when I try to Deploy my applications , It failed with the following error message:

 

Server Error – 500: Internal Server Error

URL: rs/apps/com.unil.arpsdn/install
View ID: apps
Type: error
 
Notice that the same applications worked correctly with version 2.0 !!!
 
An idea ?
TurboLuk
Occasional Advisor

Re: Newbie question: Server error when uploading Application

Hi sbotkine,

sudo tail -n 256 /var/log/sdn/virgo/logs/log.log

will show you last 256 lines of virgo log where you can find app deployment exception stack trace, the cause of failure.

I think, the most probable cause of the error could be UnableToSatisfyBundleDependenciesException. In other words, you are referencig a library which is not available.

SHawkins
Advisor

Re: Newbie question: Server error when uploading Application

Thanks guys - I'm going to try the suggestions in the next couple days.

I really appreciate the help so far!!  Hopefully I don't run into missing dependencies.

SHawkins
Advisor

Re: Newbie question: Server error when uploading Application

Just wanted to update you all - 

I was able to get the Health Monitor application to Upload *and* Deploy.

 

One last question for now - do you folks know the correct URL to access the healthmonitor app, once installed?

What file makes this determination? (so I could change it, for example?)

 

Steps I took to allow the example Health Monitor app from the SDK included with 2.3.5 to install on VAN controller 2.3.5

 

1. Add  "-Dsdn.signedJar=none \"  to /opt/sdn/virgo/bin/dmk.sh, as described in the HP VAN SDN Controller 2.3 Administrator Guide, pg 69, 5.8.2, then restart the sdnc service

 

2. In the configurations section in the gui under com.hp.sdn.adm.mgr.impl.AppManager change verifyZips to false

HP VAN SDN Controller 2.3 Administrators Guide, pg 35 3.10.4

 

 

Thank you guys, and thank you HP Support!!