Publishing artifacts ?#927
|
|
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
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, |
|
|
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. |
