[web2py] Re: IIS help with permissions

2014-09-29 Thread Tim Richardson
It was turned on. I disabled it for the site, restarted the site but the 
same result. 

On Monday, September 29, 2014 7:19:16 PM UTC+10, Leonel Câmara wrote:
>
> Have you tried turning off all caching in IIS?
>

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[web2py] Re: IIS help with permissions

2014-09-29 Thread Leonel Câmara
Have you tried turning off all caching in IIS?

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[web2py] Re: IIS help with permissions

2014-09-28 Thread Tim Richardson
IIS must be doing something which is extension specific and which can't be 
explained by permissions. Such as locking. It also silently crashes the 
response thread in a way which does not trigger a python exception (which may 
explain the 'communication error' messages from the gui code editor as the Ajax 
call dies)  I have been hunting through IIS settings. GUI  config tools are not 
great for something as complex as IIS. It's too hard to see where I have 
settings different to default.

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[web2py] Re: IIS help with permissions

2014-09-28 Thread Leonel Câmara
Is it possible the files are being locked by IIS?

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[web2py] Re: IIS help with permissions

2014-09-27 Thread Tim Richardson
Also, the built-in code editor doesn't work either. I can not save edits to 
controllers or models, (fails with "communication error").
Sometimes the file save actually seems to work and sometimes I get a zero 
byte file. I assume this is based on the same problem. 

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[web2py] Re: IIS help with permissions

2014-09-27 Thread Tim Richardson


On Saturday, September 27, 2014 9:12:45 AM UTC+10, Dave S wrote:
>
>
> On Friday, September 26, 2014 2:01:36 PM UTC-7, Tim Richardson wrote:
>>
>> Through a lot of tedious testing to web2py's logging, it boils down to 
>> this:
>> the python tar extraction libary (tarfile.py) dies when trying to extract 
>> a file ending in .py
>>
>
> Firing from the hip:   does the extraction succeed in extracting other 
> kinds of executable files?
>
> /dps
>
>
>
appadmin.bat and appadmin.php both extract ok.  

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[web2py] Re: IIS help with permissions

2014-09-26 Thread Dave S

On Friday, September 26, 2014 2:01:36 PM UTC-7, Tim Richardson wrote:
>
> Through a lot of tedious testing to web2py's logging, it boils down to 
> this:
> the python tar extraction libary (tarfile.py) dies when trying to extract 
> a file ending in .py
>

Firing from the hip:   does the extraction succeed in extracting other 
kinds of executable files?

/dps

 

