Comments (10)
sudo: unable to execute bin/phd: Permission denied
This definitely looks wrong. What version of Docker are you using?
from phabricator.
I was using 0.9.1. I just updated to 1.2.0, but the error is still there.
from phabricator.
What command are you using to run the image?
from phabricator.
docker run -d -t -p 22 -p 24 -p 843:843 \
-p 22280:22280 -p 80 -v /opt/phabricator/scripts:/config \
-v /opt/phabricator/repo:/srv/repo --name=phabricator \
--link mysql:linked_mysql hachque/phabricator
and in the scripts.pre file
./bin/config set mysql.user "root"
./bin/config set mysql.pass "$LINKED_MYSQL_ENV_MYSQL_ROOT_PASSWORD"
./bin/config set phabricator.base-uri "http://tracker.xxx.com/"
./bin/config set mysql.host "$LINKED_MYSQL_PORT_3306_TCP_ADDR"
./bin/config set mysql.port "$LINKED_MYSQL_PORT_3306_TCP_PORT"
from phabricator.
Can you SSH into the instance and determine if bin/phd is marked as executable? Can you also see if sudo -u git bash
works?
from phabricator.
bin/phd is a symlink to /srv/phabricator/phabricator/scripts/daemon/manage_daemons.php. That file seems alright:
4 -rwxr-xr-x 1 git wwwgrp-phabricator 615 Aug 30 14:50 manage_daemons.php
Bash doesn't look so fine:
55800aa94aa7:/srv/phabricator/phabricator/scripts> sudo -u git bash
bash: /etc/bash.bashrc: Permission denied
bash: /srv/phabricator/.bashrc: Permission denied
bash-4.2$
from phabricator.
Is AppArmor or SELinux running on the host?
I don't see how the got user could be denied access to /etc/bash.bashrc, or why bin/phd would not execute given it has the right permissions.
from phabricator.
The host has Linux xx.yy.zz 3.13.0-35-generic #62-Ubuntu SMP Fri Aug 15 01:58:42 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux
So no, nothing strange. But I will let you know when I got it fixed
from phabricator.
Did you end up resolving the issue?
from phabricator.
To be fair, no, but I got another docker image running pretty quickly, so I didn't put that much effort into it anymore. I'm sorry.
from phabricator.
Related Issues (20)
- /etc/init.simple leftovers in bake
- Docker images in new location not updated? HOT 5
- No git-http-backend HOT 4
- Container failed to restart when SSL is enabled HOT 1
- SSL is not working. Not able to run docker image. HOT 9
- cannot connet to root@mysql HOT 8
- No notifications server support HOT 1
- INFO exited: phd (exit status 0; not expected) HOT 2
- build fails due to openSUSE 42.1 repo being EOL and gone HOT 2
- Rebuild image on Docker hub HOT 1
- svn compare revisions not working HOT 1
- email address add error HOT 1
- Can't enable opcache support HOT 1
- Problem adding new users and setting up mailer HOT 3
- Question git build Phabricator by docker HOT 2
- Packages needs for SVN server open Cyrus SASL authentication HOT 1
- supervisord cannot start HOT 1
- Use PHP 7
- sshd not listening HOT 4
- port 62443 cannot connected HOT 3
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 phabricator.