WebFaction
Community site: login faq

Hi,

I have created a custom application in the Webfaction panel in order to serve a Flask app I have. I also created a simple autostart.cgi script and set the application to autostart.

It worked fine, but there is a problem. When this app tries to write a file in the disk it gets a Not Enough Permission error. I did a chmod a+w in the directory it need to write but that didn't help.

The funny thing is, if I turn off the autostart and run the autostart.cgi manually, the app gets the permission properly.

Any ideas?

This is my autostart script in case it helps:

#!/bin/ksh

export PYTHONPATH=$PYTHONPATH:/home/canassa/webapps/freecep
export FREECEP_SETTINGS=/home/canassa/webapps/freecep/webfaction_settings.py
python2.6 freecep/app.py

Thanks! Cesar Canassa

asked 31 Oct '10, 00:55

Cesar Canassa
324
accept rate: 0%

Since this is a public forum, I cannot discuss your personal account or app details here. Could you file a support ticket so I can investigate this further?

(31 Oct '10, 01:14) neeravk

Hi Cesar,

Try setting the autostart.cgi's permissions to 711 and see if it runs correctly.

permanent link

answered 03 Nov '10, 18:15

klynton
1.6k1210
accept rate: 41%

Nops, didn't work :-(

(04 Nov '10, 04:42) Cesar Canassa

I would suggest to open up a ticket and describe how can the problem be reproduced exactly. We could then look further into this.

(04 Nov '10, 06:31) tie
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×47
×45
×19
×12

question asked: 31 Oct '10, 00:55

question was seen: 3,389 times

last updated: 04 Nov '10, 06:31

WEBFACTION
REACH US
SUPPORT
AFFILIATE PROGRAM
LEGAL
© COPYRIGHT 2003-2020 SWARMA LIMITED - WEBFACTION IS A SERVICE OF SWARMA LIMITED
REGISTERED IN ENGLAND AND WALES 5729350 - VAT REGISTRATION NUMBER 877397162
5TH FLOOR, THE OLD VINYL FACTORY, HAYES, UB3 1HA, UNITED KINGDOM