David Raison | 31 Jan 22:14
Picon
Gravatar

Fastcgi trouble with status headers in application_controller.rb


Here's number two.

I had trouble getting the http-authentication to work with fastcgi since
it seems to be very picky when it comes to headers.

I had to comment line 36 in application_controller.rb in order to not
have it complain:

[Tue Jan 31 21:37:14 2012] [error] [client 178.254.102.***] FastCGI:
comm with server
"/var/www/haxogreen.lu/pentabarf/rails/public/dispatch.fcgi" aborted:
error parsing headers: duplicate header 'Status'

So in the end, my transaction_wrapper now looks like this:

def transaction_wrapper
    response.content_type ||= Mime::HTML
    Momomoto::Database.instance.transaction do
      if auth
        # if auth succeeds we continue
        yield
      elsif not performed? then
        # if auth failed and nothing has been rendered we return 401
        #response.headers["Status"] = "Unauthorized"
        response.headers["WWW-Authenticate"] = "Basic realm=Pentabarf"
        render(
:file=>'auth_failed.rxml',:status=>401,:content_type=>'text/html' )
      end
      POPE.deauth
(Continue reading)

David Raison | 31 Jan 22:11
Picon
Gravatar

Pentabarf submission/login going in circles


Hi,

I have three posts to make, I'll create a separate thread for each one
of them.

Here's number one:

I'm running pentabarf from github with postrgres-8.4 and using fastcgi
with apache.
Whenever I go to http://cfp.haxogreen.lu/submission/login, it redirects
me back to http://cfp.haxogreen.lu/submission

Also, if you go to http://cfp.haxogreen.lu/submission, you'll find that
no conference is listed, even though I have one defined and in the
submission phase.

Here's the production log: (apache error log not showing up any error
messages)

Processing SubmissionController#index (for 178.254.102.*** at 2012-01-31
22:06:10) [GET]
  Parameters: {"action"=>"index", "conference"=>"login",
"controller"=>"submission"}
Redirected to http://cfp.haxogreen.lu/submission
Filter chain halted as [:init] rendered_or_redirected.
Completed in 4ms | 302 Found [http://cfp.haxogreen.lu/submission/login]

Processing SubmissionController#index (for 178.254.102.*** at 2012-01-31
22:06:10) [GET]
(Continue reading)

Dan Langille | 7 Jan 03:19
Favicon
Gravatar

Patches 0.4.4 for PostgreSQL 9.x

Attached are patches for 0.4.4 to enable running on PostgreSQL 9.x

There may be more issues, but these are what I've found so far.

Attachment (Pentabarf0.4.4-Postgresql9-patch.diff): application/octet-stream, 3782 bytes

--

-- 
Dan Langille - http://langille.org

_______________________________________________
pentabarf mailing list
pentabarf@...
https://mail.skyhub.de/cgi-bin/mailman/listinfo/pentabarf
Dan Langille | 17 Sep 16:11
Favicon
Gravatar

mongrel fails to start

I'm having trouble getting mongrel to start after upgrading some system components.

