Re: DBaccessError when switching which user 'runs' the spyce server

"Jason Persampieri" <[email protected]> Wed, 9 Jan 2008 11:23:01 -0500
Newsgroups gmane.comp.python.spyce.general
Message-ID <[email protected]>
--===============1976385856==
Content-Type: multipart/alternative; 
	boundary="----=_Part_8488_27014817.1199895781757"

------=_Part_8488_27014817.1199895781757
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

On Jan 9, 2008 1:19 AM, Jonathan Ellis <[email protected]> wrote:

> On Wed, 9 Jan 2008 00:14:54 -0500, "Jason Persampieri"
> <[email protected]> said:
> > It turns out that the spyce server was using the same 'spysession' temp
> > file
> > for the two runs.  And seeing as how it was initially created as 'root',
> > the
> > measly 'apache' user couldn't access it.  Is this by design?  It seems
> > like
> > the server should start a new session file every time it's run, yes?
>
> Since the whole point of sessions is to make a stateless protocol more
> stateful, that doesn't necessarily follow at all in my mind. :)
>
> Think of it this way: if you were sharing a session db across N servers
> (spyce doesn't have a db backend yet, but hypothetically :) you wouldn't
> want to reset it if one server crashed and restarted for any N > 1.  So
> really it would be confusing to blow it away if N = 1.
>
> (Yes, this is how all the other session systems I know of work too, it's
> not just a Spyce quirk.)
>
> -Jonathan
>

Um... yes... well.... that makes entirely too much sense :)

If I had known more about 'shelve' and the idea of a stateful server, I
would have found the error much faster.  Ah well.

Perhaps there could simply be a more informative error message?

_jason

------=_Part_8488_27014817.1199895781757
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

On Jan 9, 2008 1:19 AM, Jonathan Ellis &lt;<a href="mailto:[email protected]">[email protected]</a>&gt; wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="Ih2E3d">On Wed, 9 Jan 2008 00:14:54 -0500, &quot;Jason Persampieri&quot;<br>&lt;<a href="mailto:[email protected]">[email protected]</a>&gt; said:<br>&gt; It turns out that the spyce server was using the same &#39;spysession&#39; temp
<br>&gt; file<br>&gt; for the two runs. &nbsp;And seeing as how it was initially created as &#39;root&#39;,<br>&gt; the<br>&gt; measly &#39;apache&#39; user couldn&#39;t access it. &nbsp;Is this by design? &nbsp;It seems<br>&gt; like<br>
&gt; the server should start a new session file every time it&#39;s run, yes?<br><br></div>Since the whole point of sessions is to make a stateless protocol more<br>stateful, that doesn&#39;t necessarily follow at all in my mind. :)
<br><br>Think of it this way: if you were sharing a session db across N servers<br>(spyce doesn&#39;t have a db backend yet, but hypothetically :) you wouldn&#39;t<br>want to reset it if one server crashed and restarted for any N &gt; 1. &nbsp;So
<br>really it would be confusing to blow it away if N = 1.<br><br>(Yes, this is how all the other session systems I know of work too, it&#39;s<br>not just a Spyce quirk.)<br><font color="#888888"><br>-Jonathan<br></font></blockquote>
</div><br>Um... yes... well.... that makes entirely too much sense :)<br><br>If I had known more about &#39;shelve&#39; and the idea of a stateful server, I would have found the error much faster.&nbsp; Ah well.<br><br>Perhaps there could simply be a more informative error message?
<br><br>_jason<br>

------=_Part_8488_27014817.1199895781757--


--===============1976385856==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
--===============1976385856==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
Spyce-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/spyce-users

--===============1976385856==--