operepo / ope

Open Prison Education project - Code and scripts to enable offline docker services and offline laptop syncing for inmate education
MIT License
14 stars 6 forks source link

Syncapp not copying new docker apps to USB drive. #139

Closed frankyrumple closed 1 year ago

frankyrumple commented 1 year ago

Found by Mike Huse

Sync app was not pulling docker app from online vm. Docker was pulling to the online vm, but syncapp was not copying gz file to usb drive. All digest values were coming in as "..."

Fix - Was an issue with running under python3 instead of python2. Mike was using new ubunut distro with py3. subprocess.Popen was returning ascii text so lines/values didn't match against unicode values. Had to add str.decode() to the code to convert it. New fix works for both py2 and py3.

Also updated the import python script too.

Deployment - Running syncapp should automatically pull in new code changes.

Fixed - waiting for testing/verification.

frankyrumple commented 1 year ago

Reported as Fixed by Mike