KnowageLabs / Knowage-Server-Docker

Docker Image packaging for Knowage Server https://www.knowage-suite.com
GNU Affero General Public License v3.0
66 stars 77 forks source link

Use docker-compose to deploy, knowagepython container Exited #53

Open chendelin1982 opened 2 years ago

chendelin1982 commented 2 years ago

Hi, I run https://github.com/KnowageLabs/Knowage-Server-Docker/blob/master/Knowage-Server-Docker/docker-compose.yml to deploy Knowage, not modify any item.

Knowage is running ok ,but knowagepython container Exited

CONTAINER ID   IMAGE                                              COMMAND                  CREATED          STATUS                    PORTS                                                 NAMES
9cd08e5e8be4   knowagelabs/knowage-server-docker:8.1.0-SNAPSHOT   "./entrypoint.sh ./a…"   11 minutes ago   Up 11 minutes (healthy)   8009/tcp, 0.0.0.0:8080->8080/tcp, :::8080->8080/tcp   knowage-server-docker-knowage-1
a5e6ad8022eb   knowagelabs/knowage-r-docker:8.1.0-SNAPSHOT        "./entrypoint.sh r k…"   11 minutes ago   Up 11 minutes (healthy)   5001/tcp                                              knowage-server-docker-knowager-1
cf83b84c4d48   mariadb:10.3                                       "docker-entrypoint.s…"   11 minutes ago   Up 11 minutes             3306/tcp                                              knowage-server-docker-knowagedb-1
3ec87031b7ec   mariadb:10.3                                       "docker-entrypoint.s…"   11 minutes ago   Up 11 minutes             3306/tcp                                              knowage-server-docker-knowagecache-1
43a4ad713297   hazelcast/hazelcast:3.6.5                          "/bin/sh -c ./server…"   11 minutes ago   Up 11 minutes             5701/tcp                                              knowage-server-docker-hazelcast-1

logs of knowagepython container

ImportError: cannot import name 'soft_unicode' from 'markupsafe' (/usr/local/lib/python3.7/site-packages/markupsafe/__init__.py)
[2022-05-25 07:17:08 +0000] [13] [INFO] Worker exiting (pid: 13)
Traceback (most recent call last):
  File "/usr/local/lib/python3.7/site-packages/gunicorn/arbiter.py", line 209, in run
    self.sleep()
  File "/usr/local/lib/python3.7/site-packages/gunicorn/arbiter.py", line 357, in sleep
    ready = select.select([self.PIPE[0]], [], [], 1.0)
  File "/usr/local/lib/python3.7/site-packages/gunicorn/arbiter.py", line 242, in handle_chld
    self.reap_workers()
  File "/usr/local/lib/python3.7/site-packages/gunicorn/arbiter.py", line 525, in reap_workers
    raise HaltServer(reason, self.WORKER_BOOT_ERROR)
gunicorn.errors.HaltServer: <HaltServer 'Worker failed to boot.' 3>

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/bin/gunicorn", line 8, in <module>
    sys.exit(run())
  File "/usr/local/lib/python3.7/site-packages/gunicorn/app/wsgiapp.py", line 58, in run
    WSGIApplication("%(prog)s [OPTIONS] [APP_MODULE]").run()
  File "/usr/local/lib/python3.7/site-packages/gunicorn/app/base.py", line 228, in run
    super().run()
  File "/usr/local/lib/python3.7/site-packages/gunicorn/app/base.py", line 72, in run
    Arbiter(self).run()
  File "/usr/local/lib/python3.7/site-packages/gunicorn/arbiter.py", line 229, in run
    self.halt(reason=inst.reason, exit_status=inst.exit_status)
  File "/usr/local/lib/python3.7/site-packages/gunicorn/arbiter.py", line 342, in halt
    self.stop()
  File "/usr/local/lib/python3.7/site-packages/gunicorn/arbiter.py", line 393, in stop
    time.sleep(0.1)
  File "/usr/local/lib/python3.7/site-packages/gunicorn/arbiter.py", line 242, in handle_chld
    self.reap_workers()
  File "/usr/local/lib/python3.7/site-packages/gunicorn/arbiter.py", line 525, in reap_workers
    raise HaltServer(reason, self.WORKER_BOOT_ERROR)
gunicorn.errors.HaltServer: <HaltServer 'Worker failed to boot.' 3>
kerny3d commented 2 years ago

Hi @chendelin1982,

I confirm the issue: we have some problem with the dependencies in our requirements.txt; I think we need to specify some secondary level dependencies.