Clem Rock
2011-Apr-20 13:48 UTC
Cannot get progress bars to work w/ Apache Progress Module
I am following this screencast
http://railsillustrated.com/screencast-file-uploads-progress-in-rails-passenger.html
as well as comparing this against all the other rails Apache Progress
Module progress bar examples and I can''t figure out why I am always
getting a 404 routing error:
ActionController::RoutingError (No route matches "/progress"):
I have a feeling that it''s something centered around my apache
configurations but everything seems to check out.
in my httpd.conf I have these relative configs:
LoadModule upload_progress_module libexec/apache2/mod_upload_progress.so
Include /private/etc/apache2/other/*.conf
Include /private/etc/apache2/passenger_pane_vhosts/*.conf
in my passenger_pane_vhosts/file_upload_progress1.local.vhost.conf I
have this virtual host set up:
[code]
<VirtualHost *:80>
ServerName file_upload_progress1.local
DocumentRoot
"/Library/WebServer/Documents/ROR_tests/file_upload_progress1/public"
RailsEnv development
#RailsAllowModRewrite off
<directory
"/Library/WebServer/Documents/ROR_tests/file_upload_progress1/public">
Order allow,deny
Allow from all
# AllowOverride all
</directory>
# needed for tracking upload progess
<Location />
# enable tracking uploads in /
TrackUploads On
</Location>
<Location /progress>
# enable upload progress reports in /progress
ReportUploads On
</Location>
</VirtualHost>
[/code]
in /private/etc/apache2/extra/httpd-vhosts.conf I have:
NameVirtualHost *:80
Another off the hand problem I''m having, and might be a clue is w/ my
Passenger Pane. I installed the Phusion Passenger Pane and every time
I try to add an entry, I get this error: Your changes couldn’t be saved
See the Console log for details.
Please help! I''ve spent days trying to figure this out and
it''s driving
me crazy.
--
Posted via http://www.ruby-forum.com/.
--
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en.
Frederick Cheung
2011-Apr-20 14:12 UTC
Re: Cannot get progress bars to work w/ Apache Progress Module
On Apr 20, 2:48 pm, Clem Rock <li...-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org> wrote:> <Location /> > # enable tracking uploads in / > TrackUploads On > </Location> > > <Location /progress> > # enable upload progress reports in /progress > ReportUploads On > </Location>You need to tell passenger not to pass /progress to your rails app - eg by sticking PassengerEnabled off in that location block Fred> </VirtualHost> > [/code] > > in /private/etc/apache2/extra/httpd-vhosts.conf I have: > NameVirtualHost *:80 > > Another off the hand problem I''m having, and might be a clue is w/ my > Passenger Pane. I installed the Phusion Passenger Pane and every time > I try to add an entry, I get this error: Your changes couldn’t be saved > See the Console log for details. > > Please help! I''ve spent days trying to figure this out and it''s driving > me crazy. > > -- > Posted viahttp://www.ruby-forum.com/.-- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Clem Rock
2011-Apr-20 20:51 UTC
Re: Cannot get progress bars to work w/ Apache Progress Module
Frederick,
Thanks for your help as always.
I adding the PassengerEnabled directive inside the location block as
such:
<Location /progress>
# enable upload progress reports in /progress
PassengerEnabled off
ReportUploads On
</Location>
I restarted apache and passenger and I''m still getting the 404:
ActionController::RoutingError (No route matches "/progress"):
> On Apr 20, 2:48pm, Clem Rock
<li...-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org> wrote:
>> <Location />
>> # enable tracking uploads in /
>> TrackUploads On
>> </Location>
>>
>> <Location /progress>
>> # enable upload progress reports in /progress
>> ReportUploads On
>> </Location>
>
> You need to tell passenger not to pass /progress to your rails app -
> eg by sticking PassengerEnabled off in that location block
>
> Fred
--
Posted via http://www.ruby-forum.com/.
--
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en.
Frederick Cheung
2011-Apr-21 15:04 UTC
Re: Cannot get progress bars to work w/ Apache Progress Module
On Apr 20, 9:51 pm, Clem Rock <li...-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org> wrote:> Frederick, > Thanks for your help as always. > > I adding the PassengerEnabled directive inside the location block as > such: > > <Location /progress> > # enable upload progress reports in /progress > PassengerEnabled off > ReportUploads On > </Location> > > I restarted apache and passenger and I''m still getting the 404: >Hmm, that works for me. I''d check apache''s error logs (and the console log and /var/log/system.log) to see if the upload module is complaining about anything Fred> ActionController::RoutingError (No route matches "/progress"): > > > On Apr 20, 2:48pm, Clem Rock <li...-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org> wrote: > >> <Location /> > >> # enable tracking uploads in / > >> TrackUploads On > >> </Location> > > >> <Location /progress> > >> # enable upload progress reports in /progress > >> ReportUploads On > >> </Location> > > > You need to tell passenger not to pass /progress to your rails app - > > eg by sticking PassengerEnabled off in that location block > > > Fred > > -- > Posted viahttp://www.ruby-forum.com/.-- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Clem Rock
2011-Apr-21 15:31 UTC
Re: Cannot get progress bars to work w/ Apache Progress Module
I tried all of these: tail -f /var/log/system.log tail -f /private/var/log/apache2/error_log tail -f /private/var/log/apache2/access_log as well as the console and, so far, I''m not seeing anything relevant. Frederick Cheung wrote in post #994303:> On Apr 20, 9:51pm, Clem Rock <li...-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org> wrote: >> </Location> >> >> I restarted apache and passenger and I''m still getting the 404: >> > Hmm, that works for me. I''d check apache''s error logs (and the console > log and /var/log/system.log) to see if the upload module is > complaining about anything > > Fred-- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Clem Rock
2011-Apr-22 02:23 UTC
Re: Cannot get progress bars to work w/ Apache Progress Module
[UPDATE] I solved the passenger pane issue and you can view the solution here: http://railsforum.com/viewtopic.php?pid=139784#p139784 -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
clem_c_rock
2011-Apr-24 18:30 UTC
Cannot get progress bars to work w/ Apache Progress Module
I am following this screencast
http://railsillustrated.com/screencast-file-uploads-progress-in-rails-passenger.html
as well as comparing this against all the other rails Apache Progress Module
progress bar examples and I can''t figure out why I am always getting a
404
routing error:
ActionController::RoutingError (No route matches "/progress"):
I have a feeling that it''s something centered around my apache
configurations but everything seems to check out.
in my httpd.conf I have these relative configs:
LoadModule upload_progress_module libexec/apache2/mod_upload_progress.so
Include /private/etc/apache2/other/*.conf
Include /private/etc/apache2/passenger_pane_vhosts/*.conf
in /private/etc/apache2/other/phusion.conf, I have this:
LoadModule passenger_module
/usr/local/lib/ruby/gems/1.8/gems/passenger-3.0.7/ext/apache2/mod_passenger.so
PassengerRoot /usr/local/lib/ruby/gems/1.8/gems/passenger-3.0.7
PassengerRuby /usr/local/bin/ruby
in my passenger_pane_vhosts/file_upload_progress1.local.vhost.conf I have
this virtual host set up:
[code]
<VirtualHost *:80>
ServerName file_upload_progress1.local
DocumentRoot
"/Library/WebServer/Documents/ROR_tests/file_upload_progress1/public"
RailsEnv development
#RailsAllowModRewrite off
<directory
"/Library/WebServer/Documents/ROR_tests/file_upload_progress1/public">
Order allow,deny
Allow from all
# AllowOverride all
</directory>
# needed for tracking upload progess
<Location />
# enable tracking uploads in /
TrackUploads On
</Location>
<Location /progress>
# enable upload progress reports in /progress
ReportUploads On
</Location>
</VirtualHost>
[/code]
in /private/etc/apache2/extra/httpd-vhosts.conf I have:
NameVirtualHost *:80
Please help! I''ve spent days trying to figure this out and
it''s driving me
crazy.
--
View this message in context:
http://old.nabble.com/Cannot-get-progress-bars-to-work-w--Apache-Progress-Module-tp31467432p31467432.html
Sent from the RubyOnRails Users mailing list archive at Nabble.com.
--
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en.