Closed dagobertdebug closed 2 years ago
As of time of writing no V1.4.0 docker-version is released, therefore I do not know if the procedure I have applied is correct and should work. Any help to get me a working openCVE again is much appreciated! Thanks!
Has been resolved by following this procedure https://github.com/opencve/opencve-docker/issues/32
Expected Behavior
Working environment after upgrade to V1.4.0
Actual Behavior
Exception and no reports on vulnerabilities
docker logs celery_worker
warnings.warn(RuntimeWarning(ROOT_DISCOURAGED.format( [2022-11-06 14:57:22,619: ERROR/ForkPoolWorker-1] Task CVE_UPDATES[445a6120-06c2-43e0-b289-b0c1184101fd] raised unexpected: ConnectionError('Error 111 connecting to 127.0.0.1:6379. Connection refused.') Traceback (most recent call last): File "/app/venv/lib/python3.8/site-packages/redis/connection.py", line 539, in connect sock = self._connect() File "/app/venv/lib/python3.8/site-packages/redis/connection.py", line 596, in _connect raise err File "/app/venv/lib/python3.8/site-packages/redis/connection.py", line 584, in _connect sock.connect(socket_address) ConnectionRefusedError: [Errno 111] Connection refused
During handling of the above exception, another exception occurred:
Traceback (most recent call last): File "/app/venv/lib/python3.8/site-packages/celery/app/trace.py", line 385, in trace_task R = retval = fun(*args, *kwargs) File "/app/venv/lib/python3.8/site-packages/celery/app/trace.py", line 648, in __protected_call__ return self.run(args, kwargs) File "/app/venv/lib/python3.8/site-packages/opencve/tasks/init.py", line 47, in cve_updates acquired = Lock(r, "cve_updates_lock", timeout=3600 12, blocking=False).acquire() File "/app/venv/lib/python3.8/site-packages/redis/lock.py", line 182, in acquire if self.do_acquire(token): File "/app/venv/lib/python3.8/site-packages/redis/lock.py", line 197, in do_acquire if self.redis.set(self.name, token, nx=True, px=timeout): File "/app/venv/lib/python3.8/site-packages/redis/client.py", line 1519, in set return self.execute_command('SET', pieces) File "/app/venv/lib/python3.8/site-packages/redis/client.py", line 836, in execute_command conn = self.connection or pool.get_connection(command_name, options) File "/app/venv/lib/python3.8/site-packages/redis/connection.py", line 1073, in get_connection connection.connect() File "/app/venv/lib/python3.8/site-packages/redis/connection.py", line 544, in connect raise ConnectionError(self._error_message(e)) redis.exceptions.ConnectionError: Error 111 connecting to 127.0.0.1:6379. Connection refused.
worker: Warm shutdown (MainProcess)
Steps to Reproduce the Problem
Check if there is no updates ongoing on the celery_worker: $ docker logs celery_worker
If or when there is no update ongoing: $ docker stop celery_beat celery_worker webserver
Update opencve-docker repository: $ git pull --prune
Update your opencve.cfg file with the changes $ vi conf/opencve.cfg
Check that you are on the correct version: $ grep OPENCVE_VERSION .env OPENCVE_VERSION=1.4.0
Build the new docker images: $ docker-compose build
Start the webserver & celery_worker: $ docker-compose up -d webserver celery_worker
Upgrade the database schema: $ docker exec -it webserver opencve upgrade-db
Now you are good to go, you can start the beat: $ docker-compose up -d celery_beat
Specifications
Screenshots (optional)