Giter Club home page Giter Club logo

Comments (19)

mpbod avatar mpbod commented on August 16, 2024

Digged into the commands file and seems like $VOLUME_PATH is empty when it tries to rename the container.

from dokku-pg-plugin.

heruputra avatar heruputra commented on August 16, 2024

+1

from dokku-pg-plugin.

Kloadut avatar Kloadut commented on August 16, 2024

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.

mpbod avatar mpbod commented on August 16, 2024

@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.

gchelfi avatar gchelfi commented on August 16, 2024

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.

mpbod avatar mpbod commented on August 16, 2024

@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.

gchelfi avatar gchelfi commented on August 16, 2024

@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.

mpbod avatar mpbod commented on August 16, 2024

@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.

mpbod avatar mpbod commented on August 16, 2024

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.

mbajur avatar mbajur commented on August 16, 2024

+1

from dokku-pg-plugin.

naps62 avatar naps62 commented on August 16, 2024

👍 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.

dyson avatar dyson commented on August 16, 2024

See #8 but it doesn't solve the bigger issue of getting this to work again.

from dokku-pg-plugin.

luebken avatar luebken commented on August 16, 2024

+1

from dokku-pg-plugin.

christiangenco avatar christiangenco commented on August 16, 2024

+1

from dokku-pg-plugin.

luebken avatar luebken commented on August 16, 2024

FYI: I've had success with @teemow s fork https://github.com/teemow/dokku-pg-plugin

from dokku-pg-plugin.

HectorMalot avatar HectorMalot commented on August 16, 2024

+1 (Same, DigitalOcean with fresh ubuntu 13.10 and docker install)

from dokku-pg-plugin.

nordringrayhide avatar nordringrayhide commented on August 16, 2024

+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.

Kloadut avatar Kloadut commented on August 16, 2024

I fixed that problem, see #8

from dokku-pg-plugin.

mpbod avatar mpbod commented on August 16, 2024

Thanks Alexis!

from dokku-pg-plugin.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.