On Sep 9, 2:13 pm, "Lukasz Szybalski" <[EMAIL PROTECTED]> wrote:
> On Tue, Sep 9, 2008 at 3:08 PM, AZMel <[EMAIL PROTECTED]> wrote:
>
> > On Sep 9, 9:05 am, "Lukasz Szybalski" <[EMAIL PROTECTED]> wrote:
> >> On Tue, Sep 9, 2008 at 10:53 AM, AZMel <[EMAIL PROTECTED]> wrote:
>
> >> > On Sep 9, 8:15 am, "Lukasz Szybalski" <[EMAIL PROTECTED]> wrote:
> >> >> > I followed the directions for the 1.0 deployment but get a 404 error.
> >> >> > The path '/' was not found.
>
> >> >> > [Tue Sep 09 07:14:42 2008] [notice] Apache/2.2.4 (Ubuntu) PHP/
> >> >> > 5.2.3-1ubuntu6.4 proxy_html/2.5 mod_ssl/2.2.4 OpenSSL/0.9.8e mod_wsgi/
> >> >> > 2.0 mod_perl/2.0.2 Perl/v5.8.8 configured -- resuming normal
> >> >> > operations
> >> >> > [Tue Sep 09 07:15:04 2008] [warn] mod_wsgi (pid=31143): Callback
> >> >> > registration for signal 15 ignored.
> >> >> > [Tue Sep 09 07:15:04 2008] [warn]   File "/usr/local/turbogears/myapp/
> >> >> > apache/myapp.wsgi", line 9, in <module>
> >> >> > [Tue Sep 09 07:15:04 2008] [warn]     import cherrypy
> >> >> > [Tue Sep 09 07:15:04 2008] [warn]   File "/usr/lib/python2.5/site-
> >> >> > packages/CherryPy-2.3.0-py2.5.egg/cherrypy/__init__.py", line 20, in
> >> >> > <module>
> >> >> > [Tue Sep 09 07:15:04 2008] [warn]     import _cpserver
> >> >> > [Tue Sep 09 07:15:04 2008] [warn]   File "/usr/lib/python2.5/site-
> >> >> > packages/CherryPy-2.3.0-py2.5.egg/cherrypy/_cpserver.py", line 10, in
> >> >> > <module>
> >> >> > [Tue Sep 09 07:15:04 2008] [warn]     from cherrypy._cpengine import
> >> >> > Engine, STOPPED, STARTING, STARTED
> >> >> > [Tue Sep 09 07:15:04 2008] [warn]   File "/usr/lib/python2.5/site-
> >> >> > packages/CherryPy-2.3.0-py2.5.egg/cherrypy/_cpengine.py", line 25, in
> >> >> > <module>
> >> >> > [Tue Sep 09 07:15:04 2008] [warn]     signal.signal(signal.SIGTERM,
> >> >> > SIGTERM)
> >> >> > [Tue Sep 09 07:15:06 2008] [error] Identity starting
> >> >> > [Tue Sep 09 07:15:06 2008] [error] Succesfully loaded
> >> >> > "stumbaugh.model.User"
> >> >> > [Tue Sep 09 07:15:06 2008] [error] Succesfully loaded
> >> >> > "stumbaugh.model.Group"
> >> >> > [Tue Sep 09 07:15:06 2008] [error] Succesfully loaded
> >> >> > "stumbaugh.model.Permission"
> >> >> > [Tue Sep 09 07:15:06 2008] [error] Succesfully loaded
> >> >> > "stumbaugh.model.VisitIdentity"
> >> >> > [Tue Sep 09 07:15:06 2008] [error] Identity visit plugin initialised
> >> >> > [Tue Sep 09 07:15:06 2008] [error] Succesfully loaded
> >> >> > "stumbaugh.model.User"
> >> >> > [Tue Sep 09 07:15:06 2008] [error] Succesfully loaded
> >> >> > "stumbaugh.model.Group"
> >> >> > [Tue Sep 09 07:15:06 2008] [error] Succesfully loaded
> >> >> > "stumbaugh.model.Permission"
> >> >> > [Tue Sep 09 07:15:06 2008] [error] Succesfully loaded
> >> >> > "stumbaugh.model.VisitIdentity"
> >> >> > [Tue Sep 09 07:15:06 2008] [error]  - - "GET / HTTP/1.1" 404 714 ""
> >> >> > "Links (1.00pre12; Linux 2.6.22-14-server i686; 207x56) (Debian pkg
> >> >> > 0.99+1.00pre12-1.2)"
>
> >> >> > my wsgi file is the same as the one in the 1.0 deployment doc with the
> >> >> > exception of myapp being used where needed.
>
> >> >> > I will say the guide was extremely easy to follow.  Nice work.  Now if
> >> >> > I can get the page to serve.....
>
> >> >> is you application called myapp? You have to change that to what ever
> >> >> you app name is.
> >> >> Did you put it in right folders?
> >> >> Is the permission set properly?
>
> >> >> Lucas
>
> >> > Everything seems correct in regards to permissions and folders.  What
> >> > I did figure out is that I can get pages served when I goto
> >> >http://192.168.1.9/myapp/myappratherthanhttp://192.168.1.9/myapp.
>
> I forgot to ask here... is your package called "myapp" and you have a
> function in controller.py called "myapp" if yes this will cause
> problems. They cannot have the same name.
>
No, nothing similar.  All I have is ReportsController.

> >> > However I cannot follow links because that all refer to /myapp.  I
> >> > know its a configuration issue, just not sure where to look.
>
> >> Do you want to serve you app in / or /myapp/
>
> >> Read the myapp.wsgi configuration file which tells you what to comment
> >> and uncomment to get / or /myapp/ as base.
> >> Play around with it and it should work.
> >> Lucas
>
> > Well I have tested both dev and prod extensively and they both work
> > fine if server.webpath is not set.  When I run the app through wsgi
> > and leave the webpath things go awry where I force the front page to
> > display but any links (login, subcontrollers,etc) all resolve to
> >http://192.168.1.9/and nothttp://192.168.1.9/myapp/.
>
> There is a similar config variable to server.webpath file in prod.cfg
> that needs to be set I think. You would need to search the archives.

I did see a thread between you and Graham back in last part of January
and my symptoms are the same.  Out of curiosity I rebuilt the app
using the tgbig template but have the results.  I also renamed web
link to webapps so http://192.168.1.9/webapps will get you to the app
but navigating from there brings you to http://192.168.1.9/reports or
http://192.168.1.9/login rather than http://192.168.1.9/webapps/reports
or http://192.168.1.9/webapps/login as would work.  What is the magic?

Mel
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"TurboGears" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/turbogears?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to