Giter Club home page Giter Club logo

Comments (7)

dmytro-ndp avatar dmytro-ndp commented on May 28, 2024

It seems command was executed inside the codenvy installation manager install directory. Please, try to execute it again outside codenvy directory.
If it doesn't help, review of
/var/log/puppet/puppet-agent.log and codenvy/cli/logs/cli.log would be useful.

from codenvy.

TylerJewell avatar TylerJewell commented on May 28, 2024

Also dymtro. Please change the error message from "has been failed" to "failed". Better English.

from codenvy.

 avatar commented on May 28, 2024

@tolusha can you verify @dmytro-ndp's suggestion helps?

from codenvy.

tolusha avatar tolusha commented on May 28, 2024

I didn't help. Installation manager log:

Caused by: com.codenvy.im.agent.AgentException: Can't execute command 'COUNTER=0
while true; do
sudo puppet cert list --all | grep '"codenvy"' &>/dev/null
hasCertificate=$?
if [[ $hasCertificate == 0 ]]; then
sudo systemctl restart puppetmaster
break
fi
sleep 10
let COUNTER=COUNTER+1
if [[ $COUNTER -eq 30 ]]; then
echo 'Puppet agent error' >&2
exit 1
fi
done
'. Output: ; Error: Puppet agent error.
<------>at com.codenvy.im.agent.AgentException.create(AgentException.java:34)
<------>at com.codenvy.im.agent.LocalAgent.executeWithoutPassword(LocalAgent.java:97)
<------>at com.codenvy.im.agent.LocalAgent.execute(LocalAgent.java:54)
<------>at com.codenvy.im.commands.SimpleCommand.execute(SimpleCommand.java:104)
<------>... 27 more
Caused by: java.lang.Exception: Output: ; Error: Puppet agent error.
<------>at com.codenvy.im.agent.AbstractAgent.processOutput(AbstractAgent.java:53)
<------>at com.codenvy.im.agent.LocalAgent.executeWithoutPassword(LocalAgent.java:94)
<------>... 29 more
.
2016-07-20 14:56:05 +0100 [SEVERE] com.codenvy.im.console.Console printErrorAndExit {
"message" : "Command execution fail. Error: Can't execute command 'COUNTER=0\n while true; do\n sudo puppet cert list --all | grep '"codenvy"' &>/dev/null\n hasCertificate=$?\n if [[ $hasCertificate == 0
"status" : "ERROR"
}..

from codenvy.

tolusha avatar tolusha commented on May 28, 2024

Puppet agent log:
2016-07-20 14:40:55 +0100 Puppet (notice): Finished catalog run in 4.62 seconds
2016-07-20 14:43:44 +0100 Puppet (notice): Caught TERM; exiting
2016-07-20 14:50:09 +0100 Puppet (err): Could not request certificate: Connection timed out - connect(2)
2016-07-20 14:50:30 +0100 Puppet (err): Could not run: SIGTERM
2016-07-20 14:56:53 +0100 Puppet (err): Could not request certificate: Connection timed out - connect(2)

from codenvy.

bmicklea avatar bmicklea commented on May 28, 2024

Removing blocker status because this does not require changes to code so can be released at any time.

from codenvy.

dmytro-ndp avatar dmytro-ndp commented on May 28, 2024

I reproduced this issue locally in case when IP of 'apptium' host is unavailable.

Fixup: add next record into /etc/hosts file on Master Server:
127.0.0.1 apptium

Actually, there is dedicated issue #464 to do such kind of fixup automatically.

from codenvy.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.