Comments (19)
Digged into the commands file and seems like $VOLUME_PATH is empty when it tries to rename the container.
from dokku-pg-plugin.
+1
from dokku-pg-plugin.
Sadly I don't have time nor dokku instance to test it right now. It may be caused by a recent pull-request or by a dokku update.
from dokku-pg-plugin.
@Kloadut, that's ok. I'll look into it when I have more time.
Some more information, I was using Digital Ocean with the Ubuntu 13.04 x64 Image doing a fresh install of Dokku. I'm guessing it's being caused by $VOLUME_PATH not being set by this line: https://github.com/Kloadut/dokku-pg-plugin/blob/master/commands#L57 thus getting the missing destination file operand.
I'm currently using Digital Ocean and recommend others (using Digital Ocean) to use the 1-Click Installer (instructions here: http://goo.gl/MfMrGR), this plugin works fine with the 1-Click Installer.
from dokku-pg-plugin.
We have been trying to install a postgresql database with dokku-pg-plugin for two days and we have encountered the same issue. We looked a bit into the code and found the same line. I don't know if it helps but it seems like "/var/lib/docker/volumes" is no longer presented in the output of the "docker inspect" command. The VOLUME_PATH hence is empty.
As we don't know anything about docker we have naively tried to work with a downgraded version (0.6.7) with apt-get but it lead to another error "PostgreSQL image not found... Did you run 'dokku plugins-install' ?"
If anyone has knowledge about docker, his/her help would be greatly appreciated.
from dokku-pg-plugin.
@gchelfi, yes I ran 'dokku plugins-install' after cloning this repo into /var/lib/dokku/plugins.
@gchelfi can you let us know a bit about your environment setup?
from dokku-pg-plugin.
@mpbod We are working on Ubuntu 13.04 and have installed stable dokku (0.2.0) from their github repo. We have installed Postgresql 9.1. dokku-pg-plugin is the only plugin we have installed.
from dokku-pg-plugin.
@gchelfi, I'm not sure if this is will help but here's the environment Digital Ocean provides with their 1-Click Installer in which dokku-pg-plugin works:
Ubuntu 13.04 x64
Docker version 0.6.6, build 6d42040
dokku v0.2.0-RC3
I just followed the instructions in this repo to install it.
Hope it helps.
BTW. You won't need to install Postgresql, this plugin will install in the docker containers.
from dokku-pg-plugin.
From what I see the result of docker inspect from a clean install of dokku is different from older version, 0.6.6 in my case, making parsing of VOLUME_PATH not possible (docker inspect returns blank), Ref: https://github.com/Kloadut/dokku-pg-plugin/blob/master/commands#L57
from dokku-pg-plugin.
+1
from dokku-pg-plugin.
👍 on this
here's the output of docker inspect $ID
for a small test case i did with vagrant
[{
"ID": "7ae26ec67bf3485b0fe7c4ac073130c2d3f5aca7e27c065aecb21eb22435e336",
"Created": "2013-12-03T16:19:34.056867151Z",
"Path": "/usr/bin/start_pgsql.sh",
"Args": [
"YRSbNwH15BM14b0y"
],
"Config": {
"Hostname": "7ae26ec67bf3",
"Domainname": "",
"User": "",
"Memory": 0,
"MemorySwap": 0,
"CpuShares": 0,
"AttachStdin": false,
"AttachStdout": false,
"AttachStderr": false,
"PortSpecs": null,
"ExposedPorts": {
"5432/tcp": {}
},
"Tty": false,
"OpenStdin": false,
"StdinOnce": false,
"Env": null,
"Cmd": [
"/usr/bin/start_pgsql.sh",
"YRSbNwH15BM14b0y"
],
"Dns": null,
"Image": "postgresql/gb-provisioning",
"Volumes": {
"/opt/postgresql": {}
},
"VolumesFrom": "",
"WorkingDir": "",
"Entrypoint": null,
"NetworkDisabled": false
},
"State": {
"Running": true,
"Pid": 20322,
"ExitCode": 0,
"StartedAt": "2013-12-03T16:19:34.076326758Z",
"FinishedAt": "0001-01-01T00:00:00Z",
"Ghost": false
},
"Image": "a86a034f82949855d248833505015226ceeee64001a169af514d5fb40e20d427",
"NetworkSettings": {
"IPAddress": "172.17.0.31",
"IPPrefixLen": 16,
"Gateway": "172.17.42.1",
"Bridge": "docker0",
"PortMapping": null,
"Ports": {
"5432/tcp": [
{
"HostIp": "0.0.0.0",
"HostPort": "49161"
}
]
}
},
"SysInitPath": "/usr/bin/docker",
"ResolvConfPath": "/etc/resolv.conf",
"HostnamePath": "/var/lib/docker/containers/7ae26ec67bf3485b0fe7c4ac073130c2d3f5aca7e27c065aecb21eb22435e336/hostname",
"HostsPath": "/var/lib/docker/containers/7ae26ec67bf3485b0fe7c4ac073130c2d3f5aca7e27c065aecb21eb22435e336/hosts",
"Name": "/hungry_turing",
"Driver": "aufs",
"Volumes": {
"/opt/postgresql": "/var/lib/docker/vfs/dir/2c62cd67c6789fdab01d5f9cfa2a6af2c8e28a07d868fe5a2ab0e1b5d82cdd86"
},
"VolumesRW": {
"/opt/postgresql": true
}
}]
the plugin tries to grep this output for /var/lib/docker/volumes
which as you can see doesn't exist.
I'm not sure if this is just a matter of changing how the value for VOLUME_PATH is looked up, or if it's some larger issue, but i don't think i have enough experience with these tools to fix it myself right now
from dokku-pg-plugin.
See #8 but it doesn't solve the bigger issue of getting this to work again.
from dokku-pg-plugin.
+1
from dokku-pg-plugin.
+1
from dokku-pg-plugin.
FYI: I've had success with @teemow s fork https://github.com/teemow/dokku-pg-plugin
from dokku-pg-plugin.
+1 (Same, DigitalOcean with fresh ubuntu 13.10 and docker install)
from dokku-pg-plugin.
+1 to @luebken : I've had success with @teemow s fork https://github.com/teemow/dokku-pg-plugin
but postgresql:delete foo gives to me
Error: Conflict, cannot delete postgresql/foo because the container a1c38a62d4e387466dfc7fafcaa2596633247ad962f6ebd1c5f9d33eaff9761f is using it
Error: failed to remove one or more images
from dokku-pg-plugin.
I fixed that problem, see #8
from dokku-pg-plugin.
Thanks Alexis!
from dokku-pg-plugin.
Related Issues (20)
- Invalid port number in postgresql:link if app and db names is different. HOT 1
- Unable to install HOT 2
- Assumption that docker0 has IP 172.17.42.1
- Cannot start container : port has already been allocated HOT 1
- Rails unable to access through credential... HOT 1
- Rails database.yml file not parsing correctly HOT 7
- Multiple Databases, crossover? HOT 1
- dump command available when postgresql-client not installed HOT 1
- dokku-pg-plugin does not use DOKKU_NOT_IMPLEMENTED_EXIT, leads to misbehaviour with unknown commands
- Unicode
- Multiple Apps, same database HOT 1
- Host and Port information are missing HOT 4
- seems not working with docker 1.7 HOT 15
- DB automatic unlink HOT 1
- postgresql:dump could not change directory to "/root"
- How can I upgrade to postgres 9.4? HOT 5
- Connection timed out HOT 1
- 'psql' not found when executing dokku postgresql:console <db> HOT 2
- "Your docker version is too old, please update it" HOT 5
- Branch josegonzalez/dokku-pg-plugin out of date
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dokku-pg-plugin.