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

Can't start docker in development installation #734

Closed
siathalysedI opened this issue Sep 8, 2015 · 10 comments
Closed

Can't start docker in development installation #734

siathalysedI opened this issue Sep 8, 2015 · 10 comments

Comments

@siathalysedI
Copy link

Hi.

I've followed the instructions in https://github.com/RocketChat/Rocket.Chat for the development installation and it gives me this error

Rocket.Chat]# docker run -it -p 3000:3000 -v "$(pwd)":/app danieldent/meteor
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.
run: You're not in a Meteor project directory.

To create a new Meteor project:
  meteor create <project name>
For example:
  meteor create myapp

For more help, see 'meteor --help'.

Am I in the correct folder?

@geekgonecrazy
Copy link
Contributor

The error makes it sound like you are running from a disk or maybe /tmp or something. You did a git clone and actually changed into the Rocket.Chat directory right?

Also in my experience the "'s around $(pwd) aren't needed.

@siathalysedI
Copy link
Author

I did change to the Rocket.Chat directory and it seems it seems removing the "'s around $(pwd) resolved the error: You're not in a Meteor project directory

However now I have another error:

Rocket.Chat]# docker run -it -p 3000:3000 -v $(pwd):/app danieldent/meteor
Error response from daemon: Cannot start container 080c1baed8b7be65810feadb1d07e21dfd6d8077f73d58e8d83bba303701c725: iptables failed: iptables --wait -t nat -A DOCKER -p tcp -d 0/0 --dport 3000 -j DNAT --to-destination 172.17.0.13:3000 ! -i docker0: iptables: No chain/target/match by that name.
 (exit status 1)

@geekgonecrazy
Copy link
Contributor

Does it actually run at this point?

The docker error might be to do with the actual file system docker has set up for storing the containers.

@siathalysedI
Copy link
Author

No, it does not run. It created the image but didn't started it

Rocket.Chat]# docker ps -a
CONTAINER ID        IMAGE               COMMAND              CREATED             STATUS                     PORTS               NAMES
6442afb4b889        danieldent/meteor   "meteor"             6 seconds ago                                                      suspicious_fermi
Rocket.Chat]# docker ps
CONTAINER ID        IMAGE               COMMAND             CREATED             STATUS              PORTS               NAMES

@geekgonecrazy
Copy link
Contributor

It doesn't even report the status or ports? Wow..

What operating system is Docker running on?

@siathalysedI
Copy link
Author

docker is running on centos 7

Rocket.Chat]# uname -a
Linux ##############.##.####.## 3.10.0-229.11.1.el7.x86_64 #1 SMP Thu Aug 6 01:06:18 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux
Rocket.Chat]# docker info
Containers: 3
Images: 56
Storage Driver: devicemapper
 Pool Name: docker-253:0-35597694-pool
 Pool Blocksize: 65.54 kB
 Backing Filesystem: xfs
 Data file: /dev/loop0
 Metadata file: /dev/loop1
 Data Space Used: 2.366 GB
 Data Space Total: 107.4 GB
 Data Space Available: 14.15 GB
 Metadata Space Used: 3.318 MB
 Metadata Space Total: 2.147 GB
 Metadata Space Available: 2.144 GB
 Udev Sync Supported: true
 Deferred Removal Enabled: false
 Data loop file: /var/lib/docker/devicemapper/devicemapper/data
 Metadata loop file: /var/lib/docker/devicemapper/devicemapper/metadata
 Library Version: 1.02.93-RHEL7 (2015-01-28)
Execution Driver: native-0.2
Logging Driver: json-file
Kernel Version: 3.10.0-229.11.1.el7.x86_64
Operating System: CentOS Linux 7 (Core)
CPUs: 1
Total Memory: 486.2 MiB
Name: ##############.##.####.##
ID: XVZG:OEL3:3FDG:OVZ2:774U:6OPS:QNQG:Q7VP:E2WK:JFHU:P7M4:GHUR

The error with iptables was resolved this way docker-library/mysql#72

However I have the same error on the beginning

Rocket.Chat]# docker run -it -p 3000:3000 -v $(pwd):/app danieldent/meteor
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.
run: You're not in a Meteor project directory.

To create a new Meteor project:
  meteor create <project name>
For example:
  meteor create myapp

For more help, see 'meteor --help'.

Note: The domain name is hidden on purpose.

@geekgonecrazy
Copy link
Contributor

Seems your docker install is setup up very strangly.

 Data file: /dev/loop0
 Metadata file: /dev/loop1

Both are on loopback devices? Did you set this? Cause i've never seen it do that before...

Also as long as $(pwd) is being ran while in the Rocket.Chat folder it should map correctly. Might also replace that with the full actual path. Might work.

Or it could be related to the devicemapper storage location.

@siathalysedI
Copy link
Author

When I run with docker-compose upit runs perfectly.

If I change that what values are preferred on Data file and Metadata file

@geekgonecrazy
Copy link
Contributor

@insaneisnotfree to be honest I have no idea... I'd google that loopback error its throwing you.

Very interesting that everything comes up with docker-compose up Makes me wonder if maybe it was running out of memory? The meteor build command that happens in the development image is very memory heavy.

@geekgonecrazy
Copy link
Contributor

@insaneisnotfree i'm going to go ahead and close this issue. Please let me know if you need more help. Feel free to also jump into the demo chat. We tend to hang out there. :)

Scarvis added a commit to sibdigital/rgrt that referenced this issue Oct 8, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants