Publishing artifacts ?#927

Subscribe to Publishing artifacts ? 2 post(s), 2 voice(s)

 
Avatar Mathieu 4 post(s) #2490

Hi,

I’m trying to publish artifacts to the cruise server (ubuntu linux) but the agent (under windows XP) fails. From what I saw in the logs, it tells me that ”- Artifacts cannot be published” and that I should “Check if file permissions, etc, are correct.”. However I do not now where to look on the server. I my /var/lib/cruise-server all files and directory are writable by the cruise user…

Where are the artifacts uploaded ?

FYI, here is the relevant log part from the agent :

2008-10-16 09:17:05,541 [org.springframework.scheduling.timer.TimerFactoryBean#0] DEBUG cruise.remote.work.BuildWork:95 – BuildInstance[920, agent-windowsXP]: starting to publish artifacts

2008-10-16 09:17:05,557 [org.springframework.scheduling.timer.TimerFactoryBean#0] INFO thoughtworks.cruise.util.HttpService:46 – Uploading the file [C:\WINDOWS\TEMP\log.xml.zip] to url [https://gala:8154/cruise/remoting/files/eveGIS/alpha-b104/Package/agent-windowsXP/cruise-output?buildId=920]

2008-10-16 09:17:05,572 [org.springframework.scheduling.timer.TimerFactoryBean#0] INFO thoughtworks.cruise.util.HttpService:75 – Got back 201 from server

2008-10-16 09:17:07,213 [org.springframework.scheduling.timer.TimerFactoryBean#0] INFO thoughtworks.cruise.util.HttpService:46 – Uploading the file [C:\WINDOWS\TEMP\Output.zip] to url [https://gala:8154/cruise/remoting/files/eveGIS/alpha-b104/Package/agent-windowsXP?buildId=920]

2008-10-16 09:17:08,072 [Thread-54] DEBUG cruise.remote.work.ConsoleResource:27 – Appending console to URL->https://gala:8154/cruise/remoting/files/eveGIS/alpha-b104/Package/agent-windowsXP/cruise-output/console.log?buildId=920

2008-10-16 09:17:08,338 [org.springframework.scheduling.timer.TimerFactoryBean#0] INFO thoughtworks.cruise.util.HttpService:75 – Got back 500 from server

2008-10-16 09:17:09,869 [org.springframework.scheduling.timer.TimerFactoryBean#0] INFO thoughtworks.cruise.util.HttpService:46 – Uploading the file [C:\WINDOWS\TEMP\Output.zip] to url [https://gala:8154/cruise/remoting/files/eveGIS/alpha-b104/Package/agent-windowsXP?buildId=920]

2008-10-16 09:17:10,979 [org.springframework.scheduling.timer.TimerFactoryBean#0] INFO thoughtworks.cruise.util.HttpService:75 – Got back 500 from server

2008-10-16 09:17:12,510 [org.springframework.scheduling.timer.TimerFactoryBean#0] INFO thoughtworks.cruise.util.HttpService:46 – Uploading the file [C:\WINDOWS\TEMP\Output.zip] to url [https://gala:8154/cruise/remoting/files/eveGIS/alpha-b104/Package/agent-windowsXP?buildId=920]

2008-10-16 09:17:13,088 [Thread-54] DEBUG cruise.remote.work.ConsoleResource:27 – Appending console to URL->https://gala:8154/cruise/remoting/files/eveGIS/alpha-b104/Package/agent-windowsXP/cruise-output/console.log?buildId=920

2008-10-16 09:17:13,666 [org.springframework.scheduling.timer.TimerFactoryBean#0] INFO thoughtworks.cruise.util.HttpService:75 – Got back 500 from server

2008-10-16 09:17:13,666 [org.springframework.scheduling.timer.TimerFactoryBean#0] ERROR cruise.remote.work.BuildWork:47 – Artifacts cannot be published for Build[eveGIS/alpha-b104/Package/agent-windowsXP/920]. Check if file permissions, etc, are correct

com.thoughtworks.cruise.domain.exception.ArtifactPublishingException

at com.thoughtworks.cruise.publishers.CruiseArtifactsPublisher.upload(CruiseArtifactsPublisher.java:57)
at com.thoughtworks.cruise.domain.ArtifactPlan.publishWithProperties(ArtifactPlan.java:94)
at com.thoughtworks.cruise.domain.ArtifactPlan.publish(ArtifactPlan.java:88)
at com.thoughtworks.cruise.domain.ArtifactPlans.publish(ArtifactPlans.java:23)
at com.thoughtworks.cruise.domain.BuildInstance.publishArtifacts(BuildInstance.java:342)
at com.thoughtworks.cruise.remote.work.BuildWork.build(BuildWork.java:96)
at com.thoughtworks.cruise.remote.work.BuildWork.doWork(BuildWork.java:40)
at com.thoughtworks.cruise.agent.AgentController.retrieveWork(AgentController.java:82)
at com.thoughtworks.cruise.agent.AgentController.loop(AgentController.java:62)
at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.springframework.util.MethodInvoker.invoke(MethodInvoker.java:275)
at org.springframework.scheduling.support.MethodInvokingRunnable.run(MethodInvokingRunnable.java:76)
at org.springframework.scheduling.timer.DelegatingTimerTask.run(DelegatingTimerTask.java:66)
at java.util.TimerThread.mainLoop(Timer.java:512)
at java.util.TimerThread.run(Timer.java:462)

2008-10-16 09:17:13,729 [org.springframework.scheduling.timer.TimerFactoryBean#0] INFO cruise.remote.work.BuildWork:61 – Stopping Transmission for Build[eveGIS/alpha-b104/Package/agent-windowsXP/920]

2008-10-16 09:17:13,729 [org.springframework.scheduling.timer.TimerFactoryBean#0] DEBUG cruise.remote.work.ConsoleResource:27 – Appending console to URL->https://gala:8154/cruise/remoting/files/eveGIS/alpha-b104/Package/agent-windowsXP/cruise-output/console.log?buildId=920

I hope it still gets readable (as far as log4j logs are) :-)

Any hints ?

Regardf,
Mathieu

 
Avatar Qiao Liang Administrator 18 post(s) #2492

in cruise-config.xml, there is a tag with default artifactsdir like : <server artifactsdir="logs" />, that means cruise agent will publish the artifacts from agent to the folder ${server_installed_folder}/logs.

If the server is on linux, it should be /var/lib/cruise-server/logs. So please give the account cruise the permission for the folder.

If the server is on windows, please change the owner of Cruise Server service to the login account.