Stf: OpenSTF docker-compose: Could not access http://localhost:7100/

Created on 15 Sep 2017  路  5Comments  路  Source: openstf/stf


Hello all,

I want run OpenSTF with docker-compose. My basic configuration is

docker-compose.zip

After docker-compose up, my log is:

WARNING: The Docker Engine you're using is running in swarm mode.

Compose does not use swarm mode to deploy services to multiple nodes in a swarm. All containers will be scheduled on the
current node.

To deploy your application across the swarm, use docker stack deploy.

Starting stfcompose_rethinkdb_1 ...
Starting stfcompose_rethinkdb_1 ... done
Attaching to stfcompose_rethinkdb_1
rethinkdb_1 | Recursively removing directory /data/rethinkdb_data/tmp
rethinkdb_1 | Initializing directory /data/rethinkdb_data
rethinkdb_1 | Running rethinkdb 2.3.5~0jessie (GCC 4.9.2)...
rethinkdb_1 | Running on Linux 4.9.41-moby x86_64
rethinkdb_1 | Loading data from directory /data/rethinkdb_data
rethinkdb_1 | Listening for intracluster connections on port 29015
rethinkdb_1 | Listening for client driver connections on port 28015
rethinkdb_1 | Listening for administrative HTTP connections on port 8080
rethinkdb_1 | Listening on cluster addresses: 127.0.0.1, 172.19.0.2
rethinkdb_1 | Listening on driver addresses: 127.0.0.1, 172.19.0.2
rethinkdb_1 | Listening on http addresses: 127.0.0.1, 172.19.0.2
rethinkdb_1 | Server ready, "872a2e12793f_a65" 36a968cd-0aa9-4fe9-a99b-c67ca697c8d0
rethinkdb_1 | A newer version of the RethinkDB server is available: 2.3.6. You can read the changelog at b.com/rethinkdb/rethinkdb/releases>.

I can access database from browser http://localhost:8080/, it is ok.

stf local by itself never work, if i change stf provider to stf local my log will be:

Creating stfcompose_adbd_1 ... done
Creating stfcompose_provider_1 ...
Creating stfcompose_provider_1 ... done
Attaching to stfcompose_rethinkdb_1, stfcompose_adbd_1, stfcompose_provider_1
rethinkdb_1 | Running rethinkdb 2.3.5~0jessie (GCC 4.9.2)...
rethinkdb_1 | Running on Linux 4.9.41-moby x86_64
adbd_1 | adb I 09-15 19:26:34 5 5 adb_auth_host.cpp:415] adb_auth_init...
rethinkdb_1 | Loading data from directory /data/rethinkdb_data
adbd_1 | adb I 09-15 19:26:34 5 5 adb_auth_host.cpp:173] read_key_file '/root/.android/adbkey'...
rethinkdb_1 | Listening for intracluster connections on port 29015
adbd_1 | adb I 09-15 19:26:34 5 5 adb_auth_host.cpp:390] adb_auth_inotify_init...
rethinkdb_1 | Listening for client driver connections on port 28015
rethinkdb_1 | Listening for administrative HTTP connections on port 8080
rethinkdb_1 | Listening on cluster addresses: 127.0.0.1, 172.19.0.2
rethinkdb_1 | Listening on driver addresses: 127.0.0.1, 172.19.0.2
rethinkdb_1 | Listening on http addresses: 127.0.0.1, 172.19.0.2
rethinkdb_1 | Server ready, "872a2e12793f_a65" 36a968cd-0aa9-4fe9-a99b-c67ca697c8d0
rethinkdb_1 | A newer version of the RethinkDB server is available: 2.3.6. You can read the changelog at https://github.com/rethinkdb/rethinkdb/releases.
provider_1 | INF/util:procutil 1 [] Forking "/app/lib/cli migrate"
provider_1 | INF/db 12 [
] Connecting to 127.0.0.1:28015
provider_1 | INF/db 12 [] Unable to connect to 127.0.0.1:28015
provider_1 | FTL/db 12 [
] No hosts left to try
provider_1 | FTL/util:lifecycle 12 [*] Shutting down due to fatal error
provider_1 |
provider_1 | /app/node_modules/bluebird/js/main/promise.js:680
provider_1 | throw e;
provider_1 | ^
provider_1 | ExitError: Exit code "1"
provider_1 | at ChildProcess. (/app/lib/util/procutil.js:49:23)
provider_1 | at emitTwo (events.js:106:13)
provider_1 | at ChildProcess.emit (events.js:191:7)
provider_1 | at Process.ChildProcess._handle.onexit (internal/child_process.js:215:12)

here is a also stf doctor log:

