Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Docker appliance fails to start #271

Open
lparsons opened this issue Jul 13, 2015 · 4 comments
Open

Docker appliance fails to start #271

lparsons opened this issue Jul 13, 2015 · 4 comments

Comments

@lparsons
Copy link
Contributor

Running boot2docker and docker v1.7.0 I get the following error:

$ docker run -p 8010:80 -p 9009:9009 -v `pwd`:/opt/galaxy/tools -i -t planemo/interactive
umount: /var/lib/docker: must be superuser to umount
Removing user `ubuntu' ...
Warning: group `ubuntu' has no more members.
Done.
groupadd: GID '50' already exists
useradd: group 'ubuntu' does not exist
chown: cannot access '/tmp/slurm': No such file or directory
tmpfs on /proc/kcore type tmpfs (rw,nosuid,mode=755)
Disable Galaxy Interactive Environments. Start with --privileged to enable IE's.
/usr/lib/python2.7/dist-packages/supervisor/options.py:295: UserWarning: Supervisord is running as root and it is searching for its configuration file in default locations (including its current working directory); you probably want to specify a "-c" argument specifying an absolute path to a configuration file for improved security.
  'Supervisord is running as root and it is searching '
Error: Invalid user name ubuntu
For help, use /usr/bin/supervisord -h
Starting nodejs
unix:///var/run/supervisor.sock no such file
No passwd entry for user 'ubuntu'
@lparsons
Copy link
Contributor Author

Possibly related? bgruening/docker-galaxy-stable#68

@lparsons
Copy link
Contributor Author

Note: This works fine when I do not mount a directory: docker run -p 8010:80 -p 9009:9009 -i -t planemo/interactive

jmchilton added a commit to galaxyproject/ansible-galaxy-extras that referenced this issue Jul 30, 2015
@eschen42
Copy link

eschen42 commented May 4, 2017

Today, I experienced very similar behavior when running Ubuntu 16.04 LTS, i.e.:

# docker run -p 8010:80 -p 9009:9009 -v `pwd`:/opt/galaxy/tools -i -t planemo/interactive
localhost | SUCCESS => {
    "changed": true, 
    "dest": "/etc/supervisor/conf.d/galaxy.conf", 
    "gid": 0, 
    "group": "root", 
    "mode": "0644", 
    "msg": "OK", 
    "owner": "root", 
    "size": 3308, 
    "state": "file", 
    "uid": 0
}
umount: /var/lib/docker: must be superuser to unmount
Removing user `ubuntu' ...
Warning: group `ubuntu' has no more members.
Done.
groupadd: GID '0' already exists
useradd: group 'ubuntu' does not exist
passwd: unrecognized option '--stdin'
Usage: passwd [options] [LOGIN]

Options:
  -a, --all                     report password status on all accounts
  -d, --delete                  delete the password for the named account
  -e, --expire                  force expire the password for the named account
  -h, --help                    display this help message and exit
  -k, --keep-tokens             change password only if expired
  -i, --inactive INACTIVE       set password inactive after expiration
                                to INACTIVE
  -l, --lock                    lock the password of the named account
  -n, --mindays MIN_DAYS        set minimum number of days before password
                                change to MIN_DAYS
  -q, --quiet                   quiet mode
  -r, --repository REPOSITORY   change password in REPOSITORY repository
  -R, --root CHROOT_DIR         directory to chroot into
  -S, --status                  report password status on the named account
  -u, --unlock                  unlock the password of the named account
  -w, --warndays WARN_DAYS      set expiration warning days to WARN_DAYS
  -x, --maxdays MAX_DAYS        set maximum number of days before password
                                change to MAX_DAYS

chown: cannot access '/tmp/slurm': No such file or directory
tmpfs on /proc/kcore type tmpfs (rw,nosuid,mode=755)
Disable Galaxy Interactive Environments. Start with --privileged to enable IE's.
Error: Invalid user name ubuntu in section 'program:handler' (file: '/etc/supervisor/conf.d/galaxy.conf')
For help, use /usr/bin/supervisord -h
Starting nodejs
unix:///var/run/supervisor.sock no such file
Starting slurmctld
unix:///var/run/supervisor.sock no such file
Starting slurmd
unix:///var/run/supervisor.sock no such file
unix:///var/run/supervisor.sock no such file
tail: cannot open '/home/ubuntu/*.log' for reading: No such file or directory
tail: no files remaining
No passwd entry for user 'ubuntu'

As for @lparsons, this does not occur to me when I do not mount a directory:
docker run -p 8010:80 -p 9009:9009 -i -t planemo/interactive

@eschen42
Copy link

eschen42 commented May 4, 2017

@lparsons @jmchilton I think that I just found a workaround. Start the container with

$ sudo docker run --rm -p 8010:80 -p 9009:9009 -v `pwd`:/opt/galaxy/tools -t -i planemo/interactive bash -c "export TERM=xterm; /bin/bash"

and then, within the interactive session, run the command

root@442926bf8101:/tmp/ansible# /usr/bin/python /usr/bin/supervisord -c /etc/supervisor/supervisord.conf

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants