Generate source code for app stalls

I’ve had this happen several times. I am working on an app and click on the run app button. SC first generates the source-code and the generation stalls. It will never finish unless I log out, go back in and open the app then either generate source-code button or run app button. This seems to happen most often with form applications and when I have been working for a while. I have my session time out set to 60 min and there is almost always activity going on while I am working on a project.

I’m getting tired of freezing and having to logout to go through this process every time it stalls.

Any ideas why this is happening? I’m running SC9 on a linux server. Checked the error logs and nothing there in the way of errors.

I noticed something else interesting. When the code gen stalls, I logout then log back in. I have noticed sometimes I am still connected and have to disconnect my other login.

I found one issue. I am running SC9 on linux with suPHP enabled. Files have to be 644 and folders 755 permissions. (executable files like .so etc have to be 755 to execute, php files run with 644 permissions)

When SC creates a new sqlite DB it sets the permissions on the file to 777. suPHP will not write to the file so trying to install one of the sample systems is not able to write to the db that was just created in devel/conf/scriptcase. This may be affecting code generation too. I changed the permissions of all .db files in my installation folder to 644 and now things seem to be working.

ADMIN! A LOT OF HOSTS RUN SUPHP, BLUEHOST, HOSTGATOR ETC. YOU NEED TO FIX THESE FILE PERMISSION ISSUES ONCE AND FOR ALL FOR THOSE OF US THAT PREFER TO INSTALL SC ON A LINUX HOST. THERE SHOULD BE A SELECTION IN SETTINGS THAT ALLOWS US TO INFORM SCRIPTCASE THAT WE ARE INSTALLED ON A SUPHP SYSTEM AND THEN INSTALL CORRECTLY AND GENERATE NEW FILES WITH THE CORRECT PERMISSIONS.

I have fought with permission issues with SC since I first stated using in with Version 5. Please figure this out. Not everyone installs on windows. If you install on a linux host it is more likely you will have suPHP running than not these days. Just for security.