Giter VIP home page Giter VIP logo

Comments (10)

hach-que avatar hach-que commented on June 25, 2024

sudo: unable to execute bin/phd: Permission denied

This definitely looks wrong. What version of Docker are you using?

from phabricator.

mwienk avatar mwienk commented on June 25, 2024

I was using 0.9.1. I just updated to 1.2.0, but the error is still there.

from phabricator.

hach-que avatar hach-que commented on June 25, 2024

What command are you using to run the image?

from phabricator.

mwienk avatar mwienk commented on June 25, 2024
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.

hach-que avatar hach-que commented on June 25, 2024

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.

mwienk avatar mwienk commented on June 25, 2024

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.

hach-que avatar hach-que commented on June 25, 2024

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.

mwienk avatar mwienk commented on June 25, 2024

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.

hach-que avatar hach-que commented on June 25, 2024

Did you end up resolving the issue?

from phabricator.

mwienk avatar mwienk commented on June 25, 2024

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)

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.