Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Jan 31 21:37
    ibnc synchronize #5756
  • Jan 31 20:02
    ibnc synchronize #5756
  • Jan 31 19:07
    arvindsv commented #3304
  • Jan 31 19:06
    arvindsv commented #3304
  • Jan 31 18:59
    varshavaradarajan synchronize #5791
  • Jan 31 18:24
    ibnc synchronize #5756
  • Jan 31 18:11
    mushycode commented #3304
  • Jan 31 17:29
    GaneshSPatil opened #5797
  • Jan 31 15:22
    arvindsv unpinned #5776
  • Jan 31 15:07
    arvindsv commented #3304
  • Jan 31 15:07
    arvindsv commented #3304
  • Jan 31 14:59
    arvindsv commented #5796
  • Jan 31 14:09
    akshaydewan commented #5796
  • Jan 31 13:21
    maheshp commented #5796
  • Jan 31 12:42
    ketan commented #5795
  • Jan 31 12:39
    ketan commented #5795
  • Jan 31 12:38
    JorritSalverda commented #5795
  • Jan 31 12:35
    JorritSalverda commented #5795
  • Jan 31 12:35
    JorritSalverda closed #5795
  • Jan 31 12:00
    mushycode commented #3304
NikoHeikki
@NikoHeikki
1 hour difference
and in the pipeline SCHEDULED ON:10 Oct 2019 at 09:46:33 Local Time
Ketan Padegaonkar
@ketan
are you using elastic agents?
NikoHeikki
@NikoHeikki
yes
Ketan Padegaonkar
@ketan
ah. ok. That log is actually synthetically generated by the server, the agent does not really exist at the time that line is generated.
I think there was some discussion about it on github. one second.
NikoHeikki
@NikoHeikki
why it doesnt then create the console log based on gocd server time if agent does not exist yet
Ketan Padegaonkar
@ketan
I believe the time in that statement should be the server timezone.
Screen Shot 2019-10-10 at 2.12.41 PM.png
NikoHeikki
@NikoHeikki
now it says time which is not in gocd server or in agent, is it by random? :D
Ketan Padegaonkar
@ketan
definitely not random :)
confusing, yes, not random.
NikoHeikki
@NikoHeikki
can I do something about it?
Ketan Padegaonkar
@ketan
yes definitely :)
NikoHeikki
@NikoHeikki
What time I need to update then?
Ketan Padegaonkar
@ketan
if you feel the messages could add some clarity, just open an issue about what possible log messages you'd like to see.
NikoHeikki
@NikoHeikki
Java gets time from containers timezone?
Ketan Padegaonkar
@ketan
yes
NikoHeikki
@NikoHeikki
but then it should be correct? :D
Ketan Padegaonkar
@ketan
hmm. not sure what's happening, perhaps some java+docker gotcha
I can see on my container that date prints time in UTC, but java seems to think it's PDT.
NikoHeikki
@NikoHeikki
yep
Ketan Padegaonkar
@ketan
there are no magical environment variables being set either.
Ketan Padegaonkar
@ketan
@NikoHeikki: For now, I recommend opening an issue on github, and take the conversation there.
NikoHeikki
@NikoHeikki
done
Chad Wilson
@chadlwilson
Anyone know if there is a way (env vars? something else?) to tell GoCD agents to retry a git clone failure when updating a GitMaterial?
@chadlwilson We are getting rate limited by AWS CodeCommit which is a pain; but wondered if we have a way to work around it. Similar to GitLab's GET_SOURCES_ATTEMPTS: https://docs.gitlab.com/ce/ci/yaml/README.html#job-stages-attempts
Arunvel Sriram
@arunvelsriram

We are getting below error sporadically:

Error performing command: --- Command ---
    git clean -dffx
    --- Environment ---
    {}
    --- INPUT ----


    --- EXIT CODE (1) ---
    --- STANDARD OUT ---
    Removing <file>
    ...


    --- STANDARD ERR ---
    STDERR: warning: failed to remove <file>
    ...

any idea why this is happenning?

Ketan Padegaonkar
@ketan
@arunvelsriram If you're on windows, it's usually a sign that the files have been locked by some process.
Arunvel Sriram
@arunvelsriram
Its on docker container running in centos vm
Ketan Padegaonkar
@ketan
hmm, that's odd. I'm not sure why that could happen.
Aravind SV
@arvindsv
Permissions, maybe?
Ketan Padegaonkar
@ketan
Gocd just executes the command as-is.
Arunvel Sriram
@arunvelsriram
To add more context we use Docker Outside of Docker (DooD)workflow https://docs.gocd.org/current/gocd_on_kubernetes/docker_workflows.html
Aravind SV
@arvindsv
I’d check permissions or ownership of those files.
Are you volume mounting the GoCD agent work dir by any chance?
The user inside the container will be go (especially with newer GoCD versions). With older GoCD versions, it would be root. If it is a long-running agent, which was using the earlier versions, then the files might be owned by root.
Arunvel Sriram
@arunvelsriram
Yes we are volume mounting godata
I exec-ed in to the container and ran the command it ran successfully.
we are using version 19.8.0.
Even in the same agent its not occurring continuously.
I will check those permissions during the next failure as well and keep you posted.
Aravind SV
@arvindsv
@arunvelsriram Maybe the same volume is being mounted in a different agent where the user is different, or something is being created using sudo. So, maybe a file left behind belongs to a different user. Sure, if you find out what happened, let us know. As Ketan said, GoCD is just executing git clean -dffx, that’s it. Nothing more.
Raviadonis
@Raviadonis
Hello there!
I have two queries here
Is there a way i can do the deployment with git tags in Gocd?
and is it possible to skip one or more stages and trigger the last stage?
tejas27
@tejas27
Hi, while compiling the code, lot of time is being consumed in preparing...rather than building, how can we overcome this issue
Varsha Varadarajan
@varshavaradarajan
:point_up: October 11, 2019 3:41 PM - @tejas27, use the shallow clone option?
Shivani Shinde
@erIamshivani

Hi, I am hitting create artifact API of GoCD from UI using angular js. I am getting error for CORS policy as

Access to XMLHttpRequest at 'https://<my-ip>:8154/go/files/FirstPipeline/13/defaultStage/1/defaultJob/' from origin 'http://shivanigocd.net:3000' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: Redirect is not allowed for a preflight request.

I found out that I need to add headers like

'Access-Control-Allow-Origin' : 'http://shivanigocd.net:3000',
'Access-Control-Allow-Methods' : 'GET, POST, OPTIONS, PUT, PATCH, DELETE',
'Access-Control-Allow-Headers' : 'Content-Type,Content-Length, Authorization, Accept,X-Requested-With'

on gocd side. Where shall this be added?