Ticket #151 (closed defect: wontfix)
CMS Messages don't save when app run from USB drive
| Reported by: | jdalbey | Owned by: | jdalbey |
|---|---|---|---|
| Priority: | Medium | Milestone: | May 2019 Training |
| Component: | CPTMS | Version: | |
| Severity: | Minor | Keywords: | |
| Cc: |
Description
When CPTMS is run from a USB drive, intermittently the CMS message from the edit dialog doesn't get saved.
Change History
comment:2 Changed 7 years ago by jdalbey
It turns out that when the USB drive is formatted as FAT32 then the file permissions are not maintained when the files are copied to the drive. Importantly, the execute permission is removed from the python scripts in the cgi-bin folder.
A quick workaround to the problem is to manually turn on execute permission on the python scripts. Once you have copied the files from the USB stick to your hard drive, issue these commands:
cd webapps/cgi-bin chmod a+x *
Note: See
TracTickets for help on using
tickets.

Sometimes the python server will show
Traceback (most recent call last): File "/usr/lib/python2.7/CGIHTTPServer.py", line 248, in run_cgi os.execve(scriptfile, args, env) OSError: [Errno 13] Permission deniedafter the GET /cgi-bin/saveCMSmessage.py call