Page 1 of 1
Application deployment Error
Posted: October 7th, 2023, 2:15 am
by bsomers_pg
Hi,
There seems to be an issue when deploying application to CSWeb.
The CSWeb is running in a container using the latest release updates on this repo -
https://github.com/CSProDevelopment/docker-csweb.git .
I have attached the screenshot. Please assist.
Re: Application deployment Error
Posted: October 10th, 2023, 10:29 am
by aaronw
The current docker-csweb release project is configured for CSWeb 8.0. Please note that there is no upgrade path between CSWeb 7.7 to CSWeb 8.0. A fresh install is necessary (e.g., new database). I believe the issue is you have the database that was created by CSWeb 7.7, but you're trying to use CSWeb 8.0.
Previously (I believe) you were using the docker-csweb project that was configured for CSWeb 7.7. Given that you haven't collected any data yet I would try runnning the following docker commands to delete the persistent docker data. Warning this will delete your data, if you have collected some.
Code: Select all
docker volume rm dev_data
docker volume rm release_csweb_files
docker volume rm release_csweb_db_data
Then I would try deploying the release version of the docker-csweb project for the CSWeb version you need:
- CSWeb 8.0 latest commit
- CSWeb 7.7 commit 06394465f29491825bf1a735808a236d38d24d2b
Re: Application deployment Error
Posted: October 10th, 2023, 12:19 pm
by bsomers_pg
Correct, I cloned the main repo and worked from there.
Following your reply, here's what I did - for those who wants to know - and it worked
1. Clear all images, volumes, containers on the server
Code: Select all
docker system prune -a
docker volume prune -a
2. Navigate into the docker-csweb folder and do a hard reset to set one of the commits as the head -
clone the main repair if you haven't
- For me, I used CSWeb 7.7 commit. Replace "commit-id-here" with one of the commits.
3. You should now be in the previous commit. Navigate to /release and run
It worked for me. Hope it helps.
Thanks @aaronw