繁体   English   中英

GlassFish Server更新中心安装超时

[英]GlassFish Server update center installation times out

我已经在Netbeans中安装了GlassFish Server实例,我正在尝试安装其更新中心。 我在Windows 7下以管理员身份运行Netbeans。

我正在快速上网,pkg.oracle.com似乎从浏览器加载得相当快。 不过,我一直在收到这个错误:

C:\Program Files\glassfish-4.0>"C:\Program Files\Java\jdk1.6.0_45\bin\java" -Dimage.path="C:\Program Files\glassfish-4.0\bin\\.." -jar "C:\Program Files\glassfish-4.0\bin\\..\pkg/lib/pkg-bootstrap.jar" "C:\Users\velosyp\AppData\Local\Temp\pkg-bootstrap1368.props" 
Proxy: Using system proxy settings.
Install image: C:\Program Files\glassfish-4.0
Installing pkg packages.
Downloading 2 packages.
Downloading pkg (514 files, 6 463 109 bytes).
Downloading python2.4-minimal (278 files, 3 828 949 bytes).
Executing 906 install actions.
Installing updatetool packages.
Downloading 2 packages.
Downloading updatetool (564 files, 4 632 599 bytes).
Input/output error: Read timed out

Could not download application packages. This could be because:
  - a proxy server is needed to access the internet. Please ensure that
    the system proxy server settings in your Internet Options control panel
    (under Connections:LAN Settings) are correct, or set the HTTP_PROXY
    environment variable to the full URL of the proxy server.
  - the package server or network connection is slow.
    If you are getting time out errors you can try setting the
    PKG_CLIENT_CONNECT_TIMEOUT and PKG_CLIENT_READ_TIMEOUT
    environment variables and try again. For example to increase
    the timeouts to 300 seconds set them to 300
  - the package server is down or otherwise inaccessible or it is
    generating invalid data. Please contact the provider of the package
    server.

可能有什么不对?

这可能是缓慢的GlassFish更新服务器的问题。 您可以尝试以下步骤:

您应该首先重试以查看错误是否再次发生。 您可以启动cmd,导航到\\ glassfish \\ bin目录并运行updatetool.bat,这样您就可以看到在您发布的输出之后打印的输出。

如果您位于代理服务器后面,则应确保在系统设置中正确设置。

您还可以尝试通过GlassFish管理控制台安装更新。 启动GlassFish实例并导航到http:\\ localhost:4848。 在左侧菜单的底部,单击Updatetool。 在那里,您可以选择并安装所需的更新。

另一种选择是更改pkg工具的超时。 要将超时设置为300秒,请在cmd中执行以下操作(在Windows上):

set PKG_CLIENT_CONNECT_TIMEOUT=300
set PKG_CLIENT_READ_TIMEOUT=300

你最后(好吧,可能有其他的)选项是跳过更新过程并使用当前版本进行教程。 无论如何它应该工作,我可以在我的GlassFish更新中心看到目前只有教程文档的更新。

检查一下

首先尝试pkg ,然后尝试pkg pkg install updatetool

另一个选择是首先bootstrap (较小的) pkg命令,然后使用pkg命令安装updatetool (而不是bootstrapping updatetool)。 例如:

pkg list

回答'y'来引导pkg命令。 然后:

pkg install updatetool

使用pkg命令安装updatetool

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM