JAVA

Support and questions for using and managing Chocolatey NuGet inside of Labtech
Post Reply
revsmitty
Posts: 30
Joined: Sat Feb 13, 2016 1:50 am
8

JAVA

Post by revsmitty »

I've finally got this plugin working and I've been quite happy with it, but I can't seem to get JAVA to update on any of our machines. It will work if I the job locally, but it doesn't seem to do anything via the plugin. Other apps install and update fine.

Any suggestions?

User avatar
Cubert
Posts: 2462
Joined: Tue Dec 29, 2015 7:57 pm
8
Contact:

Re: JAVA

Post by Cubert »

It has to do with the way the package was built and needing Admin Privs and a logged in user. We are looking in to ways to better resolve this issue. But currently it is outside of our ability to manage another maintainers package needs.

We have in the interim added a "As admin" switch for apporved packages that may help in deployments

vkent39
Posts: 9
Joined: Sat Jan 02, 2016 5:48 pm
8

Re: JAVA

Post by vkent39 »

Is there a way to change the common apps to install AsAdmin?

User avatar
Cubert
Posts: 2462
Joined: Tue Dec 29, 2015 7:57 pm
8
Contact:

Re: JAVA

Post by Cubert »

Thanks to revsmitty, I went back and had a look at the As Admin piece to see if there was a reason it may not be working as intended and sure enough we missed a place where we inject the correct script to do the "as admin" functions. We have corrected this and released build 2.0.1.32 to address this problem.

Keep in mind Java has some requirements for install. Desktop must be logged in for admin script to function.

revsmitty
Posts: 30
Joined: Sat Feb 13, 2016 1:50 am
8

Re: JAVA

Post by revsmitty »

Cubert wrote:Thanks to revsmitty, I went back and had a look at the As Admin piece to see if there was a reason it may not be working as intended and sure enough we missed a place where we inject the correct script to do the "as admin" functions. We have corrected this and released build 2.0.1.32 to address this problem.

Keep in mind Java has some requirements for install. Desktop must be logged in for admin script to function.
Thanks for this. Still haven't been successful with JAVA, but at least you are giving me hope.

User avatar
Cubert
Posts: 2462
Joined: Tue Dec 29, 2015 7:57 pm
8
Contact:

Re: JAVA

Post by Cubert »

Also have we looked at if the user had a browser open during your install attempts?

jerbo128
Posts: 4
Joined: Tue Jan 26, 2016 6:47 pm
8

Re: JAVA

Post by jerbo128 »

Any updates on this? We're still not able to get java to update successfully.

User avatar
Cubert
Posts: 2462
Joined: Tue Dec 29, 2015 7:57 pm
8
Contact:

Re: JAVA

Post by Cubert »

Post the errors you are getting from the scripts and or commands tabs.

Also is deployments tab in global showing system install attempts past 3?

jerbo128
Posts: 4
Joined: Tue Jan 26, 2016 6:47 pm
8

Re: JAVA

Post by jerbo128 »

The global attempts are showing 0 on almost all of the machines.
AsAdmin is ENABLED
Tested 2 machines

Machine 1 - NEW INSTALL
Parameters: cmd!!! /C "C:\ProgramData\chocolatey\bin\choco.exe" install -fy jre8
Output: Chocolatey v0.10.0
Installing the following packages:
jre8
By installing you accept licenses for the packages.

jre8 v8.0.101 (forced) [Approved]
Searching if new version exists...
Downloading jre8
from 'http://javadl.oracle.com/webapps/downlo ... eId=211997'

Progress: 0% - Saving 156.86 KB of 52.63 MB (160621/55186496)
Progress: 0% - Saving 343.29 KB of 52.63 MB (351525/55186496)
......repetitive content removed.....
Progress: 11% - Saving 5.97 MB of 52.63 MB (6258101/55186496)
Progress: 11% - Sa
END of COMMAND LOG

SCRIPT LOG
Chocolatey v0.10.0
Chocolatey detected you are not running from an elevated command shell
(cmd/powershell).

You may experience errors - many functions/packages
require admin rights. Only advanced users should run choco w/out an
elevated shell. When you open the command shell, you should ensure
that you do so with "Run as Administrator" selected. If you are
attempting to use Chocolatey in a non-administrator setting, you
must select a different location other than the default install
location. See
https://chocolatey.org/install#non-admi ... ve-install for details.

For the question below, you have 20 seconds to make a selection.

Do you want to continue?([Y]es/[N]o):
Timeout or your choice of '' is not a valid selection.
Installing the following packages:
jre8
By installing you accept licenses for the packages.
jre8 not installed. The package was not found with the source(s) listed.
If you specified a particular version and are receiving this message, it is possible that the package name exists but the version does not.
Version: ""
Source(s): "https://chocolatey.org/api/v2/"

Chocolatey installed 0/1 packages. 1 packages failed.
See the log for details (C:\ProgramData\chocolatey\logs\chocolatey.log).

