Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FATAL: Ident authentication failed for user "name" #52

Closed
kathgironpe opened this issue Sep 4, 2012 · 3 comments
Closed

FATAL: Ident authentication failed for user "name" #52

kathgironpe opened this issue Sep 4, 2012 · 3 comments

Comments

@kathgironpe
Copy link

Need help debugging some issue. I have this config for a Rails 3.2.8 app:

require 'mina/bundler'
require 'mina/rails'
require 'mina/git'

set :user, 'user'
set :domain, 'somedomain.com'
set :deploy_to, "/home/#{user}/public_html/#{domain}"
set :repository,""

desc "Deploys the current version to the server."
task :deploy do
  deploy do
    # Put things that will set up an empty directory into a fully set-up
    # instance of your project.
    invoke :'git:clone'
    invoke :'bundle:install'
    invoke :'rails:db_migrate'
    invoke :'rails:assets_precompile'

    to :launch do
      queue "ln -nfs #{shared_path}/config/database.yml #{release_path}/config/database.yml"
      queue 'touch tmp/restart.txt'
    end
  end
end

Bundle install task is working.
rails:db_migrate and rails:assets_precompile give me this error:

FATAL:  Ident authentication failed for user "katherine"

Issue: My local user name is "katherine" but I specfically set :user to something else which is the username for the server
Why am I getting that error? I also don't have that username in any config file in the production server.

Other info: I do not use RVM. I have a capistrano config file that is working just fine with this line:

require 'bundler/capistrano'

Any help would be greatly appreciated.

@kathgironpe
Copy link
Author

Solved my problem. It was an issue with symbolic linking a file which did not exist!

@rstacruz
Copy link
Member

rstacruz commented Sep 4, 2012

Yo Kat! Great to know you got to fix the problem. I'm curious though (and I'm also asking for the benefit of whoever finds this through Google): what was the exact issue?

@kathgironpe
Copy link
Author

@rstacruz The error is apparently a PostgreSQL connection error. I had to revise a bit to make sure the config/database.yml is correct. And on git, the database.yml could should be ignored. ln -s dir/config/database.yml current_path/config/database.yml makes sense and I had that but what went wrong is symbolic linking didn't work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants