Expand my Community achievements bar.

SOLVED

Unable to refresh | start | stop bundles in AEM (CQ) 6

Avatar

Former Community Member

curl -u admin:admin -F action=start http://localhost:4502/system/console/bundles/$bundle symbolic name

 curl -u admin:PASSWORD -F action=install -F bundlestart=start -F bundlestartlevel=20 -F bundlefile=/path/to/jar/file.jar http://HOST:PORT/system/console/bundles 

Command to start bundle ...but not working????

1 Accepted Solution

Avatar

Correct answer by
Level 10

Hi Ankit,

There is '@' missing for bundlefile parameter. Try this

curl -u admin:PASSWORD -F action=install -F bundlestart=start -F bundlestartlevel=20 -F bundlefile=@"/path/to/jar/file.jar" http://HOST:PORT/system/console/bundles

View solution in original post

6 Replies

Avatar

Correct answer by
Level 10

Hi Ankit,

There is '@' missing for bundlefile parameter. Try this

curl -u admin:PASSWORD -F action=install -F bundlestart=start -F bundlestartlevel=20 -F bundlefile=@"/path/to/jar/file.jar" http://HOST:PORT/system/console/bundles

Avatar

Former Community Member

intelligrape@intelligrape-Aspire-E5-571:~/Documents/AEM6/crx-quickstart/repository$ curl -u admin:admin -F action=install -F bundlestop=stop -F bundlestartlevel=20 -F bundlefile=@"/apps/geometrixx-commons/install/cq-geometrixx-commons-core-1.1.30.jar" http://localhost:4512/system/console/bundles 
curl: (26) couldn't open file "/apps/geometrixx-commons/install/cq-geometrixx-commons-core-1.1.30.jar"

 

Run this command get the error

 

i'm able to do the same opertion by using the command

curl -u admin:admin http://localhost:4512/system/console/bundles/226 -F action=stop

Bu get the output {"fragment":false,"stateRaw":4}

but when see the web console osgi for 226 bundle it was stopped 

Avatar

Level 10

Is it throwing for any jar file or only this specific jar ?

Avatar

Former Community Member

For all jar files

 

curl -u admin:admin -F action=install -F bundlestop=stop -F bundlestartlevel=20 -F bundlefile="/apps/geometrixx-commons/install/cq-geometrixx-commons-core-1.1.30.jar" http://localhost:4512/system/console/bundles 

It is not returning any output or error but bundle still in stop state? 

 

curl -u admin:admin http://localhost:4512/system/console/bundles/226 -F action=stop

Bu get the output {"fragment":false,"stateRaw":4}

but when see the web console osgi for 226 bundle it was stopped ????

Avatar

Level 10

I think that is because you are using bundlestop=stop in your command instead try using bundlestart=start

Avatar

Former Community Member

not working??

curl -u admin:admin http://localhost:4512/system/console/bundles/226 -F action=stop

But get the output {"fragment":false,"stateRaw":4}

why it return false but bundle stopped

but when see the web console osgi for 226 bundle it was stopped ????