Failures
- jre8 - jre8 not installed. The package was not found with the source(s) listed.
If you specified a particular version and are receiving this message, it is possible that the package name exists but the version does not.
Version: ""
Source(s): "https://chocolatey.org/api/v2/"

Check out Pro / Business for more features! https://chocolatey.org/compare

MACHINE 2 - UPGRADE from 8.31
COMMAND LOG
Parameters: cmd!!! /C "C:\ProgramData\chocolatey\bin\choco.exe" install -fy jre8
Output: Installing the following packages:
jre8
By installing you accept licenses for the packages.

jre8 v8.0.91 (forced)
Searching if new version exists...
Downloading jre8 32 bit
from 'http://javadl.oracle.com/webapps/downlo ... eId=207773'
Installing jre8...
jre8 has been installed.
Downloading jre8 64 bit
from 'http://javadl.oracle.com/webapps/downlo ... eId=207775'
Installing jre8...
jre8 has been installed.
Searching if the previous version exists...
The install of jre8 was successful.

Chocolatey installed 1/1 package(s). 0 package(s) failed.
See the log for details (C:\ProgramData\chocolatey\logs\chocolatey.log).

User avatar
Cubert
Posts: 2462
Joined: Tue Dec 29, 2015 7:57 pm
8
Contact:

Re: JAVA

Post by Cubert »

From your post it looks as if system #1 failed because it sat waiting for a Y/N response. The package was passed a -fy which is "force" and "Yes to all" so whom ever built the package or maybe even choco 10.0 may be to blame for that. I will check with Rob's team at Chocolatey to see if there is something we can do for that.

On system #2 it appears to have installed from the logs, did it install or was that a manual run from you? You may try the JRE8 command normally "without asAdmin" and see if you get past this as it runs as "system". See if you receive the same waiting for Y/N prompt.

Post back here your results

jerbo128 wrote:The global attempts are showing 0 on almost all of the machines.
AsAdmin is ENABLED
Tested 2 machines

Machine 1 - NEW INSTALL
Parameters: cmd!!! /C "C:\ProgramData\chocolatey\bin\choco.exe" install -fy jre8
Output: Chocolatey v0.10.0
Installing the following packages:
jre8
By installing you accept licenses for the packages.

jre8 v8.0.101 (forced) [Approved]
Searching if new version exists...
Downloading jre8
from 'http://javadl.oracle.com/webapps/downlo ... eId=211997'

Progress: 0% - Saving 156.86 KB of 52.63 MB (160621/55186496)
Progress: 0% - Saving 343.29 KB of 52.63 MB (351525/55186496)
......repetitive content removed.....
Progress: 11% - Saving 5.97 MB of 52.63 MB (6258101/55186496)
Progress: 11% - Sa
END of COMMAND LOG

SCRIPT LOG
Chocolatey v0.10.0
Chocolatey detected you are not running from an elevated command shell
(cmd/powershell).

You may experience errors - many functions/packages
require admin rights. Only advanced users should run choco w/out an
elevated shell. When you open the command shell, you should ensure
that you do so with "Run as Administrator" selected. If you are
attempting to use Chocolatey in a non-administrator setting, you
must select a different location other than the default install
location. See
https://chocolatey.org/install#non-admi ... ve-install for details.

For the question below, you have 20 seconds to make a selection.

Do you want to continue?([Y]es/[N]o):
Timeout or your choice of '' is not a valid selection.
Installing the following packages:
jre8
By installing you accept licenses for the packages.
jre8 not installed. The package was not found with the source(s) listed.
If you specified a particular version and are receiving this message, it is possible that the package name exists but the version does not.
Version: ""
Source(s): "https://chocolatey.org/api/v2/"

Chocolatey installed 0/1 packages. 1 packages failed.
See the log for details (C:\ProgramData\chocolatey\logs\chocolatey.log).

Failures
- jre8 - jre8 not installed. The package was not found with the source(s) listed.
If you specified a particular version and are receiving this message, it is possible that the package name exists but the version does not.
Version: ""
Source(s): "https://chocolatey.org/api/v2/"

Check out Pro / Business for more features! https://chocolatey.org/compare

MACHINE 2 - UPGRADE from 8.31
COMMAND LOG
Parameters: cmd!!! /C "C:\ProgramData\chocolatey\bin\choco.exe" install -fy jre8
Output: Installing the following packages:
jre8
By installing you accept licenses for the packages.

jre8 v8.0.91 (forced)
Searching if new version exists...
Downloading jre8 32 bit
from 'http://javadl.oracle.com/webapps/downlo ... eId=207773'
Installing jre8...
jre8 has been installed.
Downloading jre8 64 bit
from 'http://javadl.oracle.com/webapps/downlo ... eId=207775'
Installing jre8...
jre8 has been installed.
Searching if the previous version exists...
The install of jre8 was successful.

Chocolatey installed 1/1 package(s). 0 package(s) failed.
See the log for details (C:\ProgramData\chocolatey\logs\chocolatey.log).

Post Reply

Return to “Chocolatey For Labtech”