> This only happens when IIS owns the process and is not related in any 
> obvious way to file permissions. The script happily creates folders as 
>  necessary and it extracts other files.
>
> In tarfile.py, this is the code which extracts individual files and writes 
> them (with my loggging included):
>
> def makefile(self, tarinfo, targetpath):
> """Make a file called targetpath.
> """
> 
> source = self.extractfile(tarinfo)
>
> try:
> with bltn_open(targetpath, "wb") as target:  #builtin open
> logger.info("  >>> 1. in makefile,open of targetpath  %s 
> was ok " % targetpath)
> copyfileobj(source, target)
> logger.info("  >>> 2. in makefile,copyfileobj to 
> targetpath  %s was ok " % targetpath)
> finally:
> logger.info("  >>> doing finally, closing source in makefile")
> source.close()
> logger.info("  >>># leaving makefile") 
>
> When it encounters its first .py file to extract, I get message 2 but that 
> is the last output. The process then dies with no exception. The finally 
> code is not executed. 
> If I modify the archive to remove the .py extension, and re-run, it then 
> dies on the next encounter with a .py file
>
>
>
>

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[web2py] Re: IIS help with permissions

2014-09-26 Thread Tim Richardson
Through a lot of tedious testing to web2py's logging, it boils down to this:
the python tar extraction libary (tarfile.py) dies when trying to extract a 
file ending in .py
This only happens when IIS owns the process and is not related in any 
obvious way to file permissions. The script happily creates folders as 
 necessary and it extracts other files.

In tarfile.py, this is the code which extracts individual files and writes 
them (with my loggging included):

def makefile(self, tarinfo, targetpath):
"""Make a file called targetpath.
"""

source = self.extractfile(tarinfo)

try:
with bltn_open(targetpath, "wb") as target:  #builtin open
logger.info("  >>> 1. in makefile,open of targetpath  %s 
was ok " % targetpath)
copyfileobj(source, target)
logger.info("  >>> 2. in makefile,copyfileobj to targetpath 
 %s was ok " % targetpath)
finally:
logger.info("  >>> doing finally, closing source in makefile")
source.close()
logger.info("  >>># leaving makefile") 

When it encounters its first .py file to extract, I get message 2 but that 
is the last output. The process then dies with no exception. The finally 
code is not executed. 
If I modify the archive to remove the .py extension, and re-run, it then 
dies on the next encounter with a .py file



-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[web2py] Re: IIS help with permissions

2014-09-26 Thread Willoughby
Just as a suggestion since I run into this on our corporate windows 
network, you don't have by chance some security system (i.e. virus scanner 
or other) that could be preventing the folder creation?  Ours seems to 
block all sorts of things - can't create files over a certain size 
threshold, dbs locking up, restricted folders, etc.  All controlled from 
some security setting I can't see!  Very frustrating.

On Friday, September 26, 2014 2:39:04 AM UTC-4, Tim Richardson wrote:
>
> That is possible for sure. What timezone are you in?
>
> The problem is tar.extractall() is failing to create folders when run by 
> IIS.
> I have reset everything and IIS is not running as the user DefaultAppPool 
> (which I can verify by inspecting the process). 
> I have made this user the owner of the entire folder tree starting at 
> web2py and this I verify as well. 
> The user has permission to everything, as does Everyone. 
>
> When I run python as me via ipython, untar works. But it fails (dies) when 
> running via IIS. I don't get an exception logged by web2py; the browser 
> just comes back to a blankscreen.
>
> tar.getmembers() works: I see the contents of the file. 
> IIS/untar can also extract the files into a folder elsewhere (outside of 
> the site's webroot)
>
> My suspicions about the Resilient Filesystem are growing because the 
> alternative location that I just got it to extract to is on NTFS.
> The extractall extracts three files and then dies. The first file it fails 
> to extract (assuming extraction order is alphabetical) is 
> routes.example.py
>
> I've got logger messages inside a local copy of tarfile.py to try to see 
> what might be happening. 
>
>
>
>
>
>
>
>
>
>
>
>
>
> On Friday, 26 September 2014 00:59:26 UTC+10, Niphlod wrote:
>>
>> Given that in real life I'm a Windows system administrator on top of a 
>> SQL Server DBA, if we can arrange a remote session I'll be happy to debug 
>> with you the issue ;-P
>>
>> On Thursday, September 25, 2014 3:52:38 PM UTC+2, Tim Richardson wrote:
>>>
>>> I get the same behaviour even why I tell the application pool to run as 
>>> me.
>>> The create_app code turns the .w2p file into a .tar file.
>>> It is supposed to os.unlink(tarname) the tar file but this fails; the 
>>> .tar remains. I think this may be the first thing which doesn't work. 
>>>
>>>
>>>
>>> On Thursday, September 25, 2014 5:10:45 AM UTC+10, Niphlod wrote:

 access denied  you're still having permission problems.

 On Wednesday, September 24, 2014 2:43:26 PM UTC+2, Tim Richardson wrote:
>
> OK. the GUI management tool make a new application pool by default if 
> creating a new site. I deleted that and I'm using the default application 
> pool. I am now back to where I was: it works until it needs to make new 
> files
>
> I tried to "clean" the welcome app from admin and I got a ticket:
>
> Traceback 
>
> 1.
> 2.
> 3.
> 4.
> 5.
> 6.
> 7.
> 8.
> 9.
> 10.
> 11.
> 12.
>
> Traceback (most recent call last):
>   File ".\gluon\restricted.py", line 224, in restricted
> exec ccode in environment
>   File 
> "E:/web2py/web2py_iis/web2py/applications/admin/controllers/default.py" 
> , 
> line 1946, in 
>   File ".\gluon\globals.py", line 392, in 
> self._caller = lambda f: f()
>   File 
> "E:/web2py/web2py_iis/web2py/applications/admin/controllers/default.py" 
> , 
> line 448, in cleanup
> clean = app_cleanup(app, request)
>   File ".\gluon\admin.py", line 124, in app_cleanup
> if f[:1] != '.': os.unlink(os.path.join(path, f))
> WindowsError: [Error 5] Access is denied: 
> 'E:/web2py/web2py_iis/web2py/applications/welcome/cache/0c1'THe 
>
>
>>>

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[web2py] Re: IIS help with permissions

2014-09-25 Thread Tim Richardson
That is possible for sure. What timezone are you in?

The problem is tar.extractall() is failing to create folders when run by 
IIS.
I have reset everything and IIS is not running as the user DefaultAppPool 
(which I can verify by inspecting the process). 
I have made this user the owner of the entire folder tree starting at 
web2py and this I verify as well. 
The user has permission to everything, as does Everyone. 

When I run python as me via ipython, untar works. But it fails (dies) when 
running via IIS. I don't get an exception logged by web2py; the browser 
just comes back to a blankscreen.

tar.getmembers() works: I see the contents of the file. 
IIS/untar can also extract the files into a folder elsewhere (outside of 
the site's webroot)

My suspicions about the Resilient Filesystem are growing because the 
alternative location that I just got it to extract to is on NTFS.
The extractall extracts three files and then dies. The first file it fails 
to extract (assuming extraction order is alphabetical) is routes.example.py

I've got logger messages inside a local copy of tarfile.py to try to see 
what might be happening. 













On Friday, 26 September 2014 00:59:26 UTC+10, Niphlod wrote:
>
> Given that in real life I'm a Windows system administrator on top of a SQL 
> Server DBA, if we can arrange a remote session I'll be happy to debug with 
> you the issue ;-P
>
> On Thursday, September 25, 2014 3:52:38 PM UTC+2, Tim Richardson wrote:
>>
>> I get the same behaviour even why I tell the application pool to run as 
>> me.
>> The create_app code turns the .w2p file into a .tar file.
>> It is supposed to os.unlink(tarname) the tar file but this fails; the 
>> .tar remains. I think this may be the first thing which doesn't work. 
>>
>>
>>
>> On Thursday, September 25, 2014 5:10:45 AM UTC+10, Niphlod wrote:
>>>
>>> access denied  you're still having permission problems.
>>>
>>> On Wednesday, September 24, 2014 2:43:26 PM UTC+2, Tim Richardson wrote:

 OK. the GUI management tool make a new application pool by default if 
 creating a new site. I deleted that and I'm using the default application 
 pool. I am now back to where I was: it works until it needs to make new 
 files

 I tried to "clean" the welcome app from admin and I got a ticket:

 Traceback 

 1.
 2.
 3.
 4.
 5.
 6.
 7.
 8.
 9.
 10.
 11.
 12.

 Traceback (most recent call last):
   File ".\gluon\restricted.py", line 224, in restricted
 exec ccode in environment
   File 
 "E:/web2py/web2py_iis/web2py/applications/admin/controllers/default.py" 
 , 
 line 1946, in 
   File ".\gluon\globals.py", line 392, in 
 self._caller = lambda f: f()
   File 
 "E:/web2py/web2py_iis/web2py/applications/admin/controllers/default.py" 
 , 
 line 448, in cleanup
 clean = app_cleanup(app, request)
   File ".\gluon\admin.py", line 124, in app_cleanup
 if f[:1] != '.': os.unlink(os.path.join(path, f))
 WindowsError: [Error 5] Access is denied: 
 'E:/web2py/web2py_iis/web2py/applications/welcome/cache/0c1'THe 


>>

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[web2py] Re: IIS help with permissions

2014-09-25 Thread Niphlod
Given that in real life I'm a Windows system administrator on top of a SQL 
Server DBA, if we can arrange a remote session I'll be happy to debug with 
you the issue ;-P

On Thursday, September 25, 2014 3:52:38 PM UTC+2, Tim Richardson wrote:
>
> I get the same behaviour even why I tell the application pool to run as me.
> The create_app code turns the .w2p file into a .tar file.
> It is supposed to os.unlink(tarname) the tar file but this fails; the .tar 
> remains. I think this may be the first thing which doesn't work. 
>
>
>
> On Thursday, September 25, 2014 5:10:45 AM UTC+10, Niphlod wrote:
>>
>> access denied  you're still having permission problems.
>>
>> On Wednesday, September 24, 2014 2:43:26 PM UTC+2, Tim Richardson wrote:
>>>
>>> OK. the GUI management tool make a new application pool by default if 
>>> creating a new site. I deleted that and I'm using the default application 
>>> pool. I am now back to where I was: it works until it needs to make new 
>>> files
>>>
>>> I tried to "clean" the welcome app from admin and I got a ticket:
>>>
>>> Traceback 
>>>
>>> 1.
>>> 2.
>>> 3.
>>> 4.
>>> 5.
>>> 6.
>>> 7.
>>> 8.
>>> 9.
>>> 10.
>>> 11.
>>> 12.
>>>
>>> Traceback (most recent call last):
>>>   File ".\gluon\restricted.py", line 224, in restricted
>>> exec ccode in environment
>>>   File 
>>> "E:/web2py/web2py_iis/web2py/applications/admin/controllers/default.py" 
>>> , line 
>>> 1946, in 
>>>   File ".\gluon\globals.py", line 392, in 
>>> self._caller = lambda f: f()
>>>   File 
>>> "E:/web2py/web2py_iis/web2py/applications/admin/controllers/default.py" 
>>> , line 
>>> 448, in cleanup
>>> clean = app_cleanup(app, request)
>>>   File ".\gluon\admin.py", line 124, in app_cleanup
>>> if f[:1] != '.': os.unlink(os.path.join(path, f))
>>> WindowsError: [Error 5] Access is denied: 
>>> 'E:/web2py/web2py_iis/web2py/applications/welcome/cache/0c1'THe 
>>>
>>>
>

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[web2py] Re: IIS help with permissions

2014-09-25 Thread Tim Richardson
I get the same behaviour even why I tell the application pool to run as me.
The create_app code turns the .w2p file into a .tar file.
It is supposed to os.unlink(tarname) the tar file but this fails; the .tar 
remains. I think this may be the first thing which doesn't work. 



On Thursday, September 25, 2014 5:10:45 AM UTC+10, Niphlod wrote:
>
> access denied  you're still having permission problems.
>
> On Wednesday, September 24, 2014 2:43:26 PM UTC+2, Tim Richardson wrote:
>>
>> OK. the GUI management tool make a new application pool by default if 
>> creating a new site. I deleted that and I'm using the default application 
>> pool. I am now back to where I was: it works until it needs to make new 
>> files
>>
>> I tried to "clean" the welcome app from admin and I got a ticket:
>>
>> Traceback 
>>
>> 1.
>> 2.
>> 3.
>> 4.
>> 5.
>> 6.
>> 7.
>> 8.
>> 9.
>> 10.
>> 11.
>> 12.
>>
>> Traceback (most recent call last):
>>   File ".\gluon\restricted.py", line 224, in restricted
>> exec ccode in environment
>>   File 
>> "E:/web2py/web2py_iis/web2py/applications/admin/controllers/default.py" 
>> , line 
>> 1946, in 
>>   File ".\gluon\globals.py", line 392, in 
>> self._caller = lambda f: f()
>>   File 
>> "E:/web2py/web2py_iis/web2py/applications/admin/controllers/default.py" 
>> , line 
>> 448, in cleanup
>> clean = app_cleanup(app, request)
>>   File ".\gluon\admin.py", line 124, in app_cleanup
>> if f[:1] != '.': os.unlink(os.path.join(path, f))
>> WindowsError: [Error 5] Access is denied: 
>> 'E:/web2py/web2py_iis/web2py/applications/welcome/cache/0c1'THe 
>>
>>


-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[web2py] Re: IIS help with permissions

2014-09-24 Thread Niphlod
access denied  you're still having permission problems.

On Wednesday, September 24, 2014 2:43:26 PM UTC+2, Tim Richardson wrote:
>
> OK. the GUI management tool make a new application pool by default if 
> creating a new site. I deleted that and I'm using the default application 
> pool. I am now back to where I was: it works until it needs to make new 
> files
>
> I tried to "clean" the welcome app from admin and I got a ticket:
>
> Traceback 
>
> 1.
> 2.
> 3.
> 4.
> 5.
> 6.
> 7.
> 8.
> 9.
> 10.
> 11.
> 12.
>
> Traceback (most recent call last):
>   File ".\gluon\restricted.py", line 224, in restricted
> exec ccode in environment
>   File 
> "E:/web2py/web2py_iis/web2py/applications/admin/controllers/default.py" 
> , line 
> 1946, in 
>   File ".\gluon\globals.py", line 392, in 
> self._caller = lambda f: f()
>   File 
> "E:/web2py/web2py_iis/web2py/applications/admin/controllers/default.py" 
> , line 
> 448, in cleanup
> clean = app_cleanup(app, request)
>   File ".\gluon\admin.py", line 124, in app_cleanup
> if f[:1] != '.': os.unlink(os.path.join(path, f))
> WindowsError: [Error 5] Access is denied: 
> 'E:/web2py/web2py_iis/web2py/applications/welcome/cache/0c1'THe 
>
>
>>>

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[web2py] Re: IIS help with permissions

2014-09-24 Thread Tim Richardson
OK. the GUI management tool make a new application pool by default if 
creating a new site. I deleted that and I'm using the default application 
pool. I am now back to where I was: it works until it needs to make new 
files

I tried to "clean" the welcome app from admin and I got a ticket:

Traceback 

1.
2.
3.
4.
5.
6.
7.
8.
9.
10.
11.
12.

Traceback (most recent call last):
  File ".\gluon\restricted.py", line 224, in restricted
exec ccode in environment
  File "E:/web2py/web2py_iis/web2py/applications/admin/controllers/default.py" 
, line 
1946, in 
  File ".\gluon\globals.py", line 392, in 
self._caller = lambda f: f()
  File "E:/web2py/web2py_iis/web2py/applications/admin/controllers/default.py" 
, line 
448, in cleanup
clean = app_cleanup(app, request)
  File ".\gluon\admin.py", line 124, in app_cleanup
if f[:1] != '.': os.unlink(os.path.join(path, f))
WindowsError: [Error 5] Access is denied: 
'E:/web2py/web2py_iis/web2py/applications/welcome/cache/0c1'THe 


>>

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[web2py] Re: IIS help with permissions

2014-09-24 Thread Niphlod
you don't need an application pool at all. Those are only for .NET apps.

On Wednesday, September 24, 2014 11:16:46 AM UTC+2, Tim Richardson wrote:
>
>
>
> Also, the owner of the application folder and the three files are which 
> are created is
> web2py_production, which is the name of the application pool I created. 
>
>

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[web2py] Re: IIS help with permissions

2014-09-24 Thread Tim Richardson


Also, the owner of the application folder and the three files are which are 
created is
web2py_production, which is the name of the application pool I created. 

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[web2py] Re: IIS help with permissions

2014-09-24 Thread Tim Richardson


On Wednesday, September 24, 2014 6:07:10 PM UTC+10, Niphlod wrote:
>
> to rule out other problems, just give all permissions to "everyone" . If 
> then it works, we'll start from there ^_^
>
> On Wednesday, September 24, 2014 4:51:46 AM UTC+2, Tim Richardson wrote:
>>
>> With IIS 8, I am trying to get web2py running with wfastcgi.py v2.1RC2, 
>> web2py 2.9.11, python 2.7 32 bit
>> I have welcome running, and I can access admin.
>> However, when I try to create a new simple application, it fails. It does 
>> create the folder name structure (e.g. models, controllers folders are 
>> created) but there is no content in them.
>> Frustratingly, I can find no error messages logged anywhere, even after I 
>> activated logging. The request appears to terminate with no error in the 
>> browser. 
>>
>> I have actually given the group IIS_IUSRS full permissions and I can see 
>> that this permission has been inherited by the empty controllers folder, 
>> for example. 
>> I think that it is a permission error. When I modify db.py in the the 
>> welcome app (by adding a comment) and try to save (edited via the admin 
>> app) I do get an error in the session: "communication error". Meanwhile, 
>> the file db.py has become empty. 
>> It is a bit subtle for me. 
>>
>>
>>
>>
>>
You know, I did that earlier... 
 This time I made sure; changed ownership to Everyone, made it the Sun 
King, and forced changes recursively. So now I can edit files in welcome 
with no errors. That is progress. However, when creating an new 
application, I get
a) a folder named after the application (test1)
b) no subfolders 
c) three files: __init__.py (empty), ABOUT (not empty), LICENSE (not empty)

after the create app, the browser returns to the URL 
localhost:81/admin/default/site#

(this app is http only at present)

Manually installing the welcome.w2p archive as test2 gives the same result. 
The archive appears normal when I view it with an archive viewer (7-zip)



-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[web2py] Re: IIS help with permissions

2014-09-24 Thread Niphlod
to rule out other problems, just give all permissions to "everyone" . If 
then it works, we'll start from there ^_^

On Wednesday, September 24, 2014 4:51:46 AM UTC+2, Tim Richardson wrote:
>
> With IIS 8, I am trying to get web2py running with wfastcgi.py v2.1RC2, 
> web2py 2.9.11, python 2.7 32 bit
> I have welcome running, and I can access admin.
> However, when I try to create a new simple application, it fails. It does 
> create the folder name structure (e.g. models, controllers folders are 
> created) but there is no content in them.
> Frustratingly, I can find no error messages logged anywhere, even after I 
> activated logging. The request appears to terminate with no error in the 
> browser. 
>
> I have actually given the group IIS_IUSRS full permissions and I can see 
> that this permission has been inherited by the empty controllers folder, 
> for example. 
> I think that it is a permission error. When I modify db.py in the the 
> welcome app (by adding a comment) and try to save (edited via the admin 
> app) I do get an error in the session: "communication error". Meanwhile, 
> the file db.py has become empty. 
> It is a bit subtle for me. 
>
>
>
>
>
>

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.