Giter Club home page Giter Club logo

Comments (9)

joshmanders avatar joshmanders commented on July 30, 2024

You should run it as a user with sudo, dokku user doesn't have sudo. Make sure the /var/lib/dokku is owned by dokku.

from dokku-postgres.

J77J avatar J77J commented on July 30, 2024

Ok - removed and reinstalled using sudo user, seemed to go fine.

/var/lib/dokku was root:root, chowned to dokku:dokku

[root@server /]# dokku postgres:create blahblah
2017/08/22 15:07:49 open /var/lib/dokku/plugins/available/postgres/plugin.toml: permission denied
 !     `postgres:create blahblah` is not a dokku command.
 !     See `dokku help` for a list of available commands.

any idea what I'm doing wrong?

incidentally /var/lib/dokku/plugins/available/postgres is root:root as is everything contained within it. could this be the problem? I wouldn't have thought so as this is how it was set up by the install with no input from me, but..

from dokku-postgres.

josegonzalez avatar josegonzalez commented on July 30, 2024

ls -lah /var/lib/dokku/plugins/available/postgres

from dokku-postgres.

J77J avatar J77J commented on July 30, 2024

Hi,

ok output from: ls -lah /var/lib/dokku/plugins/available/postgres

drwxr-x--- 6 root  root  4.0K Aug 22 15:03 .
drwxr-xr-x 3 dokku dokku 4.0K Aug 22 15:03 ..
-rwxr-x--- 1 root  root  6.6K Aug 22 15:03 commands
-rwxr-x--- 1 root  root   17K Aug 22 15:03 common-functions
-rw-r----- 1 root  root   841 Aug 22 15:03 config
-rw-r----- 1 root  root   228 Aug 22 15:03 .editorconfig
-rwxr-x--- 1 root  root  5.3K Aug 22 15:03 functions
drwxr-x--- 8 root  root  4.0K Aug 22 15:03 .git
-rw-r----- 1 root  root    52 Aug 22 15:03 .gitignore
-rwxr-x--- 1 root  root  1.4K Aug 22 15:03 install
-rw-r----- 1 root  root  1.1K Aug 22 15:03 LICENSE.txt
-rw-r----- 1 root  root  1.4K Aug 22 15:03 Makefile
-rw-r----- 1 root  root    89 Aug 22 15:03 plugin.toml
-rwxr-x--- 1 root  root   473 Aug 22 15:03 pre-delete
-rw-r----- 1 root  root  9.2K Aug 22 15:03 README.md
drwxr-x--- 2 root  root  4.0K Aug 22 15:03 scripts
drwxr-x--- 2 root  root  4.0K Aug 22 15:03 subcommands
drwxr-x--- 3 root  root  4.0K Aug 22 15:03 tests
-rw-r----- 1 root  root   218 Aug 22 15:03 .travis.yml
lrwxrwxrwx 1 root  root     7 Aug 22 15:03 update -> install
-rw-r----- 1 root  root  1.1K Aug 22 15:03 Vagrantfile

from dokku-postgres.

josegonzalez avatar josegonzalez commented on July 30, 2024

Run the following:

chown -R dokku:dokku  /var/lib/dokku/plugins/available /var/lib/dokku/plugins/enabled

from dokku-postgres.

J77J avatar J77J commented on July 30, 2024

OK - done,

still not working - but we are moving forward!

[root@server /]# dokku postgres:create blahblah
mkdir: cannot create directory ‘/var/lib/dokku/services’: Permission denied
Unable to create service directory

ps - thanks for the help guys - I appreciate it.

from dokku-postgres.

J77J avatar J77J commented on July 30, 2024

contents of var/lib/dokku

drwxr-xr-x 4 dokku dokku 4096 Jul 28 16:02 core-plugins
drwxr-xr-x 4 dokku dokku 4096 Jul 28 16:02 data
-rw-r--r-- 1 root  root    41 Jul  9 21:13 GIT_REV
drwxr-xr-x 4 dokku dokku 4096 Jul 28 16:02 plugins
drwxr-x--- 3 root  root  4096 Aug 22 15:04 services
-rw-r--r-- 1 root  root     7 Jul  9 21:13 STABLE_VERSION
-rw-r--r-- 1 root  root     7 Jul  9 21:13 VERSION

I'm assuming that services permissions are wrong? should that be dokku dokku also? and drwxr-xr-x as well? should all of these be dokku dokku? or are the rest fine as root?

from dokku-postgres.

josegonzalez avatar josegonzalez commented on July 30, 2024

Seems like you somehow borked your permissions

chown -R dokku:dokku /var/lib/dokku/GIT_REV
chown -R dokku:dokku /var/lib/dokku/STABLE_VERSION
chown -R dokku:dokku /var/lib/dokku/VERSION
chown -R dokku:dokku /var/lib/dokku/core-plugins
chown -R dokku:dokku /var/lib/dokku/services
chown -R dokku:dokku /var/lib/dokku/plugins

from dokku-postgres.

J77J avatar J77J commented on July 30, 2024

Done - and this seems to be working now!

Thanks again guys.

from dokku-postgres.

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.