rethinkdb_1 | All client connections closed.
rethinkdb_1 | Shutting down storage engine... (This may take a while if you had a lot of unflushed data in the writeback cache.)
rethinkdb_1 | Storage engine shut down.
rethinkdb_1 | Running rethinkdb 2.3.5~0jessie (GCC 4.9.2)...
rethinkdb_1 | Running on Linux 4.9.41-moby x86_64
rethinkdb_1 | Loading data from directory /data/rethinkdb_data
rethinkdb_1 | Listening for intracluster connections on port 29015
rethinkdb_1 | Listening for client driver connections on port 28015
rethinkdb_1 | Listening for administrative HTTP connections on port 8080
rethinkdb_1 | Listening on cluster addresses: 127.0.0.1, 172.19.0.2
rethinkdb_1 | Listening on driver addresses: 127.0.0.1, 172.19.0.2
rethinkdb_1 | Listening on http addresses: 127.0.0.1, 172.19.0.2
rethinkdb_1 | Server ready, "872a2e12793f_a65" 36a968cd-0aa9-4fe9-a99b-c67ca697c8d0
rethinkdb_1 | A newer version of the RethinkDB server is available: 2.3.6. You can read the changelog at https://github.com/rethinkdb/rethinkdb/releases.
provider_1 | INF/cli:doctor 1 [] Using ZeroMQ 4.1.4
provider_1 | ERR/cli:doctor 1 [
] RethinkDB is not installed (rethinkdb is missing)
provider_1 | ERR/cli:doctor 1 [] ProtoBuf is not installed (protoc is missing)
provider_1 | ERR/cli:doctor 1 [
] ADB is not installed (adb is missing)
provider_1 | INF/cli:doctor 1 [] Using GraphicsMagick 1.3.23
stfcompose_provider_1 exited with code 0
provider_1 | INF/cli:doctor 1 [
] OS Arch: x64
provider_1 | INF/cli:doctor 1 [] OS Platform: linux
provider_1 | INF/cli:doctor 1 [
] OS Platform: 4.9.41-moby
provider_1 | INF/cli:doctor 1 [] Using Node 6.11.2
provider_1 | INF/cli:doctor 1 [
] Using ZeroMQ 4.1.4
provider_1 | ERR/cli:doctor 1 [] RethinkDB is not installed (rethinkdb is missing)
provider_1 | ERR/cli:doctor 1 [
] ProtoBuf is not installed (protoc is missing)
provider_1 | ERR/cli:doctor 1 [] ADB is not installed (adb is missing)
provider_1 | INF/cli:doctor 1 [
] Using GraphicsMagick 1.3.23
provider_1 | INF/cli:doctor 1 [] OS Arch: x64
provider_1 | INF/cli:doctor 1 [
] OS Platform: linux
provider_1 | INF/cli:doctor 1 [] OS Platform: 4.9.41-moby
provider_1 | INF/cli:doctor 1 [
] Using Node 6.11.2
provider_1 | INF/cli:doctor 1 [] Using ZeroMQ 4.1.4
provider_1 | INF/cli:doctor 1 [
] Using GraphicsMagick 1.3.23
provider_1 | ERR/cli:doctor 1 [] RethinkDB is not installed (rethinkdb is missing)
provider_1 | ERR/cli:doctor 1 [
] ProtoBuf is not installed (protoc is missing)
provider_1 | ERR/cli:doctor 1 [] ADB is not installed (adb is missing)
provider_1 | INF/cli:doctor 1 [
] OS Arch: x64
provider_1 | INF/cli:doctor 1 [] OS Platform: linux
provider_1 | INF/cli:doctor 1 [
] OS Platform: 4.9.41-moby
provider_1 | INF/cli:doctor 1 [] Using Node 6.11.2
provider_1 | INF/cli:doctor 1 [
] Using ZeroMQ 4.1.4
provider_1 | INF/cli:doctor 1 [] Using GraphicsMagick 1.3.23
provider_1 | ERR/cli:doctor 1 [
] RethinkDB is not installed (rethinkdb is missing)
provider_1 | ERR/cli:doctor 1 [] ProtoBuf is not installed (protoc is missing)
provider_1 | ERR/cli:doctor 1 [
] ADB is not installed (adb is missing)

So I do not understand issue. STF doctor show what

provider_1 | ERR/cli:doctor 1 [] RethinkDB is not installed (rethinkdb is missing)
provider_1 | ERR/cli:doctor 1 [
] ProtoBuf is not installed (protoc is missing)
provider_1 | ERR/cli:doctor 1 [*] ADB is not installed (adb is missing)

but I am using docker-images from sorccu/adb rethinkdb:2.3 openstf/stf .

And my localhost:7100 always down:(.

I tested in Windows 10 and also in Mac OS, but problem the same.
What I need to do? I want to have single docker-compose file and configure all needed services.

Thanks

Most helpful comment

I made a docker-compose to be used with STF running on a single host, take a look here:
https://github.com/nikosch86/stf-poc

All 5 comments

I made a docker-compose to be used with STF running on a single host, take a look here:
https://github.com/nikosch86/stf-poc

Hi @nikosch86 , Many thanks, I will have a look.

@nikosch86 nikosch86 I'm trying using your configuration file in windows10 under docker, things go well but adb can not find any devices although i can directly find the device by power shell command 'adb devices'.

@anribras I have the same problem, have you solved it?

@xiaoguo0426 @anribras If you want to tinker with windows and you get it to work, please do a little write up about it, so I can include that in the repo.
Myself I am not using windows, so I can't help with that unfortunately

Was this page helpful?
0 / 5 - 0 ratings

Related issues

gounthar picture gounthar  路  7Comments

luoxi001713 picture luoxi001713  路  5Comments

ThinkerT picture ThinkerT  路  4Comments

lgleasain picture lgleasain  路  7Comments

vovinio picture vovinio  路  5Comments