adbd.service cannot start

173 views
Skip to first unread message

Alfred Xia

unread,
Sep 5, 2016, 4:36:19 AM9/5/16
to OpenSTF
Hi all,

I pulled below docker images on my Ubuntu server 16.04:
test@ubuntu:/etc/systemd/system$ docker images
REPOSITORY           TAG                 IMAGE ID            CREATED             SIZE
openstf/stf          latest              a5e85e901417        2 days ago          751.8 MB
rethinkdb            latest              e30940c8232c        5 days ago          183.9 MB
nginx                latest              4efb2fcdb1ab        12 days ago         183.4 MB
sorccu/adb           latest              d6e99adff7e2        5 weeks ago         25.88 MB
openstf/ambassador   latest              b1f0eb8297cf        12 months ago       6.46 MB

Then I tried to start each .service to make sure it can be started successfully.

I started nginx.service successfully by "sudo systemctl start nginx.service", and I saw it's running by cmd "docker ps -a":
test@ubuntu:/etc/systemd/system$ docker ps -a
CONTAINER ID        IMAGE               COMMAND             CREATED             STATUS              PORTS               NAMES
1b7abcbf9268        nginx:latest        "nginx"             19 minutes ago      Up 19 minutes                           nginx

But when I tried to start adbd.service, it showed in "docker ps -a" for a few seconds, then disappeared.  So does it mean that adbd.service FAILED to start?  How to resolve this issue?  Please help!!
test@ubuntu:/etc/systemd/system$ sudo systemctl start adbd.service
test@ubuntu:/etc/systemd/system$ 
test@ubuntu:/etc/systemd/system$ docker ps -a
CONTAINER ID        IMAGE               COMMAND                  CREATED                  STATUS                  PORTS               NAMES
c493d061a1d0        sorccu/adb:latest   "/sbin/tini -- adb -a"   Less than a second ago   Up Less than a second                       adbd
1b7abcbf9268        nginx:latest        "nginx"                  22 minutes ago           Up 22 minutes                               nginx
test@ubuntu:/etc/systemd/system$ 
test@ubuntu:/etc/systemd/system$ docker ps -a
CONTAINER ID        IMAGE               COMMAND             CREATED             STATUS              PORTS               NAMES
1b7abcbf9268        nginx:latest        "nginx"             22 minutes ago      Up 22 minutes                           nginx


Thanks,
Alfred

Alfred Xia

unread,
Sep 5, 2016, 4:39:10 AM9/5/16
to OpenSTF
BTW, I used the exactly same unit file for adbd.service as in deployment.md.

Alfred Xia

unread,
Sep 5, 2016, 5:25:00 AM9/5/16
to OpenSTF
BTW, when I checked by showing process, I saw following:
test@ubuntu:/etc/systemd/system$ ps -ef | grep "docker " | grep -v "grep"
root      3327     1  0 16:12 ?        00:00:00 /usr/bin/docker run --rm --name nginx --net host -v /srv/nginx/nginx.conf:/etc/nginx/nginx.conf:ro nginx:latest nginx
root      6358     1  2 17:22 ?        00:00:00 /usr/bin/docker pull sorccu/adb:latest

There is always a docker pull for adb image, why is that?  Is it the root cause that adbd.service cannot be started?

Alfred Xia

unread,
Sep 5, 2016, 7:39:41 AM9/5/16
to OpenSTF
I also raised my question in github: https://github.com/openstf/stf/issues/415.
Would you please help take a look?  I am totally blocked now :(

Alfred Xia

unread,
Sep 8, 2016, 3:10:52 AM9/8/16
to OpenSTF
END this thread.
Reply all
Reply to author
Forward
0 new messages