Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Che force closes #239

Closed
balloman opened this issue Jan 29, 2016 · 31 comments
Closed

Che force closes #239

balloman opened this issue Jan 29, 2016 · 31 comments
Labels
kind/question Questions that haven't been identified as being feature requests or bugs.

Comments

@balloman
Copy link

I can't seem to run it, because every time I start the server it loads for around 3 seconds and then closes.

@TylerJewell
Copy link

We need diagnostic deals. Os, Java configuration, any outputs. The more details you can provide the better.

@balloman
Copy link
Author

Windows 10
Java 8
Can't get any outputs because can't read the screen in 2 seconds

@balloman balloman reopened this Jan 29, 2016
@TylerJewell
Copy link

Is there anything if you do --debug when running? What about trying --image?

@garagatyi
Copy link

Which Java you are using, Oracle or OpenJDK?

@ghost
Copy link

ghost commented Jan 29, 2016

Can you also copy and share logs for us to find some clues where the script fails?

@ddementieva ddementieva added the kind/question Questions that haven't been identified as being feature requests or bugs. label Jan 29, 2016
@balloman
Copy link
Author

@garagatyi I'm using Oracle, and @TylerJewell running the shortcut to start the server.
@eivantsov how do i copy and share logs

@TylerJewell
Copy link

@balloman Please run che on the command line, following the Usage instructions in the docs. Go into the directory where Che was installed and use the che scripts to see the output.

If you installed Che on windows with a directory that has a space in it, there is a known issue, solved by this pull request which has not been merged yet. #241

@ghost
Copy link

ghost commented Jan 29, 2016

241 has been merged.

@TylerJewell
Copy link

I believe the pull request #241 solves this issue. Closing. Reopen if issue reappears.

@balloman
Copy link
Author

balloman commented Feb 5, 2016

Well, I got an error that saysRunning docker succeeded, but 'docker ps' failed. This usually means that docker cannot reach its daemon
@TylerJewell

@TylerJewell
Copy link

This is a different kind of issue. Can you talk about how you started Che and the os you are on? We may have a pull request to address this issue.

@balloman
Copy link
Author

balloman commented Feb 5, 2016

I used powershell because when i used the docs, git bash gave me a no directory error, and i got no command from cmd. I am on windows 10

@TylerJewell
Copy link

I have never seen a no directory error from git bash.

  1. What directory is Che installed into?
  2. Can you provide the command you ran and the output please?

@balloman
Copy link
Author

balloman commented Feb 5, 2016

2016-02-04 1

@TylerJewell
Copy link

Ahhh, simple fix.

If you want to run Che in bash you have to use bash syntax :)
bin/che.sh run (bash doesn't auto recognize the file extension the way windows batch recognizes a .bat file).

@balloman
Copy link
Author

balloman commented Feb 5, 2016

I still get the same error

@TylerJewell
Copy link

Are there files in the /bin directory?

@balloman
Copy link
Author

balloman commented Feb 5, 2016

Yes

@TylerJewell
Copy link

Another approach would be to type "bash --login -i <path-to-che.sh>". You need to provide the full path to che.sh. If you still get no such file or directory, I'd need to see your console in a live screen share to understand better.

@balloman
Copy link
Author

balloman commented Feb 5, 2016

Yes, but I don't think this is the problem

@balloman
Copy link
Author

balloman commented Feb 5, 2016

It does this in PowerShell too

@TylerJewell
Copy link

Well, @balloman you'll need to provide very specific steps to try and recreate this issue, or invite one of our engineers into a screen share. You will have to document each step you take. But generally if the shell is saying no file found, then the command line parameter is not being entered properly.

@balloman
Copy link
Author

balloman commented Feb 5, 2016

Ok, I open power shell, I CD to the Che directory, and I run the bin/Che run command, it runs but I get the running docker succeeded but docker ps failed error

@TylerJewell
Copy link

The details are not enough to reproduce. Can you provide the output of the console and /or a screencast of the execution.

@balloman
Copy link
Author

balloman commented Feb 7, 2016

Sorry for the long time to reply @TylerJewell

Che Screencast

@ghost
Copy link

ghost commented Feb 7, 2016

Can you try removing your default machine and give it another shot? It looks like Docker deamon isn't running in a VM (you may run docker-machine ssh default and run docker ps there) or you cannot invoke Docker commands from your powershell which means a corrupted connection to a VM or something.

I think default machine removal should help.

Also, I can see that your laptop is running on battery. Do you have a power-saving mode on when unplugged? Some users have noticed that power-saving mode makes Virtual Box very slow if not unresponsive. You may want to take a look at this issue #253

@balloman
Copy link
Author

balloman commented Feb 7, 2016

@eivantsov I have my laptop on high performance at all times.
This happened after i removed the VM with virtualbox
2016-02-07 2
2016-02-07 3
2016-02-07
2016-02-07 1

@TylerJewell
Copy link

That particular exception means that you have something else running on your system that is already bound to localhost:8080. This link gives some ideas on how to figure out what else is running.

http://stackoverflow.com/questions/12737293/how-do-i-resolve-the-java-net-bindexception-address-already-in-use-jvm-bind

@balloman
Copy link
Author

balloman commented Feb 7, 2016

Well, I used your suggestion, stopped the program, ran the commands again in powershell, and it works!

@balloman
Copy link
Author

balloman commented Feb 7, 2016

2016-02-07 4

@TylerJewell
Copy link

Woot! Great job in diagnosing and figuring it out.

Katka92 pushed a commit to Katka92/che that referenced this issue Jun 27, 2018
…clipse-che#239)

This is important, because now the `openshift-connector-wip` branch,
that we still use, might have the same che version number than more
recent snapshots available from the upstream che maven repository.

Signed-off-by: David Festal <dfestal@redhat.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/question Questions that haven't been identified as being feature requests or bugs.
Projects
None yet
Development

No branches or pull requests

4 participants