[Mono-dev] xsp2 won't run when invoked as service

Marek Habersack grendel at twistedcode.net
Wed Jan 26 06:38:01 EST 2011


On Wed, 26 Jan 2011 12:34:29 +0100
Tomasz Kubacki <tomasz.kubacki at gmail.com> wrote:

> hi,
> 
> Marek Habersack helped me to find a solution! (Thanks Marek !)
You're welcome

> 
> the problem solver was to add --nonstop as xsp parameter.
> 
> As Marek says with this option xsp will not try to read from stdin
> (which s redirected to /dev/null by default)
redirected by nohup that was used to run xsp (just to clarify). Without --nonstop xsp would call
Console.ReadLine which would throw the exception.

marek
> 
> Cheers,
> 
> Tomasz Kubacki
> 
> 
> 
> Dnia 2011-01-16, nie o godzinie 21:54 -0600, Eddy Zavaleta pisze:
> > Googling a little I found another clue.
> > 
> > 
> > "I've learned sometime that apache only likes those folders where it
> > can list+read the parent-folders. Means if you have /foo/bar/fu and
> > 'fu' is the folder apache accesses, it also wants to be able to read &
> > list 'foo' and 'bar'."
> > 
> > 
> > Give it a chance...
> > 
> > On Fri, Jan 14, 2011 at 10:41 AM, Tomasz Kubacki
> > <tomasz.kubacki at gmail.com> wrote:
> >         hi,
> >         
> >         Thanks for clue, but it did not help.
> >         
> >         I've done:
> >         
> >         chmod -R a+rwx myapp
> >         
> >         and the result is the same as in previous email.
> >         
> >         Tomasz Kubacki
> >         
> >         
> >         Dnia 2011-01-12, śro o godzinie 19:40 -0600, Eddy Zavaleta
> >         pisze:
> >         
> >         > Hi,
> >         >
> >         >
> >         > It seems to be an access right (permission) problem.
> >         > You should verify what user own the service and if that user
> >         has
> >         > access to your app's path.
> >         >
> >         >
> >         > To make sure everyone can read your app's path try
> >         executing:
> >         > $ chmod -R a+r /path/to/your/web/app
> >         >
> >         >
> >         >
> >         > On Wed, Jan 12, 2011 at 4:18 PM, Tomasz Kubacki
> >         > <tomasz.kubacki at gmail.com> wrote:
> >         >         Hi,
> >         >         I've sheeva plug box (arm) with default mono 2.6.1
> >         and
> >         >         facing strange issue.
> >         >         I can run my asp.net app from console without any
> >         problems,
> >         >         but when i try to run it as a service i've got below
> >         error on
> >         >         request.
> >         >         What can cause this ?
> >         >
> >         >
> >         >         cheers,
> >         >
> >         >
> >         >         Tomasz Kubacki
> >         >         -------------------------------------
> >         >
> >         >
> >         >         Error: System.UnauthorizedAccessException: Access to
> >         the path
> >         >         "/root/Piecyk/[Unknown]" is denied.
> >         >           at System.IO.FileStream.ReadData (IntPtr handle,
> >         >         System.Byte[] buf, Int32 offset, Int32 count)
> >         [0x00000] in
> >         >         <filename unknown>:0
> >         >           at System.IO.FileStream.ReadInternal
> >         (System.Byte[] dest,
> >         >         Int32 offset, Int32 count) [0x00000] in <filename
> >         unknown>:0
> >         >           at System.IO.FileStream.Read (System.Byte[] array,
> >         Int32
> >         >         offset, Int32 count) [0x00000] in <filename
> >         unknown>:0
> >         >           at System.IO.StreamReader.ReadBuffer () [0x00000]
> >         in
> >         >         <filename unknown>:0
> >         >           at System.IO.StreamReader.ReadLine () [0x00000] in
> >         <filename
> >         >         unknown>:0
> >         >           at System.IO.UnexceptionalStreamReader.ReadLine ()
> >         [0x00000]
> >         >         in <filename unknown>:0
> >         >           at System.IO.SynchronizedReader.ReadLine ()
> >         [0x00000] in
> >         >         <filename unknown>:0
> >         >           at System.Console.ReadLine () [0x00000] in
> >         <filename
> >         >         unknown>:0
> >         >           at Mono.WebServer.XSP.Server.RealMain
> >         (System.String[] args,
> >         >         Boolean root, IApplicationHost ext_apphost, Boolean
> >         quiet)
> >         >         [0x00000] in <filename unknown>:0
> >         >
> >         >
> >         >
> >         >         _______________________________________________
> >         >         Mono-devel-list mailing list
> >         >         Mono-devel-list at lists.ximian.com
> >         >
> >         http://lists.ximian.com/mailman/listinfo/mono-devel-list
> >         >
> >         >
> >         >
> >         >
> >         > --
> >         > Eddy Zavaleta
> >         > mictlanix.org
> >         >
> >         >
> >         >
> >         >
> >         
> >         
> >         
> > 
> > 
> > 
> > -- 
> > Eddy Zavaleta
> > mictlanix.org
> > 
> > 
> > 
> 
> 
> _______________________________________________
> Mono-devel-list mailing list
> Mono-devel-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-devel-list



More information about the Mono-devel-list mailing list