Welcome Guest | Login

Mephisto 'Admin' section died for all of my sites. Fresh mephisto installs also

The 'sitename/admin' section for all of my sites have died. I am running mephisto 0.7.3, following the hostingrails mephisto guide for all of my installs: http://www.hostingrails.com/forums/wiki_thread/29

The public-facing pages seem normal. Only the /admin section has become broken.

I tried backing up and reinstalling my mephisto install on one of my sites. I ended up getting an error on the db bootstrapping portion. After doing the following, the rake went through:

1. Fix rake
http://groups.google.com/group/MephistoBlog/browse_thread/thread/286e077b6c49a3b9/f7ab85859dbf7955?lnk=gst&q=undefined+method+%60reset_application!%27+for+class+%60Class%27#f7ab85859dbf7955)

$ cd appDirectory
$ rake rails:freeze:edge REVISION=7472
$ ./script/plugin install http://dev.rubyonrails.org/svn/rails/plugins/acts_as_list/
$ rake db:bootstrap RAILS_ENV=production
(see socket error)

2. Point to apparently misplaced mysql socket

in siteName/config/database.yml

add line "socket: /var/lib/mysqlsock/mysql.sock"


Interesting is that I've never needed to perform the above in previous installs.

The mephisto site public-facing portion works, but again, the admin is broke even after a fresh install.

Im starting to think this problem is out of my hands... any advice?

2008-01-07 12:20 AM

Hi  - We have made a few changes in the MySQL server configuration on the server. We need to give new path for the MySQL socket in your apps (datbase.yml) as

-------------------------------
socket: /var/lib/mysqlsock/mysql.sock
-------------------------------

If you are still having issues after making the changes, please post a ticket to the support team with the URL . Also please ensure that you are checking your logs for errors if any. Thank you.

2008-01-07 01:37 AM

HostingRails Support
Kumar,

Thanks for the support. I actually added the socket change to my database.yml (see step 2 above).

I think the mysql changes may have had broader implications for mephisto installers. As I mentioned, the admin backend no longer works even on fresh installs (so the hostingrails wiki guide may now need revision). I'll open a ticket with support.

Thanks!

2008-01-07 01:16 PM

Hi everyone, any resolution to this?  I have the same problem, and have tried the same solutions.

running dispatch.fcgi or script/about gives the following error:


/usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `gem_original_require': no such file to load -- #{RAILS_ROOT}/actionpack/lib/action_controller/dispatcher (MissingSourceFile)
       from /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `require'
       from /home/marissa/beta/vendor/rails/activerecord/lib/../../activesupport/lib/active_support/dependencies.rb:495:in `require'
       from /home/marissa/beta/vendor/rails/activerecord/lib/../../activesupport/lib/active_support/dependencies.rb:342:in `new_constants_in'
       from /home/marissa/beta/vendor/rails/activerecord/lib/../../activesupport/lib/active_support/dependencies.rb:495:in `require'
       from /home/marissa/beta/config/environment.rb:43
       from /home/marissa/beta/vendor/rails/railties/lib/commands/about.rb:1:in `require'
       from /home/marissa/beta/vendor/rails/railties/lib/commands/about.rb:1
       from ./script/about:3:in `require'
       from ./script/about:3

2008-01-31 11:22 AM

We'll investigate this further, if you could post a tiocket with us. We need more specific details that'll include your user name relevant URLs etc. I couldn't apparently replicate the problem looking through your account.  

2008-01-31 12:05 PM

Thanks, I posted a support ticket.

FYI, I am also trying a fresh mephisto install with mephisto/trunk and a frozen rails edge.

Just like the OP, I also get to the point where I try to rake db:bootstrap, and cannot do so. I have the correct socket line in the freshly install'd database.yml.

rake versions, database connections...?

2008-01-31 12:45 PM

I just edited the Wiki on this (and am currently performing a fresh Mephisto install).

The problem has to do with rails versioning, presumably running 2.0.2 on hostingrails (?) Mephisto needs 1.2.6.

The fix is simple: freeze rails

> cd /mephistoapp
> rake rails:freeze:edge TAG=rel_1-2-6
Also, don't forget to set your socket in database.yml

socket: /var/lib/mysqlsock/mysql.sock

2008-02-05 10:24 PM

I'm having the same problems.  I've frozen against Rails 1.2.6 - but I still got the socket error:

Can't connect to local MySQL server through socket '/var/lib/mysqlsock/mysql.sock' (2)

I've not been able to run the 'rake db:bootstrap' either.  BTW, will doing this "wipe" my db clean?

Kit

2008-03-01 03:22 PM

>Can't connect to local MySQL server through socket >'/var/lib/mysqlsock/mysql.sock'

This was the wrong path of mysql socket file on your specific server. I have modified the socket entry in your database.yml file to '/var/lib/mysql/mysql.sock'.

Now try running 'rake db:bootstrap' and let us know if you have any other issue.

2008-03-01 04:10 PM

Regards,
Rahul
Argh.  It is not a new install...so I have not desire to bootstrap the db.  But, now I'm getting an error from Mephisto:

Processing AccountController#login (for 69.136.125.166 at 2008-03-01 17:45:31) [GET]
 Session ID: 44f93df26d9eef0c4a8b329b6186eed6
 Parameters: {"action"=>"login", "controller"=>"account"}
Rendering template within layouts/simple
Rendering account/login


ActionView::TemplateError (undefined method `[]' for :account:Symbol) on line #2 of app/views/account/login.rhtml:
1: <div class="little-box">
2: <% form_tag({:controller=>:account, :action=>:login}, { :id => 'login_form' }) do -%>
3:   <dl>
4:     <dt><%= label_tag 'login', 'Login' %></dt>
5:     <dd><%= text_field_tag 'login', params[:login], :class => 'big' %></dd>

   vendor/rails/actionpack/lib/action_controller/routing.rb:1332:in `generate'
   vendor/rails/actionpack/lib/action_controller/url_rewriter.rb:124:in `rewrite_path'
   vendor/rails/actionpack/lib/action_controller/url_rewriter.rb:103:in `rewrite_url'
   vendor/rails/actionpack/lib/action_controller/url_rewriter.rb:81:in `rewrite'
   vendor/rails/actionpack/lib/action_controller/base.rb:598:in `url_for'

...

What a pisser.  It was working fine.

2008-03-01 05:49 PM

The rails version you tried to freeze was incorrect. I removed it and froze the correct version of rails. I also edited the environment.rb accordingly and now it seems to be working fine. Please check and confirm.

2008-03-01 06:19 PM

Regards,
Rahul
Yeppir.  Cheers mate.  Curious, I froze the version mentioned on the Wiki...didn't I?

2008-03-01 10:23 PM

The version you froze was 1.2.5 while the correct version that should be used is 1.2.6

2008-03-02 01:09 PM

Regards,
Rahul
Hmmn, must've just been a typo.

Well, I blogged my appreciation...thanks again.
http://www.blackholelogic.com/2008/3/2/hostingrails-com-goodservice

Kit

2008-03-02 02:26 PM


Hello Guest! In order to post you must be an active client with us, please log in or sign up.