alloy / passengerpane
- Source
- Commits
- Network (23)
- Issues (10)
- Downloads (3)
- Wiki (2)
- Graphs
-
Branch:
master
-
I can't seem to add an application in the version 1.3 prefpane. When I try, and click Apply, the following messages appear in Console.app:
10/6/09 6:08:08 AM System Preferences[71276] Applying changes to Rails application: /Users/ben/projects/teaching/permanent_record 10/6/09 6:08:08 AM System Preferences[71276] Starting Rails application: /Users/ben/projects/teaching/permanent_record 10/6/09 6:08:08 AM System Preferences[71276] Saving configuration: /private/etc/apache2/passenger_pane_vhosts/permanent-record.local.vhost.conf 10/6/09 6:08:08 AM [0x0-0x116116].com.apple.systempreferences 2009-10-06 06:08:08.935 System Preferences[71276:903] Applying changes to Rails application: /Users/ben/projects/teaching/permanent_record 10/6/09 6:08:08 AM [0x0-0x116116].com.apple.systempreferences 2009-10-06 06:08:08.937 System Preferences[71276:903] Starting Rails application: /Users/ben/projects/teaching/permanent_record 10/6/09 6:08:08 AM [0x0-0x116116].com.apple.systempreferences 2009-10-06 06:08:08.937 System Preferences[71276:903] Saving configuration: /private/etc/apache2/passenger_pane_vhosts/permanent-record.local.vhost.conf 10/6/09 6:08:08 AM authexec[71301] executing /usr/bin/ruby 10/6/09 6:08:09 AM [0x0-0x116116].com.apple.systempreferences /Library/Ruby/Site/1.8/universal-darwin10.0/rubycocoa.bundle: dlopen(/Library/Ruby/Site/1.8/universal-darwin10.0/rubycocoa.bundle, 9): no suitable image found. Did find: (LoadError) 10/6/09 6:08:09 AM [0x0-0x116116].com.apple.systempreferences /Library/Ruby/Site/1.8/universal-darwin10.0/rubycocoa.bundle: no matching architecture in universal wrapper - /Library/Ruby/Site/1.8/universal-darwin10.0/rubycocoa.bundle 10/6/09 6:08:09 AM [0x0-0x116116].com.apple.systempreferences from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/osx/foundation.rb:8 10/6/09 6:08:09 AM [0x0-0x116116].com.apple.systempreferences from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/osx/cocoa.rb:8:in `require' 10/6/09 6:08:09 AM [0x0-0x116116].com.apple.systempreferences from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/osx/cocoa.rb:8 10/6/09 6:08:09 AM [0x0-0x116116].com.apple.systempreferences from /Users/ben/Library/PreferencePanes/Passenger.prefPane/Contents/Resources/config_installer.rb:3:in `require' 10/6/09 6:08:09 AM [0x0-0x116116].com.apple.systempreferences from /Users/ben/Library/PreferencePanes/Passenger.prefPane/Contents/Resources/config_installer.rb:3 10/6/09 6:08:34 AM System Preferences[71276] PrefPanePassenger#paneWillBecomeActive: Errno::ENOENT: No such file or directory - /private/etc/apache2/passenger_pane_vhosts/permanent-record.local.vhost.conf 10/6/09 6:08:34 AM [0x0-0x116116].com.apple.systempreferences 2009-10-06 06:08:34.417 System Preferences[71276:903] PrefPanePassenger#paneWillBecomeActive: Errno::ENOENT: No such file or directory - /private/etc/apache2/passenger_pane_vhosts/permanent-record.local.vhost.conf 10/6/09 6:08:34 AM [0x0-0x116116].com.apple.systempreferences /Users/ben/Library/PreferencePanes/Passenger.prefPane/Contents/Resources/passenger_application.rb:218:in `read' 10/6/09 6:08:34 AM [0x0-0x116116].com.apple.systempreferences /Users/ben/Library/PreferencePanes/Passenger.prefPane/Contents/Resources/passenger_application.rb:218:in `load_data_from_vhost_file' 10/6/09 6:08:34 AM [0x0-0x116116].com.apple.systempreferences /Users/ben/Library/PreferencePanes/Passenger.prefPane/Contents/Resources/passenger_application.rb:156:in `reload!' 10/6/09 6:08:34 AM [0x0-0x116116].com.apple.systempreferences /Users/ben/Library/PreferencePanes/Passenger.prefPane/Contents/Resources/passenger_pref.rb:269:in `reload_appications!' 10/6/09 6:08:34 AM [0x0-0x116116].com.apple.systempreferences /Users/ben/Library/PreferencePanes/Passenger.prefPane/Contents/Frameworks/RubyCocoa.framework/Resources/ruby/osx/objc/oc_attachments.rb:1132:in `each' 10/6/09 6:08:34 AM [0x0-0x116116].com.apple.systempreferences /Users/ben/Library/PreferencePanes/Passenger.prefPane/Contents/Resources/passenger_pref.rb:269:in `reload_appications!' 10/6/09 6:08:34 AM [0x0-0x116116].com.apple.systempreferences /Users/ben/Library/PreferencePanes/Passenger.prefPane/Contents/Resources/passenger_pref.rb:60:in `willSelect' 10/6/09 6:08:34 AM [0x0-0x116116].com.apple.systempreferences /Users/ben/Library/PreferencePanes/Passenger.prefPane/Contents/Resources/passenger_pref.rb:54:in `paneWillBecomeActive' 10/6/09 6:08:34 AM System Preferences[71276] No such file or directory - /private/etc/apache2/passenger_pane_vhosts/permanent-record.local.vhost.conf 10/6/09 6:08:34 AM [0x0-0x116116].com.apple.systempreferences 2009-10-06 06:08:34.418 System Preferences[71276:903] No such file or directory - /private/etc/apache2/passenger_pane_vhosts/permanent-record.local.vhost.confThis is with completely stock built-in Ruby and whatnot. Let me know if there's any other information I can provide.
Comments
-
Passenger prefpane doesn't work with ruby1.9 installed.
Kind of hard to give a way for you to test this, but:
- install ruby1.9 with MacPorts
- set ruby1.9 as the default (change the /usr/bin/ruby etc. to point to /opt/local/bin/ruby1.9 version)
- install ruby compliled passenger and passenger module.
- restart apache.
Everything works as before, but passenger prefpane gives errors about not being able to save, and doesn't save any changes.
Thanks for a great prefpane,
Comments
You shouldn't touch /usr/bin, stuff like the pane that may depend on it will break.
It would still be fairly easy to fix this in the pref pane, but like I said, you shouldn't be changing anything that comes with the system in /usr/bin in the first place.
If you want to use a different Ruby yourself, then simply make sure that that Ruby is in front of /usr/bin in your PATH.
PS: If some blog post advised to do install Ruby 1.9 this way, please tell them to not do that.
Thanks
I should add, if you do really want this to work this way, make sure the config_installer.rb and config_uninstaller.rb are being executed by the right Ruby. I suspect that is the problem, check the logs in Console.app for more info.
Cheers
adamsalter
Mon Sep 21 22:11:34 -0700 2009
| link
NVM...
That works... Umm re-symlinking /usr/bin/ruby was my solution after many different configurations... the default /usr/bin/ruby* files are only symlinks anyway.
I've also encountered trouble with the /usr/bin/rails and using ruby1.9 since it uses /usr/bin/env ruby... Anyway, thanks. ;)
-
When I remove all apps from the source list using the [-] button all the vhost configurations are deleted as expected. However, after the pane looses and regains focus the source list is reset to all the original apps.
This doesn't happen when you leave one app.
Comments
-
Prefpane hangs on load. (Moved here from LH #35)
15 comments Created 6 months ago by alloyRyan Davis:
“I've got the same issue (with the same console output) as ticket #13022. However, I'm on stock osx 10.5.6 w/ all updates applied w/ stock ruby and xcode + iphone sdk installed. So, I'm very up to date.
{{{ % grep 13 /System/Library/Frameworks/RubyCocoa.framework/Versions/A/Resources/version.plist
0.13.1
0.13.1}}}
So... it seems to meet the requirements as described in the doco... clue me?”
Comments
Lucas Húngaro:
“After I updated XCode from 3.0 to 3.1.2 I had the same problem and managed to solve it by manually installing RubyCocoa 0.13.2 from http://is.gd/EiR6 - the odd thing is that I use Mac OS 10.5.7 and should have RubyCocoa 0.13.2 (as described in the passengerpane docs), but had 0.13.1 instead too.”
I had the same problem on 10.5.7 and the above solution works perfectly. Thanks!
CraigThatcher
Wed Aug 26 15:34:07 -0700 2009
| link
agree, struggled for months and update of rubyCocoa to 13.2 finally got it working. hopefully snow leopard won't break this during the upgrade.
I'm on a Leopard to Snow Leopard update and already have 0.13.2. Same issue with the hang.
The RubyCocoa 0.13.2 of SL does not work with the pref pane at all, most have reported more success with the 0.13.2 that's downloadable as a binary. But I will have to take a look at the current state of things anyways. So I'll try to work some on it the coming week and come up with a stable version for SL.
I'm still encountering this issue after installing it from the latest master.
Do you have a version of RubyCocoa installed in /Library/Frameworks ?
Always fix the path in the Passenger.prefPane binary to link against the RubyCocoa.framework inside the bundle, even when another version is installed in /Library/Frameworks.
Closed by 844ecb2.
Ok, building it on a machine that has a RubyCocoa version installed in /Library/Frameworks caused the binary to link against that version instead of the bundled one. This should now be fixed in the above commit. If someone feels adventurous they can try it out, but please note that I still have a few things I'd like to finish before I will make a proper release.
The most important thing to mind is that hostnames are registered, if you wish so, but aliases not yet.
I've pulled the latest and it is now showing "public.local" as the hostname when I select an app called "rboard" :) I'll file another issue for this.
Judging by this and the other ticket, can I assume it's working now? :)
-
Can't add applications to fresh install of 1.2 (Moved from LH #32)
0 comments Created 6 months ago by alloyReported by Leonard Chin:
I've narrowed down the problem to having my $SHELL set to a non-POSIX compatible shell (specifically "fish") after a few attempts with different users on different machines. Specifically, fish treats strings (escapes, primarily) slightly differently than POSIX shells do.
Thanks a lot for your investigation!
All potential solutions I can think of involve not passing in the YAML-marshalled host information as an argument (which is honestly rather ugly). interprocess communication, e.g. druby (kinda ugly too) passing the data in to AuthorizationExecuteWithPrivileges through a temporary intermediate file (the communicationsPipe argument).
I think the tmp file is the best solution then.
Comments
-
Changes to folder are not saved to vhost.conf (Moved from LH #29)
1 comment Created 6 months ago by alloydalboy:
In the vhost.conf, the Directory element path is not being updated when the folder is changed. The path is being updated for the DocumentRoot element.
Manfred:
I noticed this just now, when edit an app in the prefpane it only updates the DocumentRoot declaration and not the directory.
ServerName fngtps.local DocumentRoot "/Users/manfred/Code/fingertips-website/public" RailsEnv development <directory "/Users/manfred/Code/fngtps-website/public"> Order allow,deny Allow from all </directory>Eloy:
Oh, hadn't seen this ticket yet. So yes, the directory part is "user defined data". I wonder what the best way to solve this would be, maybe just replace (gsub) the old path with the new path?…
Manfred:
Yeah, that sounds like a good idea, it should also fix any additional configuration someone might have done. If you make this change, would you mind changing directory to Directory too?
Comments
-
When one application in a selection is invalid, add a red arrow next to the invalid application in the table view. Also add a red arrow next to the offending field in the invalid application and show an alert with explanation if the user presses that red arrow.
Also when we have this check the hostname according to the RFC before marking an application as valid: http://tools.ietf.org/html/rfc952 Or we could, if we even want and it works, add Punycode support.
Comments
-
Kivanio Barbosa:
Hi, i tried install v1.1 again. i was using v1.0, so v1.1 works fine. I did remove v1.1, v1.0, apache confs and folders. Than, i tried install v1.1 and it's was freezing again. I seen in console.log one error about "passenger_pane_vhosts" folder, i don't know why but, the install didn't create this folder, so the pane was freezing because it. I just create folder and v1.1 works fine now. Thanks and sorry about my bad english.
Comments
-
Multiple applications with the same hostname. (Moved from LH #2)
0 comments Created 6 months ago by alloyWhen an application that shares the hostname with another application is removed, the hostname should not be removed because the other apps rely on it as well.
The RailsBaseURI support has been scrapped for now because Passenger doesn't support it with settings like RailsEnv per application.
Comments
-
When shelling out, we should use the ruby binary in /System/Library/Frameworks/Ruby.framework/Versions/Current/usr/bin/ruby directly. As people might have changed the symlinks in /usr/bin/ruby. Which is not advisable, but we can work around it.
Comments
-
Right now one has to open the directory the rails app resides in in the Finder, open the prefpane and then drag the folder to the prefpane.
Most of the times you're already in the terminal at the right path, so it would be very convenient if you could do something like:
$ passengerpane .Which would open the pane and add the application.
Comments
-
When I select /Users/ryanbigg/Sites/rboard/public the ServerName defaults to public.local. This should be rboard.local.
Comments
-
With passenger supporting nginx, it being less of a memory hog then apache, plus it being super easy to install on osx (sudo passenger-install-nginx-module)... has there been any thoughts on adding support for it?
The syntax is dead easy:
server { listen 80; server_name www.foo.com; root /webapps/foo/public; # <--- notice the 'public' part passenger_enabled on; # <--- don't forget this! }Cheers,
TysComments
No support for Nginx is planned.
Simply put, we support what we use ourselves, and for development the defaults on the system (Apache) are good enough. However, I can see that some might want to use Nginx, so we will accept patches for it.
HTH
-
v1.3 fails to load on fresh Snow Leopard with built-in Ruby, RubyGems and Passenger 2.2.5
15 comments Created 3 months ago by tddHey there!
So I just lost my beloved pref pane when moving to built-in Ruby thx to my Snow Leopard upgrade (from Leopard).
Here's some diag info:
$ ruby --version ruby 1.8.7 (2008-08-11 patchlevel 72) [universal-darwin10.0]
$ which ruby /usr/bin/ruby
$ passenger-config --version --root 2.2.5
$ passenger-config --root /Library/Ruby/Gems/1.8/gems/passenger-2.2.5
Console output when trying to open the pref pane:
17/09/2009 13:09:57 [0x0-0x2ef2ef].com.apple.systempreferences 2009-09-17 13:09:57.364 System Preferences[31492:903] -[PassengerLoader initWithBundle:]: unrecognized selector sent to instance 0x2e03000
17/09/2009 13:09:57 [0x0-0x2ef2ef].com.apple.systempreferences 2009-09-17 13:09:57.364 System Preferences[31492:903] NSPrefPaneBundle instantiatePrefPaneObject: error occurred during instantiation.What's a developer to do?
Thanks!
Comments
(hmm, I guess GFM doesn't actually handle line breaks all that well)
Just to get this clear; You first installed the recent version (1.3) of the prefpane on Leopard and then upgraded to Snow Leopard, and now it doesn't work anymore?
And which version of 10.6 are you currently on? Because unfortunately with the current info I have no idea how to reproduce this…
You have to be sure Apache is running when you install it or it won't work.
Go to the Sharing pref pane and check the web sharing box before installing. That's what I had to do to get it to work for me.
@alloy i didn't think to record them when it failed. it is quite possible that is a different issue.
@tdd do you remember if web sharing was on when you tried to install
My built-in Apache has been up all the time (as the Web sharing confirms), as I use it all day long.
@samsoffes Damn, too bad, thanks though :)
@tdd Hmm, can you check if you have a RubyCocoa version in /Library/Frameworks and if the md5 of the system RubyCocoa matches mine?
MD5 (/System/Library/Frameworks/RubyCocoa.framework/Versions/Current/RubyCocoa) = 1953a07de6d06710fa410889da9f7abcUgh, apperantly we shouldn't reply to issue emails. Pasting here for good reference:
I match yours in /System/Library, but have another one in /Library. Should I kill the latter?
Thanks!
alloy said 1 day ago: Do you remember when/which version you installed into /Library ? And yes, please check if moving it aside helps.
PS: Are you building the pane yourself from source? Or using the downloaded tarball?
Reply was sent directly to my inbox, instead of this issue:
Hey there,
The lib I had in /Library was RubyCocoa-0.13.2.1-OSX10.4universal according to its Receipts entry. Just moving it aside w/o restarting did not help:
cd /Library mv Frameworks/RubyCocoa.framework /tmp mv Receipts/RubyCocoa-0.13.2.1-OSX10.4universal.pkg /tmpI'm not familiar with the logic of OS X framework loading and have no idea whether rebooting now (after putting my moved libs somewhere else than in /tmp…) would be of any help?
Restarting should not be necessary. One question that was unanswered is whether or not you build the pane from source yourself or if you downloaded the binary?
Oh, sorry. No I got the tarball: whenever I try and build it myself, I get an error at some point (which MIGHT have been due to the RubyCocoa version tweak. I'll try and rake it again now).
W00t, that worked! rake built it right up, and the replacer pane that resulted works a charm. So it seems that the tarball may have an issue? Anyway, in my own situation, it's a fix :-)
Thanks for your help!
-
Disable the 'Open in browser' button when the application is not configured
1 comment Created 2 months ago by tvandervossenThe 'Open in browser' button should be disabled when the current application is not yet configured, or when the value of the address field has been changed.
In other words, the button should be enabled only when the address shown in the text field can actually be opened in the default browser.
Comments
-
Are there any plans to implement the support of MacRuby instead of RubyCocoa after the next update of MacRuby is released?
Comments
Once MacRuby is mature enough, yes, definitely. From the blog post:
The real problem in getting the Passenger preference pane to run in 64-bit mode would be that System Preferences.app wants to use the Objective-C garbage collector. And rightfully so. But the only way to support this easily would be to use MacRuby, which as of yet is not stable enough. But expect the next version of the preference pane to use MacRuby and be a happy 10.6 citizen.
-
The readme references http://www.fngtps.com/files/2/2008/12/PassengerPane-1.3.tgz, which does not exist. The correct URL seems to be:
http://www.fngtps.com/files/2/2009/09/PassengerPane-1.3.tgzComments
-
Restart triggers restart for ALL instances of applications, not just the selected app
2 comments Created 3 months ago by tonycoco -
Something like,
#
log_dir = File.join(@path, 'log')
FileUtils.mkdir(log_dir) unless File.exist?(log_dir)
log_file = self.environment == 0 ? "development.log" : "production.log"
Kernel.system('/usr/bin/open', File.join(log_dir, log_file))
#
That should work to open the logs in Console.app!
Comments
It sounds like an interesting idea. If you have a more elaborate patch, I'd love to look at if this is something we want in. Thanks.
tvandervossen
Mon Nov 09 13:23:54 -0800 2009
| link
This is a feature you would need relatively frequently while you are working on your Rails app so I don’t really see a place for it in the Passenger preference pane. According to the HIG, a "preference should be a setting that the user changes infrequently".
-
Having the pane read from the database.yml of the application file to get the environments (if it is a Rails application) would be beneficial to the people that want to start their app in a custom environment. Also, making that interface element a pop-up selection menu would make more sense. Since, the list would be dynamically generated.
Comments
Can you describe in which situation you would use custom environments and why you would want to run your app in this environment?
jordan-brough
Mon Dec 21 12:46:18 -0800 2009
| link
A couple examples: 1) For development-cached environments 2) Using selenium connected to 'test' environment 3) Connecting to a prod db (or prod db mirror) from a dev machine (e.g., to gather stats or test things out on prod DB w/o having to deploy)
-
Changing path to folder doesn't change <directory> directive
1 comment Created 2 months ago by insane-dreamer(Using 1.3 version on Snow Leopard. Previous versions worked fine.)
Editing the paths to a vhost folder in the pane correctly updates the DocumentRoot in the respective .conf file, but does not properly change the matching < directory > directive. This happened on multiple vhost confs. (I ended up editing them by hand to fix it.)
Comments
-
RackEnv doesn't work for Rails applications
5 comments Created 2 months ago by insane-dreamerThe passenger pref pane now sets the RackEnv option (to indicate production or development), instead of RailsEnv. The RackEnv option doesn't seem to work for Rails applications (at least not mine). Could there be the option to set either one, or both?
Comments
It should theoretically set the appropriate one based on whether or not config/environment.rb exists and it contains Rails::Initializer: http://github.com/alloy/passengerpane/blob/master/app/models/passenger_application.rb#L212
Does yours not contain that maybe?
insane-dreamer
Wed Oct 14 15:51:28 -0700 2009
| link
Yes, my application contains both a config/environment.rb and Rails::Initializer inside of that file. So you're right, it seems your code should detect it. The only thing I can think of (and I haven't checked your code to find out) is whether this is only detected when a new vhost is created, and not when one is edited? In this case, the vhost already existed (had been using it with a previous version of passenger-pane).
It should try to discover it every time, not that that's actually necessary, so I might cache that. But right now I'm clueless as to what the problem could be, so I'll have to have a good look.
I've added RailsEnv production/development to apache config files and it seems to solve the problem.
What about adding RailsEnv automatically?
I know, it's hacky etc, but it just works :)
-
Passenger preference pane does not open on Snow Leopard. It hangs indefinitely.
Comments
Same here, I get the following messages in the console:
09-07-23 9:07:08 PM System Preferences[2458] -[NSCFNumber pathForImageResource:]: unrecognized selector sent to instance 0x151cd690 09-07-23 9:07:08 PM [0x0-0x176176].com.apple.systempreferences 2009-07-23 21:07:08.277 System Preferences[2458:903] -[NSCFNumber pathForImageResource:]: unrecognized selector sent to instance 0x151cd690 09-07-23 9:07:08 PM System Preferences[2458] -[NSCFNumber pathForImageResource:]: unrecognized selector sent to instance 0x151cd690 09-07-23 9:07:08 PM [0x0-0x176176].com.apple.systempreferences 2009-07-23 21:07:08.278 System Preferences[2458:903] -[NSCFNumber pathForImageResource:]: unrecognized selector sent to instance 0x151cd690 09-07-23 9:07:17 PM System Preferences[2458] [NSPrefPaneBundle instantiatePrefPaneObject] (/Users/gianni/Library/PreferencePanes/Passenger.prefPane): should only be called once 09-07-23 9:07:17 PM [0x0-0x176176].com.apple.systempreferences 2009-07-23 21:07:17.865 System Preferences[2458:903] [NSPrefPaneBundle instantiatePrefPaneObject] (/Users/gianni/Library/PreferencePanes/Passenger.prefPane): should only be called once 09-07-23 9:07:18 PM System Preferences[2458] PrefPanePassenger#willSelect: NoMethodError: undefined method `subviews' for nil:NilClass 09-07-23 9:07:18 PM [0x0-0x176176].com.apple.systempreferences 2009-07-23 21:07:18.260 System Preferences[2458:903] PrefPanePassenger#willSelect: NoMethodError: undefined method `subviews' for nil:NilClass 09-07-23 9:07:18 PM [0x0-0x176176].com.apple.systempreferences /Users/gianni/Library/PreferencePanes/Passenger.prefPane/Contents/Resources/PassengerPref.rb:253:in `setup_passenger_warning!' 09-07-23 9:07:18 PM [0x0-0x176176].com.apple.systempreferences /Users/gianni/Library/PreferencePanes/Passenger.prefPane/Contents/Resources/PassengerPref.rb:52:in `willSelect' 09-07-23 9:07:18 PM [0x0-0x176176].com.apple.systempreferences /Users/gianni/Library/PreferencePanes/Passenger.prefPane/Contents/Resources/PassengerPref.rb:253 09-07-23 9:07:18 PM System Preferences[2458] undefined method `subviews' for nil:NilClass 09-07-23 9:07:18 PM [0x0-0x176176].com.apple.systempreferences 2009-07-23 21:07:18.262 System Preferences[2458:903] undefined method `subviews' for nil:NilClass
gabrielrinaldi
Fri Jul 24 06:25:40 -0700 2009
| link
You can fix this by installing RubyCocoa. You have to download it and fix the info.plist to make it install on SL.
Bah, I'm having separate issues with Passenger on SL anyways. Something about dlopen and a compiled bundle.
gianni, uninstall and re-install the passenger gem - it needs to be recompiled against 64-bit ruby and there's a native component that only compiles when you install the gem (I wound up recompiling my hand-built ruby and all my native gems, but I'm not sure you need to go that far.)
I'm getting this freezing on Snow Leopard as well. I tried to install RubyCocoa but it won't let me even install it via the DMG file (it puts a ! on the drive and won't let you continue during the install), so that is a no go. I also re-installed passenger via the gem and the preference pane still doesn't work.
jfernandez
Fri Aug 28 20:46:44 -0700 2009
| link
Somebody mentioned that you have to modify the DMG installer plist for Snow Leopard... yet they didn't mention what to do --- I've already googled all over the place and cant find anything yet.
gabrielrinaldi
Fri Aug 28 21:00:16 -0700 2009
| link
You need to download RubyCocoa, copy the RubyCocoa-0.13.2-OSX10.5universal.pkg to your Desktop, right click it and choose Show Packages Contents. Then you open contents and on the Info.plist and inside IFRequirementDicts change versions to reflect Snow Leopard. That is all. After that passenger pane will work great!
jfernandez
Fri Aug 28 21:09:23 -0700 2009
| link
Figured it out, see my blog post about it: http://tiny.cc/yo1qK
@jfernandez I followed your directions and got RubyCocoa installed. Thanks! Then I uninstalled the passenger gem and attempted to reinstall the passenger gem and got:
ERROR: Error installing passenger:
ERROR: Failed to build gem native extension./System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby extconf.rb mkmf.rb can't find header files for ruby at /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/ruby.h
Gem files will remain installed in /Library/Ruby/Gems/1.8/gems/passenger-2.2.4 for inspection.
Results logged to /Library/Ruby/Gems/1.8/gems/passenger-2.2.4/ext/phusion_passenger/gem_make.outDid you run into this? Any idea how to resolve this? Any help is appreciated.
@shanebo, it means you don't have the Ruby headers. You have to re-install Xcode.
@jrfernandez: The blog post helped me get the preference pane to open again, but now my problem seems to be I can't reach any of the local domains I've set up in it.
Update: I had to delete and re-add all of my projects in the preference pane, but they do come up in the browser now.
jfernandez
Sat Aug 29 13:15:46 -0700 2009
| link
Run the passenger apache installer again and setup the passenger conf (snow leopard nukes your httpd.conf)
@jfernandez I did. Here's what I've installed since the Snow Leopard install.
RubyCocoa 13.2 > xcode > passenger 2.2.4 > apache2 module along with the 3 config lines in the conf > passenger pref pane 1.2
All my existing vhosts do exist but can't access them via localhost. I've fired up a ramaze app via terminal to make sure it's not a ruby and/or ramaze issue and all is good in that regard so it must be a passenger problem... Any other ideas?
plainprogrammer
Sun Aug 30 18:59:33 -0700 2009
| link
Just cloned the project and brought it up in XCode 3.2 on Snow Leopard. Built with default options that came up: OS X 10.5 | Debug | i386
Got the following mess in Console upon putting it into System Preferences:
8/30/09 8:54:44 PM System Preferences[9951] -[NSCFNumber pathForImageResource:]: unrecognized selector sent to instance 0x15993f70 8/30/09 8:54:44 PM [0x0-0xce0ce].com.apple.systempreferences 2009-08-30 20:54:44.373 System Preferences[9951:903] -[NSCFNumber pathForImageResource:]: unrecognized selector sent to instance 0x15993f70 8/30/09 8:54:49 PM System Preferences[9951] [NSPrefPaneBundle instantiatePrefPaneObject] (/Users/jamesthompson/Library/PreferencePanes/Passenger.prefPane): should only be called once 8/30/09 8:54:49 PM [0x0-0xce0ce].com.apple.systempreferences 2009-08-30 20:54:49.753 System Preferences[9951:903] [NSPrefPaneBundle instantiatePrefPaneObject] (/Users/jamesthompson/Library/PreferencePanes/Passenger.prefPane): should only be called once 8/30/09 8:54:49 PM System Preferences[9951] PrefPanePassenger#willSelect: NoMethodError: undefined method `subviews' for nil:NilClass 8/30/09 8:54:49 PM [0x0-0xce0ce].com.apple.systempreferences 2009-08-30 20:54:49.818 System Preferences[9951:903] PrefPanePassenger#willSelect: NoMethodError: undefined method `subviews' for nil:NilClass 8/30/09 8:54:49 PM [0x0-0xce0ce].com.apple.systempreferences /Users/jamesthompson/Library/PreferencePanes/Passenger.prefPane/Contents/Resources/PassengerPref.rb:253:in `setup_passenger_warning!' 8/30/09 8:54:49 PM [0x0-0xce0ce].com.apple.systempreferences /Users/jamesthompson/Library/PreferencePanes/Passenger.prefPane/Contents/Resources/PassengerPref.rb:52:in `willSelect' 8/30/09 8:54:49 PM System Preferences[9951] undefined method `subviews' for nil:NilClass 8/30/09 8:54:49 PM [0x0-0xce0ce].com.apple.systempreferences 2009-08-30 20:54:49.819 System Preferences[9951:903] undefined method `subviews' for nil:NilClassI tried fiddling with the build a bit, moving it to use 10.6 SDK, and x86_64 architecture and the errors change to being concerned with garbage collection. So there may be a number of issues at work in getting this working on Snow Leopard.
I'm getting a different error, but from the same method:
PrefPanePassenger#willSelect: NoMethodError: undefined method `hidden=' for nil:NilClass /Library/PreferencePanes/Passenger.prefPane/Contents/Resources/PassengerPref.rb:250:in `setup_passenger_warning!' /Library/PreferencePanes/Passenger.prefPane/Contents/Resources/PassengerPref.rb:52:in `willSelect'No worries people, we know about the problem and we will fix it. Eloy has been under the weather an didn't have time to look at it yet. Please hang in there for a while. In the meantime patches are always welcome.
-
When I try to start PassengerPane it just hangs, with "Loading Passenger... (32-bit)" in the title bar. This is the console output:
9/23/09 11:44:44 AM System Preferences[83845] PrefPanePassenger#willSelect: NoMethodError: undefined method 'hidden=' for nil:NilClass 9/23/09 11:44:44 AM [0x0-0x4b84b8].com.apple.systempreferences 2009-09-23 11:44:44.477 System Preferences[83845:903] PrefPanePassenger#willSelect: NoMethodError: undefined method 'hidden=' for nil:NilClass<br/> 9/23/09 11:44:44 AM [0x0-0x4b84b8].com.apple.systempreferences /Library/PreferencePanes/Passenger.prefPane/Contents/Resources/PassengerPref.rb:250:in 'setup_passenger_warning!'<br/> 9/23/09 11:44:44 AM [0x0-0x4b84b8].com.apple.systempreferences /Library/PreferencePanes/Passenger.prefPane/Contents/Resources/PassengerPref.rb:52:in 'willSelect'<br/> 9/23/09 11:44:44 AM [0x0-0x4b84b8].com.apple.systempreferences /Library/PreferencePanes/Passenger.prefPane/Contents/Resources/PassengerPref.rb:250Comments
Could you please check if, for instance, this ticket helps you out?
http://github.com/alloy/passengerpane/issues/closed#issue/17
karmajunkie
Wed Sep 23 10:49:19 -0700 2009
| link
Sadly, no help there... I tried building from source and it still hangs with the same messages in Console.
And /Library/Frameworks/RubyCocoa.framework doesn't exist for you either?
Also, what is your environment exactly?
karmajunkie
Wed Sep 23 10:57:15 -0700 2009
| link
Nope, no RubyCocoa in /Library/Frameworks either.
/usr/bin/ruby -v: ruby 1.8.7 (2008-08-11 patchlevel 72) [universal-darwin10.0]passenger-config --version --root: 2.2.5passenger-config --root /Library/Ruby/Gems/1.8/gems/passenger-2.2.5Any other debug files or anything I should post?
Yes, on which OS X version are you exactly?
And just to be sure, could you check
~/Library/Frameworksas well?
karmajunkie
Wed Sep 23 12:30:44 -0700 2009
| link
Yeah, I guess my OS version would be important to know. :) I'm running 10.6.1. Also using Xcode 3.2, build 1610, and I don't have anything in ~/Library/Frameworks either.
karmajunkie
Wed Sep 23 12:42:50 -0700 2009
| link
I do have a version of RubyCocoa installed in /System/Library/RubyCocoa.framework, it seems. Could this be the culprit?
karmajunkie
Wed Sep 23 13:52:13 -0700 2009
| link
I temporarily removed the version of RubyCocoa in /System/Library/Frameworks and reinstalled passengerpane, to no avail. the prefpane still stalls out whenever I try to load it.
No, the /System/Library/RubyCocoa.framework one comes with OS X and shouldn't be the problem. Don't forget to place it back :)
In case you upgraded from Leopard and had an older version of the pane installed, could you check if the old version might be in ~/Library/PreferencePanes whereas the new version would be in /Library/PreferencePanes?
Otherwise, I'm a bit at a loss on how to further debug this as I can't recreate the issue as of yet…
I have seem to have the same issue described by karmajunkie. RubyCocoa.framework is neither /Library/Frameworks or ~/Library/Frameworks and I don't have any old version of the PrefPane instaled, I also tried to build from source unsuccessfully. Maybe you can use this system.log console output
Nov 5 14:03:41 Sol [0x0-0x100100].com.apple.systempreferences[0]: Thu Nov 5 14:03:41 Sol.local System Preferences[2322] <Error>: kCGErrorIllegalArgument: CGSDeviceCreate: Invalid window Nov 5 14:03:41 Sol [0x0-0x100100].com.apple.systempreferences[0]: Thu Nov 5 14:03:41 Sol.local System Preferences[2322] <Error>: Failed to create window context device Nov 5 14:03:41 Sol [0x0-0x100100].com.apple.systempreferences[0]: Thu Nov 5 14:03:41 Sol.local System Preferences[2322] <Error>: CGWindowContextCreate: failed to create context delegate. Nov 5 14:03:41 Sol [0x0-0x100100].com.apple.systempreferences[0]: 2009-11-05 14:03:41.174 System Preferences[2322:903] _initWithWindowNumber: error creating graphics ctxt object for ctxt:0x19d27, window:0x0 Nov 5 14:03:41 Sol [0x0-0x100100].com.apple.systempreferences[0]: 2009-11-05 14:03:41.174 System Preferences[2322:903] CGPixelAccessLock failed! Nov 5 14:03:41 Sol System Preferences[2322]: kCGErrorIllegalArgument: CGSDeviceCreate: Invalid window Nov 5 14:03:41 Sol System Preferences[2322]: Failed to create window context device Nov 5 14:03:41 Sol System Preferences[2322]: CGWindowContextCreate: failed to create context delegate. Nov 5 14:03:41 Sol System Preferences[2322]: _initWithWindowNumber: error creating graphics ctxt object for ctxt:0x19d27, window:0x0 Nov 5 14:03:41 Sol System Preferences[2322]: CGPixelAccessLock failed!I'm running 10.6.1, and passengerpane v1.3
When did you build from source, today? If so, can you give me details on what failed?
If you didn't build with the source of today, could you give it a try?
@jsmestad Did you build from source or install a release version?
I just tried again to re-build and install from the latest source and it now works like a charm thanks!
-
Can't find Phusion Passenger Apache module
2 comments Created about 1 month ago by sdhullJust installed Phusion Passenger and the prefpane on my new MBP running Snow Leopard (10.6.2).
Edit:
Well I tried to attach a screenshot so everyone could see exactly what the problem was, but for some reason it doesn't seem to be up anymore.Anyway I can run passenger-config --version and it says "2.2.7"
But when I open the Passenger prefpane, it says:
"Can’t find the Phusion Passenger Apache module. Visit http://www.modrails.com for installation instructions."A little help would be greatly appreciated.
Edit2: I'm guessing I might need to rebuild RubyCocoa (since I'm using Ruby EE, which is obviously not the ruby "that shipped with OSX"). So I'll try that now and report back.
-Steve
Comments
OK well I have now tried everything that might help.
I rebuilt Ruby EE with the compiler flag of "enable-shared" so that RubyCocoa will work. Then I tried installing RubyCocoa from dmg, then I built RubyCocoa from source. Then I reinstalled Passenger prefPane. Then I reinstalled Passenger itself. Then I reinstalled the prefPane again.
No luck. It still says "Can’t find the Phusion Passenger Apache module. Visit http://www.modrails.com for installation instructions."
When I go to my projectname.local it just says "It works!" This is fairly ironic because it is clearly NOT working. :(
-
Hi there, I know it's not precisely to do with passengerpane, but I'm wondering if anyone has had experience using it with SSL? I haven't been able to find any good instructions on enabling SSL on osx while still being able to use passengerpane. Do you have any clues on the matter? :D
Cheers,
Brendon
Comments
Moved from Lighthouse:
Bryan Liles: “It would be nice if passenger helped with ssl setup. SSL requires unique IPs, so you have to create aliased interfaces as well.”
@Brendon: You should configure apache and the vhost as normal. The only thing the pane currently does to assist you is allowing you to drag the app from the source list to your text editor to be able to easily edit the vhost. This might change in the future.
Thanks Alloy :) You're right, it's quite an involved process on Leopard (though simpler than it used to be I understand). I managed to find some reasonable documentation here: http://raibledesigns.com/rd/entry/apache_2_on_os_x. And yes, if you want to have more than one host you need to do the IP address aliases. Luckily I only needed the one host :)
I'm having problem with ssl too. I've configured my Apache using these instructions: http://superuser.com/questions/73979/how-to-easily-create-a-ssl-certificate-and-configure-it-in-apache2-in-mac-os-x - SSL seems to work (because browser asked to confirm certificate), but when I try to access an https page, it returns "404 Not Found"
-
I tried installing PassengerPane 1.3 into a fresh upgrade of Snow Leopard on top of a virgin Leopard install of a new Macbook Pro, and during the System Preferences install I get a 'Preferences Error. Could not load Passenger preference pane.'
Looking at the Console.app output, I see the following error:
9/7/09 3:40:39 PM System Preferences[10732] NSPrefPaneBundle instantiatePrefPaneObject: principalClass is nil.
9/7/09 3:40:39 PM [0x0-0x3d23d2].com.apple.systempreferences 2009-09-07 15:40:39.915 System Preferences[10732:903] NSPrefPaneBundle instantiatePrefPaneObject: principalClass is nil.FWIW, I'm actually running versions of ruby & Rails from /usr/local and my passenger install is in usr/local/lib/ruby/gems/1.8/gems/passenger-2.2.5/
Comments
Oh wow, that's nasty. Unfortunately it's such a general error. This basically just means; for some reason during load something went wrong and now the main Class is nil.
I don't think that your custom Ruby and passenger could be the problem. (Unless you removed the system Ruby?) But you could establish that by temporarily removing your custom Ruby from your PATH to see if that makes any difference.
Because this is too hard to debug remotely any further, I'd like to ask you to debug this a bit more. See if you can track down to which part of the source it does actually load.
Thanks
I'd walked away from this for a while, and when I went to check out the preference pane again just now, it magically started working again. I don't think I made any changes to my rails/ruby/apache setup that might have fixed it though. Mac OS 10.6.1 came out, but it's unclear if that's related.
Either way. It's working again now.
-
Need to open two times system preferences before PassengerPrefPane
1 comment Created 3 months ago by perseiEverytime that I open the PassengerPrefPane the System Preferences app displays a warning message "System Preference must be restarted to open Passenger Pref Pane"
Comments
This is because the pref pane is still a 32 bit version, as noted in the blog post: http://www.fngtps.com/2009/09/new-os-more-pane-passenger-preference-pane-v1-3
-
How can I share my passenger urls over web sharing. I'm working with someone on a webapp and I'd like them to be able to view it on their computer before it worked. They would put in my local ip (192.168.0.135:3000) and they could view the app. Is that possible now with passenger somehow? Thanks so much!!!
Comments
At the moment there’s no automated way to do this.
You can, however, edit the other persons /etc/hosts or Host database (man dscl or in the pane source) to point host.local to your machines IP. This works good if you're working on one project for a fair amount of time.
Alternatively you can use the patches in this repo to add bonjour support: http://github.com/kastner/passengerpane
HTH
-
Application always run in production mode
0 comments Created 19 days ago by pdegenportnoyI have a Radiant application that always is run in production mode. I've selected the Run in: Development option, which generates the following vhost.conf file:
ServerName radiant-test.local ServerAlias radiant.local DocumentRoot "/Users/user_name/src/test/radiant_test/public" RackEnv developmentOrder allow,deny Allow from allHowever, the application is nonetheless run in production mode. The output is going to the production.log and the production database is receiving all the editing changes.
This is a new install of Passenger (gem install, version 2.2.8) with the 1.3 version of PassengerPane having followed the instructions at http://wiki.github.com/radiant/radiant/installing-on-mac-os.
>Researching this issue, I saw a closed defect (#24) that seemed similar. One notes that Radiant has a config/environment.rb file, but uses a Radiant::Initializer block, not a Rails::Initializer block. Also, manually changing RackEnv to RailsEnv or just adding a "RailsEnv development" line to the vhost.conf file did not change the behavior.
Comments





Hrmm, it seems as if your system RubyCocoa is a bit messed up… Could you see if Ruby is able to load it at all like so?
Nope :(
I'm at a loss for how this could have happened. Should I just reinstall RubyCocoa and see what happens?
I think you still have an installed RubyCocoa which remains after an upgrade :-/
Can you remove:
1. /Library/Frameworks/RubyCocoa.framework
2. /Library/Ruby/Site/1.8/universal-darwin10.0/rubycocoa.bundle
This should make it pick up the system one again. I hope ;-)
that's the confusing part... I didn't do an upgrade. I did a fresh install then manually migrated my homedir.
At any rate, your suggestion did the trick. Deleted those files, and all is well. Thanks :)
Oh my, that is interesting indeed. But I have no other explanations up my sleeve :)
Glad to hear it works now though!