dokku-mongodb-plugin
dokku-mongodb-plugin copied to clipboard
Error parsing command line: unknown option
Hey! I'm trying to use the dokku mongodb plugin which seems usefull, everything seems to work but I can't create a new app db. When I'm doing this : root@matchu01:/home/dokku# dokku mongodb:create [appName]
It returns: Error parsing command line: unknown option -> try 'mongo --help' for more information Error parsing command line: unknown option -> try 'mongo --help' for more information
mongodb is already started, but I don't how to fix that issue. Any help?
Thank you and sorry if my english is not perfect.
ps: I m trying to deploy an angular fullstack app from yeoman generator on a digitalocean droplet, with mean and dokku installed.
Does the name of your app have any odd characters in it?
Can you check that the mongodb container is running with docker ps?
klikjs is the name of my application. I don't know if it's the same issue, but when I push to my dokku, I got this error: Error: failed to connect to [localhost:27017]
But mongodb is running on my server, on the default port which is this one.
For docker ps: I'm sorry but how do I know that info?
Now I set a new droplet, but now I even can't start mongodb :S
root@matchu01:/home/dokku# dokku mongodb:start 40434c11f288 root@matchu01:/home/dokku# dokku mongodb:create klikjs MongoDB container not started cannot continue. Start with dokku mongodb:start
A few questions to help debug:
1.) did you install anything on your droplet other than dokku and this plugin?
2.) can you run the following command on your droplet and paste the output here:
ps -ax |grep mongo
3.) can you run the following command on your droplet and paste the output here:
docker ps
Thanks for the answer:
-
I installed the dokku one click on digitalOcean, then I installed mongoDB following the instructions on the official website, and then your plugin. I tried in between to push my repo but with the error mentionned above. I followed this tutorial that is using your plugin : https://www.youtube.com/watch?v=xpD9AOcWlgc
-
ps -ax |grep mongo returns: root@matchu01:~# ps -ax |grep mongo 5089 ? Ssl 1:54 /usr/bin/mongod --dbpath=/tmp/mongo 7462 pts/0 S+ 0:00 grep --color=auto mongo
-
docker ps CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES 1cf6b10199da jeffutter/mongodb "/usr/bin/mongod --d About an hour ago Up About an hour 0.0.0.0:32770->27017/tcp happy_meitner
root@matchu01:~#
Once again, I'm sorry for my english and thanks for your support
Thatnks for the info.. one more command I need the output from:
docker logs 1cf6b10199da
root@matchu01:~# docker logs 1cf6b10199da 2015-07-28T12:42:57.835+0000 [initandlisten] MongoDB starting : pid=1 port=27017 dbpath=/tmp/mongo 64-bit host=1cf6b10199da 2015-07-28T12:42:57.835+0000 [initandlisten] db version v2.6.3 2015-07-28T12:42:57.835+0000 [initandlisten] git version: 255f67a66f9603c59380b2a389e386910bbb52cb 2015-07-28T12:42:57.836+0000 [initandlisten] build info: Linux build12.nj1.10gen.cc 2.6.32-431.3.1.el6.x86_64 #1 SMP Fri Jan 3 21:39:27 UTC 2014 x86_64 BOOST_LIB_VERSION=1_49 2015-07-28T12:42:57.836+0000 [initandlisten] allocator: tcmalloc 2015-07-28T12:42:57.836+0000 [initandlisten] options: { storage: { dbPath: "/tmp/mongo" } } 2015-07-28T12:42:57.843+0000 [initandlisten] journal dir=/tmp/mongo/journal 2015-07-28T12:42:57.843+0000 [initandlisten] recover : no journal files present, no recovery needed 2015-07-28T12:42:58.103+0000 [initandlisten] preallocateIsFaster=true 3.38 2015-07-28T12:42:58.233+0000 [FileAllocator] allocating new datafile /tmp/mongo/local.ns, filling with zeroes... 2015-07-28T12:42:58.233+0000 [FileAllocator] creating directory /tmp/mongo/_tmp 2015-07-28T12:42:58.235+0000 [FileAllocator] done allocating datafile /tmp/mongo/local.ns, size: 16MB, took 0 secs 2015-07-28T12:42:58.239+0000 [FileAllocator] allocating new datafile /tmp/mongo/local.0, filling with zeroes... 2015-07-28T12:42:58.242+0000 [FileAllocator] done allocating datafile /tmp/mongo/local.0, size: 64MB, took 0.002 secs 2015-07-28T12:42:58.247+0000 [initandlisten] build index on: local.startup_log properties: { v: 1, key: { _id: 1 }, name: "id", ns: "local.startup_log" } 2015-07-28T12:42:58.247+0000 [initandlisten] added index to empty collection 2015-07-28T12:42:58.248+0000 [initandlisten] waiting for connections on port 27017 2015-07-28T12:43:58.251+0000 [clientcursormon] mem (MB) res:35 virt:341 2015-07-28T12:43:58.252+0000 [clientcursormon] mapped (incl journal view):160 2015-07-28T12:43:58.257+0000 [clientcursormon] connections:0 2015-07-28T12:48:58.316+0000 [clientcursormon] mem (MB) res:35 virt:341 2015-07-28T12:48:58.317+0000 [clientcursormon] mapped (incl journal view):160 2015-07-28T12:48:58.317+0000 [clientcursormon] connections:0 2015-07-28T12:53:58.364+0000 [clientcursormon] mem (MB) res:35 virt:341 2015-07-28T12:53:58.365+0000 [clientcursormon] mapped (incl journal view):160 2015-07-28T12:53:58.365+0000 [clientcursormon] connections:0 2015-07-28T12:58:58.409+0000 [clientcursormon] mem (MB) res:35 virt:341 2015-07-28T12:58:58.409+0000 [clientcursormon] mapped (incl journal view):160 2015-07-28T12:58:58.409+0000 [clientcursormon] connections:0 2015-07-28T13:03:58.461+0000 [clientcursormon] mem (MB) res:35 virt:341 2015-07-28T13:03:58.461+0000 [clientcursormon] mapped (incl journal view):160 2015-07-28T13:03:58.461+0000 [clientcursormon] connections:0 2015-07-28T13:08:58.507+0000 [clientcursormon] mem (MB) res:35 virt:341 2015-07-28T13:08:58.507+0000 [clientcursormon] mapped (incl journal view):160 2015-07-28T13:08:58.508+0000 [clientcursormon] connections:0 2015-07-28T13:13:58.543+0000 [clientcursormon] mem (MB) res:35 virt:341 2015-07-28T13:13:58.543+0000 [clientcursormon] mapped (incl journal view):160 2015-07-28T13:13:58.543+0000 [clientcursormon] connections:0 2015-07-28T13:18:58.605+0000 [clientcursormon] mem (MB) res:35 virt:341 2015-07-28T13:18:58.605+0000 [clientcursormon] mapped (incl journal view):160 2015-07-28T13:18:58.605+0000 [clientcursormon] connections:0 2015-07-28T13:23:58.658+0000 [clientcursormon] mem (MB) res:35 virt:341 2015-07-28T13:23:58.658+0000 [clientcursormon] mapped (incl journal view):160 2015-07-28T13:23:58.659+0000 [clientcursormon] connections:0 2015-07-28T13:28:58.704+0000 [clientcursormon] mem (MB) res:35 virt:341 2015-07-28T13:28:58.704+0000 [clientcursormon] mapped (incl journal view):160 2015-07-28T13:28:58.705+0000 [clientcursormon] connections:0 2015-07-28T13:33:58.746+0000 [clientcursormon] mem (MB) res:35 virt:341 2015-07-28T13:33:58.747+0000 [clientcursormon] mapped (incl journal view):160 2015-07-28T13:33:58.747+0000 [clientcursormon] connections:0 2015-07-28T13:38:58.800+0000 [clientcursormon] mem (MB) res:35 virt:341 2015-07-28T13:38:58.800+0000 [clientcursormon] mapped (incl journal view):160 2015-07-28T13:38:58.800+0000 [clientcursormon] connections:0 2015-07-28T13:43:58.837+0000 [clientcursormon] mem (MB) res:35 virt:341 2015-07-28T13:43:58.837+0000 [clientcursormon] mapped (incl journal view):160 2015-07-28T13:43:58.837+0000 [clientcursormon] connections:0 2015-07-28T13:48:58.883+0000 [clientcursormon] mem (MB) res:35 virt:341 2015-07-28T13:48:58.884+0000 [clientcursormon] mapped (incl journal view):160 2015-07-28T13:48:58.884+0000 [clientcursormon] connections:0 2015-07-28T13:53:58.923+0000 [clientcursormon] mem (MB) res:35 virt:341 2015-07-28T13:53:58.924+0000 [clientcursormon] mapped (incl journal view):160 2015-07-28T13:53:58.926+0000 [clientcursormon] connections:0 2015-07-28T13:58:58.979+0000 [clientcursormon] mem (MB) res:35 virt:341 2015-07-28T13:58:58.979+0000 [clientcursormon] mapped (incl journal view):160 2015-07-28T13:58:58.979+0000 [clientcursormon] connections:0 2015-07-28T14:03:59.028+0000 [clientcursormon] mem (MB) res:35 virt:341 2015-07-28T14:03:59.029+0000 [clientcursormon] mapped (incl journal view):160 2015-07-28T14:03:59.029+0000 [clientcursormon] connections:0 2015-07-28T14:08:59.076+0000 [clientcursormon] mem (MB) res:35 virt:341 2015-07-28T14:08:59.076+0000 [clientcursormon] mapped (incl journal view):160 2015-07-28T14:08:59.077+0000 [clientcursormon] connections:0 2015-07-28T14:13:59.118+0000 [clientcursormon] mem (MB) res:35 virt:341 2015-07-28T14:13:59.118+0000 [clientcursormon] mapped (incl journal view):160 2015-07-28T14:13:59.118+0000 [clientcursormon] connections:0 2015-07-28T14:18:59.146+0000 [clientcursormon] mem (MB) res:35 virt:341 2015-07-28T14:18:59.146+0000 [clientcursormon] mapped (incl journal view):160 2015-07-28T14:18:59.146+0000 [clientcursormon] connections:0 2015-07-28T14:23:59.180+0000 [clientcursormon] mem (MB) res:35 virt:341 2015-07-28T14:23:59.180+0000 [clientcursormon] mapped (incl journal view):160 2015-07-28T14:23:59.181+0000 [clientcursormon] connections:0 2015-07-28T14:28:59.214+0000 [clientcursormon] mem (MB) res:35 virt:341 2015-07-28T14:28:59.214+0000 [clientcursormon] mapped (incl journal view):160 2015-07-28T14:28:59.215+0000 [clientcursormon] connections:0 2015-07-28T14:33:59.255+0000 [clientcursormon] mem (MB) res:35 virt:341 2015-07-28T14:33:59.255+0000 [clientcursormon] mapped (incl journal view):160 2015-07-28T14:33:59.255+0000 [clientcursormon] connections:0 2015-07-28T14:38:59.292+0000 [clientcursormon] mem (MB) res:35 virt:341 2015-07-28T14:38:59.293+0000 [clientcursormon] mapped (incl journal view):160 2015-07-28T14:38:59.293+0000 [clientcursormon] connections:0 2015-07-28T14:43:59.346+0000 [clientcursormon] mem (MB) res:35 virt:341 2015-07-28T14:43:59.346+0000 [clientcursormon] mapped (incl journal view):160 2015-07-28T14:43:59.346+0000 [clientcursormon] connections:0
I'm trying to fix it, but no positive results. Do you have any Idea of what it could be? Does the above output helped you? Best regards and thank you