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.
Application deployment Error
-
- Posts: 7
- Joined: July 17th, 2023, 7:08 am
Application deployment Error
- Attachments
-
- Screenshot 2023-10-07 at 4.14.33 PM.png (373.59 KiB) Viewed 2901 times
Re: Application deployment Error
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.
Then I would try deploying the release version of the docker-csweb project for the CSWeb version you need:
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
- CSWeb 8.0 latest commit
- CSWeb 7.7 commit 06394465f29491825bf1a735808a236d38d24d2b
-
- Posts: 7
- Joined: July 17th, 2023, 7:08 am
Re: Application deployment Error
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
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
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
Code: Select all
git reset --hard commit-id-here
3. You should now be in the previous commit. Navigate to /release and run
Code: Select all
docker compose up
Thanks @aaronw