[dan <at> supernews:/usr/websites/papers.bsdcan.org/pentabarf/rails] $ mongrel_rails cluster::r::start
Invalid gemspec in [/usr/local/lib/ruby/gems/1.8/specifications/rack-cache-1.0.3.gemspec]:
invalid date format in specification: "2011-08-27 00:00:00.000000000Z"
Invalid gemspec in [/usr/local/lib/ruby/gems/1.8/specifications/tilt-1.3.3.gemspec]: invalid
date format in specification: "2011-08-25 00:00:00.000000000Z"
NOTE: Gem::SourceIndex.from_installed_gems is deprecated with no replacement. It will be removed on or
after 2011-10-01.
Gem::SourceIndex.from_installed_gems called from /usr/local/lib/ruby/gems/1.8/gems/gem_plugin-0.2.3/lib/gem_plugin.rb:109.
NOTE: from_installed_gems(arg) is deprecated. From
/usr/local/lib/ruby/site_ruby/1.8/rubygems/deprecate.rb:62:in `send'
NOTE: Gem::SourceIndex.from_gems_in is deprecated with no replacement. It will be removed on or after 2011-10-01.
Gem::SourceIndex.from_gems_in called from /usr/local/lib/ruby/site_ruby/1.8/rubygems/source_index.rb:50.
NOTE: Gem::SourceIndex#initialize is deprecated with no replacement. It will be removed on or after 2011-11-01.
Gem::SourceIndex#initialize called from /usr/local/lib/ruby/site_ruby/1.8/rubygems/source_index.rb:67.
NOTE: Gem::SourceIndex#spec_dirs= is deprecated, use Specification.dirs=. It will be removed on or
after 2011-11-01.
Gem::SourceIndex#spec_dirs= called from /usr/local/lib/ruby/site_ruby/1.8/rubygems/source_index.rb:94.
NOTE: Gem::SourceIndex#refresh! is deprecated with no replacement. It will be removed on or after 2011-11-01.
Gem::SourceIndex#refresh! called from /usr/local/lib/ruby/site_ruby/1.8/rubygems/source_index.rb:95.
NOTE: Gem::SourceIndex#load_gems_in is deprecated with no replacement. It will be removed on or after 2011-11-01.
Gem::SourceIndex#load_gems_in called from /usr/local/lib/ruby/site_ruby/1.8/rubygems/source_index.rb:322.

… etc

Ideas?  Suggestions?

--

-- 
Dan Langille - http://langille.orgp
(Continue reading)

Dan Langille | 20 Mar 03:39
Favicon
Gravatar

*TAP* *TAP*

Is this thing on?  :)

--

-- 
Dan Langille - http://langille.org/
Dan Langille | 6 Mar 19:22
Favicon
Gravatar

Website down? Project abandoned?

Folks,

The website has been offline for several weeks.  http://pentabarf.org/

Anyone have news as to what is going on?

--

-- 
Dan Langille - http://langille.org/
Paulo Cheque | 5 Mar 16:36
Picon

Paulo Cheque wants to stay in touch on LinkedIn

LinkedIn

I'd like to add you to my professional network on LinkedIn.

- Paulo Cheque

Paulo Cheque
Consultor at Agilbits / UOL
Brazil

Confirm that you know Paulo

© 2011, LinkedIn Corporation

_______________________________________________
pentabarf mailing list
pentabarf@...
https://mail.skyhub.de/cgi-bin/mailman/listinfo/pentabarf
Robert Schulze | 6 Jun 22:24
Picon

error while upgrading from 0.3.18r0 to 0.4.0

Hi,

running
$ psql < sql/maintenance/upgrade_0.3.18_0.4.0.sql
bails out with the following message:

FEHLER:  doppelter Schlüsselwert verletzt Unique-Constraint
»permission_pkey«
CONTEXT:  SQL-Anweisung »INSERT INTO
log.permission(log_transaction_id,log_operation,permission,rank) SELECT
currval('base.log_transaction_log_transaction_id_seq'), 'D',  $1 , $2 «

What can be done to make the upgrade work?

With kind regards,

Rob
Jochen Topf | 14 Mar 19:47
Favicon

Strange 404s on HTML export

Hi!

I have a very strange problem with HTML export in 0.3.18: Everything worked
fine for a while. But now people have uploaded lots of files as attachments
to their talks and the export breaks.

Symptoms: From inside the Pentabarf web user interface everything is fine,
creating releases works, and the schedule_export button works.

But script/html-export sooner or later chokes on an attachment:
./lib/html_export.rb:102:in `export': Error while processing {:controller=>"file",
:language=>"de", :filename=>"neue-wege-fuer-metadaten_arnulf-christl_v7.pdf",
:action=>:event_attachment, :id=>63, :only_path=>true}: Error in HTML Export while processing
{:controller=>"file", :language=>"de",
:filename=>"neue-wege-fuer-metadaten_arnulf-christl_v7.pdf", :action=>:event_attachment,
:id=>63, :only_path=>true} (StandardError)
    from ./script/html-export:39

The logfile says:
Processing FileController#event_attachment (for 127.0.0.1 at 2010-03-14 17:46:13) [GET]
  Parameters: {"action"=>"event_attachment", "language"=>"de", "id"=>"63",
"filename"=>"neue-wege-fuer-metadaten_arnulf-christl_v7.pdf", "controller"=>"file"}
Completed in 180ms (View: 0 | 404 Not Found [http://pentabarf.org/file/event_attachment/63?filename=neue-wege-fuer-metadaten_arnulf-christl_v7.pdf&language=de]

So there is a 404 error. But the file is there and can be downloaded.

The file right before that was fine:
Processing FileController#event_attachment (for 127.0.0.1 at 2010-03-14 17:46:12) [GET]
  Parameters: {"action"=>"event_attachment", "language"=>"de", "id"=>"95",
"filename"=>"FOSSGIS-2010_Arnulf-Christl_Neue-Wege-fuer-Metadaten.pdf", "controller"=>"file"}
Completed in 582ms (View: 0 | 200 OK [http://pentabarf.org/file/event_attachment/95?filename=FOSSGIS-2010_Arnulf-Christl_Neue-Wege-fuer-Metadaten.pdf&language=de]

If I delete the file or make it non-public, html-export will sooner or later
choke on a different file.

I can see no difference between files that work and files that don't. Might
have something to do with size, but I don't think so.

For several hours now I have been trying to dig my way through the maze of
Pentabarf and Rails, but can't really isolate the code that returns the 404.
If I run the event_attachment method in the file_controller manually,
everything is fine again as it is when called from inside the web UI. So
it might have something to do with the ActionController::Integration::Session
that the export code uses.

Any ideas?

Jochen
--

-- 
Jochen Topf  jochen@...  http://www.remote.org/jochen/  +49-721-388298
Dan Langille | 25 Feb 02:52
Favicon
Gravatar

All accepted speakers: less than expected

I'm at pentabarf/mail using the 'All accepted speakers of this 
conference'.  I see 6 speakers.

However, event/state/accepted shows 42 events accepted.

I can see no differences the events/speakers not included.

For example, a speaker missing from the list:

  - event role: speaker
  - role state: confirmed
  - event state: accepted
  - progress: reconfirmed

What's up?

--

-- 
Dan Langille - http://langille.org/
Dan Langille | 25 Feb 02:23
Favicon
Gravatar

No action responded to person

I just encountered this error, but have no access to the server from 
this location to get any logs:

No action responded to person. Actions: activity, conflicts, index, 
mail, recent_changes, recipients, schedule, and send_mail

The above occurred when going to pentabarf/person/1

No idea why.  :)

--

-- 
Dan Langille - http://langille.org/

Gmane