Comments (9)
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.
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.
ls -lah /var/lib/dokku/plugins/available/postgres
from dokku-postgres.
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.
Run the following:
chown -R dokku:dokku /var/lib/dokku/plugins/available /var/lib/dokku/plugins/enabled
from dokku-postgres.
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.
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.
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.
Done - and this seems to be working now!
Thanks again guys.
from dokku-postgres.
Related Issues (20)
- Connecting to the db remotely HOT 10
- Database not created on Ubuntu 20.04 ARM64 HOT 7
- Docker hostname is invalid HOT 13
- Postgres is constantly in restarting state HOT 6
- The requested image's platform (linux/amd64) does not match the detected host platform (linux/arm64/v8) and no specific platform was requested HOT 4
- postgres:upgrade should not allow major version upgrade attempts HOT 1
- Uploads to Minio fail with 'connection closed' error HOT 6
- no JDBC url provided
- Read-only file system on postgres:create HOT 8
- Cannot export databases with hyphens HOT 7
- dokku postgres:export error HOT 6
- Table ownership all changed to "postgres" after restoring from dump HOT 2
- Question: How to encrypt traffic with SSL (self signed ok) HOT 1
- Cannot set data_directory with new postgres service HOT 3
- dokku-postgres fails to start on a fresh dokku installation using docker ( HOT 4
- pgvector for Vector Similarity Search HOT 2
- Bump to postgres 16 HOT 1
- Question: Best Practices for Configuring Health Checks on DB Backups HOT 3
- `destroy` and `unlink` disagree on whether or not a database is linked to an app HOT 2
- Postgresql configuration HOT 2
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-postgres.