+ cd /var/jenkins_home/workspace/juntete-deploy
+ echo Container status:
Container status:
+ docker-compose -f docker-compose.yml -f docker-compose.prod.yml ps
time="2025-11-12T21:03:52Z" level=warning msg="/var/jenkins_home/workspace/juntete-deploy/docker-compose.yml: the attribute `version` is obsolete, it will be ignored, please remove it to avoid potential confusion"
time="2025-11-12T21:03:52Z" level=warning msg="/var/jenkins_home/workspace/juntete-deploy/docker-compose.prod.yml: the attribute `version` is obsolete, it will be ignored, please remove it to avoid potential confusion"
NAME IMAGE COMMAND SERVICE CREATED STATUS PORTS
+ echo Recent logs (backend):
Recent logs (backend):
+ docker-compose -f docker-compose.yml -f docker-compose.prod.yml logs --tail=20 backend
time="2025-11-12T21:03:53Z" level=warning msg="/var/jenkins_home/workspace/juntete-deploy/docker-compose.yml: the attribute `version` is obsolete, it will be ignored, please remove it to avoid potential confusion"
time="2025-11-12T21:03:53Z" level=warning msg="/var/jenkins_home/workspace/juntete-deploy/docker-compose.prod.yml: the attribute `version` is obsolete, it will be ignored, please remove it to avoid potential confusion"
backend-1 | config.load()
backend-1 | File "/usr/local/lib/python3.11/site-packages/uvicorn/config.py", line 467, in load
backend-1 | self.loaded_app = import_from_string(self.app)
backend-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
backend-1 | File "/usr/local/lib/python3.11/site-packages/uvicorn/importer.py", line 24, in import_from_string
backend-1 | raise exc from None
backend-1 | File "/usr/local/lib/python3.11/site-packages/uvicorn/importer.py", line 21, in import_from_string
backend-1 | module = importlib.import_module(module_str)
backend-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
backend-1 | File "/usr/local/lib/python3.11/importlib/__init__.py", line 126, in import_module
backend-1 | return _bootstrap._gcd_import(name[level:], package, level)
backend-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
backend-1 | File "<frozen importlib._bootstrap>", line 1204, in _gcd_import
backend-1 | File "<frozen importlib._bootstrap>", line 1176, in _find_and_load
backend-1 | File "<frozen importlib._bootstrap>", line 1126, in _find_and_load_unlocked
backend-1 | File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
backend-1 | File "<frozen importlib._bootstrap>", line 1204, in _gcd_import
backend-1 | File "<frozen importlib._bootstrap>", line 1176, in _find_and_load
backend-1 | File "<frozen importlib._bootstrap>", line 1140, in _find_and_load_unlocked
backend-1 | ModuleNotFoundError: No module named 'app'
+ echo Recent logs (frontend):
Recent logs (frontend):
+ docker-compose -f docker-compose.yml -f docker-compose.prod.yml logs --tail=20 frontend
time="2025-11-12T21:03:53Z" level=warning msg="/var/jenkins_home/workspace/juntete-deploy/docker-compose.yml: the attribute `version` is obsolete, it will be ignored, please remove it to avoid potential confusion"
time="2025-11-12T21:03:53Z" level=warning msg="/var/jenkins_home/workspace/juntete-deploy/docker-compose.prod.yml: the attribute `version` is obsolete, it will be ignored, please remove it to avoid potential confusion"
frontend-1 | npm error code ENOENT
frontend-1 | npm error syscall open
frontend-1 | npm error path /app/package.json
frontend-1 | npm error errno -2
frontend-1 | npm error enoent Could not read package.json: Error: ENOENT: no such file or directory, open '/app/package.json'
frontend-1 | npm error enoent This is related to npm not being able to find a file.
frontend-1 | npm error enoent
frontend-1 | npm error A complete log of this run can be found in: /root/.npm/_logs/2025-11-12T21_03_25_776Z-debug-0.log