Latest eclipse che image complains about /data not mounted although it is, and stops with exit code 2
See original GitHub issueStarting eclipse che, I am getting a message saying /data is not mounted:
eclipse_1 | WARN: You are using CLI image version 'latest' which is set to '5.1.1'.
eclipse_1 | WARNING: Usage of loopback devices is strongly discouraged for production use. Either use `--storage-opt dm.thinpooldev` or use `--storage-opt dm.no_warn_on_loop_devices=true` to suppress this warning.
eclipse_1 | WARN: Did not detect TTY - interactive mode disabled
eclipse_1 | INFO: Welcome to Eclipse Che!
eclipse_1 | INFO:
eclipse_1 | INFO: We could not detect a location to save data.
eclipse_1 | INFO: Volume mount a local directory to ':/data'.
Afterwards, it stops with exit code 2.
However, the inspect has the mount listed:
"Mounts": [
{
"Source": "/home/jonas/Develop/eclipse-che/volumes/data",
"Destination": "/data",
"Mode": "rw",
"RW": true,
"Propagation": "rprivate"
},
{
"Source": "/var/run/docker.sock",
"Destination": "/var/run/docker.sock",
"Mode": "rw",
"RW": true,
"Propagation": "rprivate"
}
],
Also, the respective docker-compose.yml I wrote contains it too:
version: '2'
services:
eclipse:
image: eclipse/che
volumes:
- ./volumes/data/:/data
- /var/run/docker.sock:/var/run/docker.sock
command: start
Reproduction Steps:
- Start eclipse/che with
docker-compose up -d
- Check log with
docker-compose logs
- Observe process is gone with
docker-compose ps
Che version: version
seems to be broken by this too, although clearly it shouldn’t need the data directory to be existant:
[root@falcon eclipse-che]# docker-compose run eclipse version
WARN: You are using CLI image version 'latest' which is set to '5.1.1'.
WARNING: Usage of loopback devices is strongly discouraged for production use. Either use `--storage-opt dm.thinpooldev` or use `--storage-opt dm.no_warn_on_loop_devices=true` to suppress this warning.
INFO: Welcome to Eclipse Che!
INFO:
INFO: We could not detect a location to save data.
INFO: Volume mount a local directory to ':/data'.
INFO:
INFO: Simplest syntax:
INFO: docker run -it --rm -v /var/run/docker.sock:/var/run/docker.sock
INFO: -v <YOUR_LOCAL_PATH>:/data
INFO: eclipse/che version
INFO:
INFO:
INFO: Or, run with additional overrides:
INFO: docker run -it --rm -v /var/run/docker.sock:/var/run/docker.sock
INFO: -v <YOUR_LOCAL_PATH>:/data
INFO: -v <YOUR_INSTANCE_PATH>:/data/instance
INFO: -v <YOUR_BACKUP_PATH>:/data/backup
INFO: eclipse/che version
[root@falcon eclipse-che]#
OS and version: Fedora 25 x64 (I tested with setenforce 0
to make sure SELinux wasn’t the reason)
Docker version:
Client:
Version: 1.12.6
API version: 1.24
Package version: docker-common-1.12.6-5.git037a2f5.fc25.x86_64
Go version: go1.7.4
Git commit: 037a2f5/1.12.6
Built: Wed Jan 18 12:11:29 2017
OS/Arch: linux/amd64
Server:
Version: 1.12.6
API version: 1.24
Package version: docker-common-1.12.6-5.git037a2f5.fc25.x86_64
Go version: go1.7.4
Git commit: 037a2f5/1.12.6
Built: Wed Jan 18 12:11:29 2017
OS/Arch: linux/amd64
Che cli.log output: There is no log file present.
Issue Analytics
- State:
- Created 7 years ago
- Comments:33 (15 by maintainers)
Top Results From Across the Web
Bug: Auto-complete doesn't work for Java in eclipse 2021-03
But autocomplete doesn't work. The first time I try it I get a popup that has just 1 line, "No Default Proposals."
Read more >workspace fails and starts several times. not sure why
i have installed below secret component in eclipse-che namespace. i have also configured dex with gitlab sso. does this answer your question?
Read more >Eclipse/Java code completion not working
I was experiencing this issue in only once particular class. What finally worked for me was to delete the offending class and recreate...
Read more >Known issues with Android Studio and Android Gradle Plugin
Native debugger crashes with "Debugger process finished with exit code 127" ... This error occurs on Linux-based platforms when starting the native debugger....
Read more >Bug listing with status RESOLVED with resolution OBSOLETE ...
systemPrefs with at least two files" status:RESOLVED resolution:OBSOLETE ... error while loading shared libraries: libjli.so - /proc is not mounted" ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@JamesDrummond see https://github.com/eclipse/che/issues/3863#issuecomment-274705961 for how to reproduce this issue reliably with a single LUKS ext4 partition and regular x64 architecture and without SELinux being enforced (requires installing Fedora 25 which can be easily done in KVM/Virtualbox, see the comment for details)
@TylerJewell sure you’re free to use what you want, it was just a suggestion. (both from my own experience with maintaining more complex startup scripts in bash, and using python 3 as an also lightweight alternative) I’ll try your change right now and see if it does any better!
This works for me on latest nightly, so I suppose this can be closed?