Welcome Guest Login Register Member List
ExpressionEngine Forums
Advanced Search
Username: Password:
Remember Me? forgot password?
You are here: Forum Home  >  Installation  >  Linux  >  Thread
   
 
404 error after install
 
madoktor
Posted: 17 December 2008 05:50 PM   [ Ignore ]  
Newbie
Rank
Total Posts:  5
Joined  2008-12-17

Firstly - great product…

Secondly - I am having a few problems deploying the application as a sub-URI in apache. I am using mod_rails with a virtual host defined for tracks. I have followed the instructions from the mod_rails manual on howto set this up, defining a symbolic link and using the RailsBaseURI option.

If I setup the virtual host deploying from the host root (/) tracks works perfectly. As soon as I use the above option I can see the delay as apache starts processing the rails code - but in the end it fails with 404 message from the public folder!!! I have no idea where to go from here, and the log files do not state any error!! Any help appreciated…

Thanks

Profile
 
Reinier Balt
Posted: 18 December 2008 08:03 AM   [ Ignore ]   [ # 1 ]  
Sr. Member
RankRankRankRank
Total Posts:  580
Joined  2006-10-05

you need to configure the sub-URI in your rails app too, see discussion on the mailing list

Profile
 
madoktor
Posted: 18 December 2008 12:50 PM   [ Ignore ]   [ # 2 ]  
Newbie
Rank
Total Posts:  5
Joined  2008-12-17

Thanks - can you recommend keywords/threads to find this info.. I have been searching the forums and can not locate where this discussion is…

Profile
 
Reinier Balt
Posted: 19 December 2008 09:23 AM   [ Ignore ]   [ # 3 ]  
Sr. Member
RankRankRankRank
Total Posts:  580
Joined  2006-10-05

see this thread: http://lists.rousette.org.uk/mailman/private/tracks-discuss/2008-December/001567.html

you need to define this in your environment.rb

config.action_controller.relative_url_root = ‘/tracks’

Profile
 
madoktor
Posted: 19 December 2008 10:51 AM   [ Ignore ]   [ # 4 ]  
Newbie
Rank
Total Posts:  5
Joined  2008-12-17

Thanks for the info Reinier…I’m making progress, slowly…

The addition of:

config.action_controller.relative_url_root = "/tracks" 

allowed the rails app to start but obviously not all resources (e.g. CSS files) are reachable (see attached pic). This is still a path issue - as it works fully when deployed to the root. I also tried adding the following - but the results were the same:

ActionController::AbstractRequest.relative_url_root = â€œ/tracks” 

Obviously there is something more to do… I noticed that the CentOS problems seem related but with slightly different symptoms - as the mobile version works fine (with CSS) etc..

I’m deploying on Debian (AMD64)/lenny and will write up the install - if anyone would find this useful - as it did require a very different set of packages to get it working!!!

Thanks in advance for the help… PS could not get on the listserver (need auth), so not too sure if it is covered here….

Image Attachments  screen-capture.png
Click thumbnail to see full-size image
Profile
 
Reinier Balt
Posted: 19 December 2008 01:02 PM   [ Ignore ]   [ # 5 ]  
Sr. Member
RankRankRankRank
Total Posts:  580
Joined  2006-10-05

Yes, you need to sign up for access to the archives. You can always use http://www.mail-archive.com/tracks-discuss@lists.rousette.org.uk/ as a mirror

From the pic I see that your /public/images folder is accessible. It’s only the CSS (and possibly the javascript files)

you can try to add ?bundle_fu=false to your url and see if things start to work, i.e.

http://your.url/tracks?bundle_fu=false

also review your apache configs for rewrite rules.

Profile
 
madoktor
Posted: 19 December 2008 01:19 PM   [ Ignore ]   [ # 6 ]  
Newbie
Rank
Total Posts:  5
Joined  2008-12-17

OK - not too sure what happened - but my son managed to power off the server and on reboot the application is working perfectly in Safari- miracles do happen!! I’m not too sure what the problem was - but I’m elated its working!!! grin

I have, however, tested this with firefox and it only works properly after adding the bundle_fu=false…. i.e without it the css/JS missing symptoms prevail.

Therefore is this something that can be added to the environment? Not too sure what this bundle_fu is about - but its definitely makes it work on all browsers!!

Thanks Reinier for your fast responses & help!!!

Profile
 
Reinier Balt
Posted: 19 December 2008 01:23 PM   [ Ignore ]   [ # 7 ]  
Sr. Member
RankRankRankRank
Total Posts:  580
Joined  2006-10-05

Don’t thank me, thank your son!  grin

Profile
 
madoktor
Posted: 19 December 2008 02:20 PM   [ Ignore ]   [ # 8 ]  
Newbie
Rank
Total Posts:  5
Joined  2008-12-17

Well - I’ve tested some more - and its definitely a problem with bundle_fu. As far as I can tell by using the false flag everything works fine… I did google and noticed that bundle_fu has has had some problems with the relative URL rewriter… maybe this is the problem i.e. an older version is being used??

Therefore I assume this is a bug - how can bugs be reported?

So…my thanks were correctly directed, after all…

Profile
 
Reinier Balt
Posted: 21 December 2008 07:17 PM   [ Ignore ]   [ # 9 ]  
Sr. Member
RankRankRankRank
Total Posts:  580
Joined  2006-10-05

I’m fairly sure we use the latest bundle_fu. I’ll check on that.

I don’t know where you can report the bugs for bundle_fu. It seems the homepage is at http://code.google.com/p/bundle-fu/ and there is a ticket tab…

bugreports for tracks can be submitted at http://dev.rousette.org.uk

Profile
 
Gerard Korsten
Posted: 03 February 2009 03:23 PM   [ Ignore ]   [ # 10 ]  
Newbie
Rank
Total Posts:  1
Joined  2009-02-03

I see there is a patch for this at bundle-fu, but it hasnt been fixed upstream as yet
(Been a bug since 2007 - so I dont think this issue will be fixed there)

http://code.google.com/p/bundle-fu/issues/detail?id=3

Profile
 
eleudson
Posted: 14 April 2009 11:22 PM   [ Ignore ]   [ # 11 ]  
Newbie
Rank
Total Posts:  4
Joined  2009-04-14

See this post http://www.getontracks.org/forums/viewthread/372/

Profile
 
robert09
Posted: 17 September 2009 08:51 AM   [ Ignore ]   [ # 12 ]  
Newbie
Rank
Total Posts:  1
Joined  2009-09-17

^thanks. I was also having the same problems so it’s a great help.

Regards,
Robert
Pret travaux

Profile
 
   
 
 
‹‹ database migration failes on mysql and sqlite      Client does not support authentication protocol requested by server ››

Powered By ExpressionEngine
Template Design By Sonnenvogel.com
Select a theme:

ExpressionEngine Discussion Forum - Version 2.1.2 (20091002)
Script Executed in 0.1344 seconds

Atom Feed
RSS 2.0