WebFaction
Community site: login faq

Edit: There had been a script error on installation and the problem I was experiencing was solved by deleting the app and creating a new one through the webfaction control panel.


I've just started using Webfaction and I'm trying to port a Sinatra app from Appfog.

I've created a "Passenger 3.0.11 (nginx 1.0.10/Ruby 1.9.3)" app and it's partly working.

The ORM I'm using is DataMapper.

DataMapper seems to access the database okay. (If I deliberately use a bad password then I get an error message saying MySQL denied access to the user.) And I can define my models, but the first time I try to access any data in the DB I get a segmentation fault.

/home/myuser/webapps/myapp/gems/gems/data_objects-0.10.12/ ... 
   ... lib/data_objects/connection.rb:79: [BUG] Segmentation fault
ruby 1.9.3p392 (2013-02-22 revision 39386) [x86_64-linux]

This app works on Appfog and on my laptop (but I'm using Thin rather than Passenger on those systems) so I assume there's something in the environment that I have to allow for, but I don't know where to go with this. Can anyone help?

asked 17 May '13, 15:30

Crantok
1519
accept rate: 0%

edited 29 Oct '13, 07:26

I don't have any experience with DataMapper, but this sounds like a bug in either the gem or in ruby itself. Likely this bug manifests itself on particular platforms only.

(17 May '13, 20:33) ryans ♦♦

Thanks for the tip. I'll ask on the DataMapper issues list.

(18 May '13, 02:37) Crantok
Be the first one to answer this question!
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×81
×1

question asked: 17 May '13, 15:30

question was seen: 2,305 times

last updated: 29 Oct '13, 07:26

WEBFACTION
REACH US
SUPPORT
AFFILIATE PROGRAM
LEGAL
© COPYRIGHT 2003-2019 SWARMA LIMITED - WEBFACTION IS A SERVICE OF SWARMA LIMITED
REGISTERED IN ENGLAND AND WALES 5729350 - VAT REGISTRATION NUMBER 877397162
5TH FLOOR, THE OLD VINYL FACTORY, HAYES, UB3 1HA, UNITED KINGDOM