java.io.IOException: Server returned HTTP response code: 503 for URL: http://iclil/bamboo/agentServer/GetResource.action?name=log4j.properties&fingerprint=1225283395682

Atlassian JIRA | Pete de Zwart | 8 years ago
tip
Do you know that we can give you better hits? Get more relevant results from Samebug’s stack trace search.
  1. 0

    Launching the agent via the usual method: {noformat} pdezwart@Dschubba:~/Downloads[11:40:14](0,0)$ java -jar bamboo-agent-2.1.3.jar http://iclil/bamboo/agentServer/ log4j:ERROR Could not read configuration file from URL [http://iclil/bamboo/agentServer/GetResource.action?name=log4j.properties&fingerprint=1225283395682]. java.io.IOException: Server returned HTTP response code: 503 for URL: http://iclil/bamboo/agentServer/GetResource.action?name=log4j.properties&fingerprint=1225283395682 at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1170) at java.net.URL.openStream(URL.java:1007) at org.apache.log4j.PropertyConfigurator.doConfigure(PropertyConfigurator.java:433) at org.apache.log4j.PropertyConfigurator.configure(PropertyConfigurator.java:336) at com.atlassian.bamboo.v2.build.agent.remote.RemoteAgent.start(RemoteAgent.java:57) at com.atlassian.bamboo.agent.bootstrap.AgentRunner.run(AgentRunner.java:23) at java.lang.Thread.run(Thread.java:613) log4j:ERROR Ignoring configuration file [http://iclil/bamboo/agentServer/GetResource.action?name=log4j.properties&fingerprint=1225283395682]. 0 [Thread-3] ERROR com.atlassian.bamboo.agent.bootstrap.AgentBootstrap - Exiting due to fatal exception. org.springframework.beans.factory.BeanDefinitionStoreException: IOException parsing XML document from class path resource [applicationContextRemoteAgent.xml]; nested exception is java.io.FileNotFoundException: class path resource [applicationContextRemoteAgent.xml] cannot be opened because it does not exist Caused by: java.io.FileNotFoundException: class path resource [applicationContextRemoteAgent.xml] cannot be opened because it does not exist at org.springframework.core.io.ClassPathResource.getInputStream(ClassPathResource.java:135) at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:307) at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:290) at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:131) at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:147) at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:173) at org.springframework.context.support.AbstractXmlApplicationContext.loadBeanDefinitions(AbstractXmlApplicationContext.java:112) at org.springframework.context.support.AbstractXmlApplicationContext.loadBeanDefinitions(AbstractXmlApplicationContext.java:79) at org.springframework.context.support.AbstractRefreshableApplicationContext.refreshBeanFactory(AbstractRefreshableApplicationContext.java:101) at org.springframework.context.support.AbstractApplicationContext.obtainFreshBeanFactory(AbstractApplicationContext.java:389) at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:324) at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:122) at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:76) at com.atlassian.bamboo.v2.build.agent.remote.RemoteAgent.initApplicationContext(RemoteAgent.java:170) at com.atlassian.bamboo.v2.build.agent.remote.RemoteAgent.start(RemoteAgent.java:61) at com.atlassian.bamboo.agent.bootstrap.AgentRunner.run(AgentRunner.java:23) at java.lang.Thread.run(Thread.java:613) {noformat} Trying the old {{-Dbamboo.agent.brokerUrl=tcp://$HOST:54663}} argument: {noformat} pdezwart@Dschubba:~/Downloads[11:40:49](0,1)$ java -jar bamboo-agent-2.1.3.jar -Dbamboo.agent.brokerUrl=tcp://iclil:54663 0 [main] ERROR com.atlassian.bamboo.agent.bootstrap.AgentBootstrap - Remote agent could not start. Retrying in 30 seconds. java.lang.IllegalArgumentException: Invalid uri '-Dbamboo.agent.brokerUrl=tcp:://iclil:54663/GetFingerprint.action?hostName=Dschubba.central.dezwart.net.au': incorrect scheme at org.apache.commons.httpclient.HttpMethodBase.<init>(HttpMethodBase.java:219) at org.apache.commons.httpclient.methods.GetMethod.<init>(GetMethod.java:88) at com.atlassian.bamboo.agent.bootstrap.AgentContext.<init>(AgentContext.java:89) at com.atlassian.bamboo.agent.bootstrap.AgentBootstrap.run(AgentBootstrap.java:77) at com.atlassian.bamboo.agent.bootstrap.AgentBootstrap.main(AgentBootstrap.java:27) {noformat} Seems similar to [BAM-2008], but I am struggling trying to find relevant logs, as the {{catalina.out}} has nothing useful & there seems to be no log files in the server {{$BAMBOO_HOME}}.

    Atlassian JIRA | 8 years ago | Pete de Zwart
    java.io.IOException: Server returned HTTP response code: 503 for URL: http://iclil/bamboo/agentServer/GetResource.action?name=log4j.properties&fingerprint=1225283395682
  2. 0

    Launching the agent via the usual method: {noformat} pdezwart@Dschubba:~/Downloads[11:40:14](0,0)$ java -jar bamboo-agent-2.1.3.jar http://iclil/bamboo/agentServer/ log4j:ERROR Could not read configuration file from URL [http://iclil/bamboo/agentServer/GetResource.action?name=log4j.properties&fingerprint=1225283395682]. java.io.IOException: Server returned HTTP response code: 503 for URL: http://iclil/bamboo/agentServer/GetResource.action?name=log4j.properties&fingerprint=1225283395682 at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1170) at java.net.URL.openStream(URL.java:1007) at org.apache.log4j.PropertyConfigurator.doConfigure(PropertyConfigurator.java:433) at org.apache.log4j.PropertyConfigurator.configure(PropertyConfigurator.java:336) at com.atlassian.bamboo.v2.build.agent.remote.RemoteAgent.start(RemoteAgent.java:57) at com.atlassian.bamboo.agent.bootstrap.AgentRunner.run(AgentRunner.java:23) at java.lang.Thread.run(Thread.java:613) log4j:ERROR Ignoring configuration file [http://iclil/bamboo/agentServer/GetResource.action?name=log4j.properties&fingerprint=1225283395682]. 0 [Thread-3] ERROR com.atlassian.bamboo.agent.bootstrap.AgentBootstrap - Exiting due to fatal exception. org.springframework.beans.factory.BeanDefinitionStoreException: IOException parsing XML document from class path resource [applicationContextRemoteAgent.xml]; nested exception is java.io.FileNotFoundException: class path resource [applicationContextRemoteAgent.xml] cannot be opened because it does not exist Caused by: java.io.FileNotFoundException: class path resource [applicationContextRemoteAgent.xml] cannot be opened because it does not exist at org.springframework.core.io.ClassPathResource.getInputStream(ClassPathResource.java:135) at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:307) at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:290) at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:131) at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:147) at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:173) at org.springframework.context.support.AbstractXmlApplicationContext.loadBeanDefinitions(AbstractXmlApplicationContext.java:112) at org.springframework.context.support.AbstractXmlApplicationContext.loadBeanDefinitions(AbstractXmlApplicationContext.java:79) at org.springframework.context.support.AbstractRefreshableApplicationContext.refreshBeanFactory(AbstractRefreshableApplicationContext.java:101) at org.springframework.context.support.AbstractApplicationContext.obtainFreshBeanFactory(AbstractApplicationContext.java:389) at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:324) at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:122) at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:76) at com.atlassian.bamboo.v2.build.agent.remote.RemoteAgent.initApplicationContext(RemoteAgent.java:170) at com.atlassian.bamboo.v2.build.agent.remote.RemoteAgent.start(RemoteAgent.java:61) at com.atlassian.bamboo.agent.bootstrap.AgentRunner.run(AgentRunner.java:23) at java.lang.Thread.run(Thread.java:613) {noformat} Trying the old {{-Dbamboo.agent.brokerUrl=tcp://$HOST:54663}} argument: {noformat} pdezwart@Dschubba:~/Downloads[11:40:49](0,1)$ java -jar bamboo-agent-2.1.3.jar -Dbamboo.agent.brokerUrl=tcp://iclil:54663 0 [main] ERROR com.atlassian.bamboo.agent.bootstrap.AgentBootstrap - Remote agent could not start. Retrying in 30 seconds. java.lang.IllegalArgumentException: Invalid uri '-Dbamboo.agent.brokerUrl=tcp:://iclil:54663/GetFingerprint.action?hostName=Dschubba.central.dezwart.net.au': incorrect scheme at org.apache.commons.httpclient.HttpMethodBase.<init>(HttpMethodBase.java:219) at org.apache.commons.httpclient.methods.GetMethod.<init>(GetMethod.java:88) at com.atlassian.bamboo.agent.bootstrap.AgentContext.<init>(AgentContext.java:89) at com.atlassian.bamboo.agent.bootstrap.AgentBootstrap.run(AgentBootstrap.java:77) at com.atlassian.bamboo.agent.bootstrap.AgentBootstrap.main(AgentBootstrap.java:27) {noformat} Seems similar to [BAM-2008], but I am struggling trying to find relevant logs, as the {{catalina.out}} has nothing useful & there seems to be no log files in the server {{$BAMBOO_HOME}}.

    Atlassian JIRA | 8 years ago | Pete de Zwart
    java.io.IOException: Server returned HTTP response code: 503 for URL: http://iclil/bamboo/agentServer/GetResource.action?name=log4j.properties&fingerprint=1225283395682
  3. 0

    unable to run updatetool ??

    Oracle Community | 9 years ago | 392 Guest
    java.io.IOException: Server returned HTTP response code: 504 for URL: http://pkg.glas sfish.org/dev/windows/gf3000_2000/catalog/0
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Websphere Mq Connection error

    Stack Overflow | 2 years ago | Kasun
    com.ibm.msg.client.jms.DetailedJMSException: JMSWMQ2020: Failed to connect to queue manager '' with connection mode 'Client' and supplied CCDT URL 'http://192.168.1.173', see linked exception for more information. Check the queue manager is started and if running in client mode, check there is a listener running. Please see the linked exception for more information. at com.ibm.msg.client.wmq.common.internal.Reason.reasonToException(Reason.java:578)
  6. 0

    Error is system logs

    GitHub | 2 years ago | LawlyPopz
    java.io.IOException: Server returned HTTP response code: 422 for URL: https://api.twitch.tv/kraken/channels/lawlypopzcastleclash/subscriptions?oauth_token=blhblahbalbhablah&limit=100&offset=0

  1. batwalrus76 1 times, last 3 weeks ago
  2. eti22 1 times, last 2 months ago
  3. serious2monkeys 2 times, last 4 months ago
  4. tyson925 2 times, last 7 months ago
  5. aldrinleal 14 times, last 7 months ago
1 more registered users
20 unregistered visitors
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. java.io.IOException

    Server returned HTTP response code: 503 for URL: http://iclil/bamboo/agentServer/GetResource.action?name=log4j.properties&fingerprint=1225283395682

    at sun.net.www.protocol.http.HttpURLConnection.getInputStream()
  2. Java RT
    URL.openStream
    1. sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1170)
    2. java.net.URL.openStream(URL.java:1007)
    2 frames
  3. Apache Log4j
    PropertyConfigurator.configure
    1. org.apache.log4j.PropertyConfigurator.doConfigure(PropertyConfigurator.java:433)
    2. org.apache.log4j.PropertyConfigurator.configure(PropertyConfigurator.java:336)
    2 frames
  4. com.atlassian.bamboo
    AgentRunner.run
    1. com.atlassian.bamboo.v2.build.agent.remote.RemoteAgent.start(RemoteAgent.java:57)
    2. com.atlassian.bamboo.agent.bootstrap.AgentRunner.run(AgentRunner.java:23)
    2 frames
  5. Java RT
    Thread.run
    1. java.lang.Thread.run(Thread.java:613)
    1 frame