Docker create error - "gbridge_web_1 exited with code 1"

Hi,

I have exactly the same problem what is it.

My own (apache) webserver, mqtt broker, mysql database works fine on my RPi 3B+, but I can’t start the docker.
I get only the following errors:

Starting gbridge_cache_1 … done
Starting gbridge_redis-worker_1 … done
Starting gbridge_web_1 … done
Attaching to gbridge_cache_1, gbridge_web_1, gbridge_redis-worker_1
cache_1 | 1:C 15 Mar 11:10:06.940 # oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo
cache_1 | 1:C 15 Mar 11:10:06.975 # Redis version=4.0.13, bits=32, commit=00000000, modified=0, pid=1, just started
cache_1 | 1:C 15 Mar 11:10:06.975 # Warning: no config file specified, using the default config. In order to specify a config file use redis-server /path/to/redis.conf
cache_1 | 1:M 15 Mar 11:10:06.994 # Warning: 32 bit instance detected but no memory limit set. Setting 3 GB maxmemory limit with ‘noeviction’ policy now.
web_1 | standard_init_linux.go:207: exec user process caused “exec format error”
cache_1 | 1:M 15 Mar 11:10:06.996 * Running mode=standalone, port=6379.
cache_1 | 1:M 15 Mar 11:10:06.996 # WARNING: The TCP backlog setting of 511 cannot be enforced because /proc/sys/net/core/somaxconn is set to the lower value of 128.
cache_1 | 1:M 15 Mar 11:10:06.996 # Server initialized
redis-worker_1 | standard_init_linux.go:207: exec user process caused “exec format error”
cache_1 | 1:M 15 Mar 11:10:06.999 * DB loaded from disk: 0.002 seconds
cache_1 | 1:M 15 Mar 11:10:06.999 * Ready to accept connections
gbridge_redis-worker_1 exited with code 1
gbridge_web_1 exited with code 1
gbridge_redis-worker_1 exited with code 1
gbridge_web_1 exited with code 1
gbridge_redis-worker_1 exited with code 1
gbridge_redis-worker_1 exited with code 1
gbridge_web_1 exited with code 1
gbridge_redis-worker_1 exited with code 1
Exception in thread Thread-10:
Traceback (most recent call last):

  • File “/usr/lib/python2.7/threading.py”, line 801, in __bootstrap_inner*
  • self.run()*
  • File “/usr/lib/python2.7/threading.py”, line 754, in run*
  • self.__target(*self.__args, *self.__kwargs)
  • File “/usr/local/lib/python2.7/dist-packages/compose/cli/log_printer.py”, line 233, in watch_events*
  • event[‘container’].attach_log_stream()*
  • File “/usr/local/lib/python2.7/dist-packages/compose/container.py”, line 215, in attach_log_stream*
  • self.log_stream = self.attach(stdout=True, stderr=True, stream=True)*
  • File “/usr/local/lib/python2.7/dist-packages/compose/container.py”, line 307, in attach*
  • return self.client.attach(self.id, *args, *kwargs)
  • File “/usr/local/lib/python2.7/dist-packages/docker/utils/decorators.py”, line 19, in wrapped*
  • return f(self, resource_id, *args, *kwargs)
  • File “/usr/local/lib/python2.7/dist-packages/docker/api/container.py”, line 61, in attach*
  • response, stream, self._check_is_tty(container), demux=demux)*
  • File “/usr/local/lib/python2.7/dist-packages/docker/api/client.py”, line 395, in _read_from_socket*
  • socket = self._get_raw_response_socket(response)*
  • File “/usr/local/lib/python2.7/dist-packages/docker/api/client.py”, line 306, in _get_raw_response_socket*
  • self._raise_for_status(response)*
  • File “/usr/local/lib/python2.7/dist-packages/docker/api/client.py”, line 258, in _raise_for_status*
  • raise create_api_error_from_http_exception(e)*
  • File “/usr/local/lib/python2.7/dist-packages/docker/errors.py”, line 31, in create_api_error_from_http_exception*
  • raise cls(e, response=response, explanation=explanation)*
    APIError: 409 Client Error: Conflict (“container 260dbc73c85103e93bc87de184a933003b52482e3932d98d182f0f54c94419f2 is restarting, wait until the container is running”)

gbridge_web_1 exited with code 1

Can someone help me?

Regerds,
Bence

I ran into pretty much every issue you can think of before I was able to make gBridge work.

Take a look at this page. It’s the one that helped me the most. Start by following the instructions on how to clean everything if things don’t work, and then copy his docker-compose.yaml, fill it with your own params and run it.