Ticket #151 (closed defect: wontfix)

Opened 7 years ago

Last modified 7 years ago

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:1 Changed 7 years ago by jdalbey

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 denied

after the GET /cgi-bin/saveCMSmessage.py call

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 *

comment:3 Changed 7 years ago by jdalbey

  • Status changed from new to accepted

comment:4 Changed 7 years ago by jdalbey

Ally reports the above workaround doesn't solve the problem for her.
Chrome sometimes reports:

Unchecked runtime.lastError:
The message port closed before a response was received.

comment:5 Changed 7 years ago by jdalbey

  • Status changed from accepted to closed
  • Resolution set to wontfix

Closing this ticket ... use work around above.

Note: See TracTickets for help on using tickets.