# Initial deployment trouble

**URL:** <https://www.ruby-forum.com/t/initial-deployment-trouble/98011>\
**Category:** Engines\
**Created:** [July 11, 2006, 11:44pm UTC](https://www.ruby-forum.com/t/initial-deployment-trouble/98011 "2006-07-11T23:44:35Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![hatless](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/h/848f3c/32.png) [@hatless](https://www.ruby-forum.com/u/hatless)\
**Post date:** [July 11, 2006, 11:44pm UTC](https://www.ruby-forum.com/t/initial-deployment-trouble/98011/1 "2006-07-11T23:44:35Z")

</div>

I have a Rails 1.1.2 app that’s far along in development using  
LoginEngine and UserEngine. The engines were installed on the  
development box early on.

Now when I deploy to a fresh machine I get this:

$ rake db:migrate:engines  
(in /usr/local/www/rails-apps/flhp/releases/20060711210158)  
rake aborted!  
Mysql::Error: Table ‘flhp\_production.permissions’ doesn’t exist: SHOW  
FIELDS FROM permissions

(See full trace by running task with --trace)  
-bash-2.05b$

* * *

It’s as though the app is telling me I need UserEngine working properly  
in order to install UserEngine. I’ve tried a few of the other rake  
tasks, both the 1.0 names and the 1.1 ones with the same error.

---

<div class="post-metadata">

**Author:** ![hatless](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/h/848f3c/32.png) [@hatless](https://www.ruby-forum.com/u/hatless)\
**Post date:** [July 12, 2006, 12:05am UTC](https://www.ruby-forum.com/t/initial-deployment-trouble/98011/2 "2006-07-12T00:05:52Z")

</div>

Aha! Figured it out. I had Permissions.sync in my environment.rb. Which  
was very convenient, but of course it would create this sort of  
chicken-or-egg problem.

Funny how you can spend an hour or two trying all sorts of things to  
debug something and then figure it out ten minutes after posting to a  
mailing list.

Steve K. wrote:

> I have a Rails 1.1.2 app that’s far along in development using  
> LoginEngine and UserEngine. The engines were installed on the  
> development box early on.
> 
> Now when I deploy to a fresh machine I get this:
> 
> $ rake db:migrate:engines  
> (in /usr/local/www/rails-apps/flhp/releases/20060711210158)  
> rake aborted!  
> Mysql::Error: Table ‘flhp\_production.permissions’ doesn’t exist: SHOW  
> FIELDS FROM permissions
> 
> (See full trace by running task with --trace)  
> -bash-2.05b$
> 
> * * *
> 
> It’s as though the app is telling me I need UserEngine working properly  
> in order to install UserEngine. I’ve tried a few of the other rake  
> tasks, both the 1.0 names and the 1.1 ones with the same error.

---

<div class="post-metadata">

**Author:** ![hatless](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/h/848f3c/32.png) [@hatless](https://www.ruby-forum.com/u/hatless)\
**Post date:** [September 7, 2006, 2:08pm UTC](https://www.ruby-forum.com/t/initial-deployment-trouble/98011/3 "2006-09-07T14:08:53Z")

</div>

Nice site!  
[My homepage](http://orrimqmd.com/pnqa/gzgd.html) | [Please visit](http://maaddxln.com/tpoh/uaym.html)
