Application deployment Error

Discussions about syncing data via Bluetooth, Dropbox, FTP, and using CSWeb
Post Reply
bsomers_pg
Posts: 7
Joined: July 17th, 2023, 7:08 am

Application deployment Error

Post 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.
Attachments
Screenshot 2023-10-07 at 4.14.33 PM.png
Screenshot 2023-10-07 at 4.14.33 PM.png (373.59 KiB) Viewed 2293 times
aaronw
Posts: 565
Joined: June 9th, 2016, 9:38 am
Location: Washington, DC

Re: Application deployment Error

Post 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
bsomers_pg
Posts: 7
Joined: July 17th, 2023, 7:08 am

Re: Application deployment Error

Post 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 :D

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

Code: Select all

git reset --hard commit-id-here
- 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

Code: Select all

docker compose up
It worked for me. Hope it helps.

Thanks @aaronw
Post Reply