2017-05-31 3 views
1

Ich versuche, eine Schieneanwendung auf Digital-Ozean mit Capistrano zu setzen und ich habe harte Zeiten. Ich erhalte dieseSchienen, Capistrano, bitbucket, Erlaubnis verweigert (publickey)

00:00 git:check 
    01 git ls-remote [email protected]:paaggeli/mutetale.git HEAD 
    01 Permission denied (publickey). 
    01 fatal: Could not read from remote repository. 
    01 
    01 Please make sure you have the correct access rights 
    01 and the repository exists. 
(Backtrace restricted to imported tasks) 
cap aborted! 
SSHKit::Runner::ExecuteError: Exception while executing on host 
46.101.112.45: Exception while executing on host 46.101.112.45: git exit status: 128 
git stdout: Nothing written 
git stderr: Permission denied (publickey). 
fatal: Could not read from remote repository. 

Please make sure you have the correct access rights 
and the repository exists. 

SSHKit::Runner::ExecuteError: Exception while executing on host 46.101.112.45: git exit status: 128 
git stdout: Nothing written 
git stderr: Permission denied (publickey). 
fatal: Could not read from remote repository. 

Please make sure you have the correct access rights 
and the repository exists. 

SSHKit::Command::Failed: git exit status: 128 
git stdout: Nothing written 
git stderr: Permission denied (publickey). 
fatal: Could not read from remote repository. 

Please make sure you have the correct access rights 
and the repository exists. 

Tasks: TOP => deploy:initial 
(See full trace by running task with --trace) 
The deploy has failed with an error: Exception while executing on host 46.101.112.45: Exception while executing on host 46.101.112.45: git exit status: 128 
git stdout: Nothing written 
git stderr: Permission denied (publickey). 
fatal: Could not read from remote repository. 

Please make sure you have the correct access rights 
and the repository exists. 

capistrano.log Datei

DEBUG Uploading /tmp/git-ssh-mutetale-production-ubuntu.sh 0.0% 

INFO Uploading /tmp/git-ssh-mutetale-production-ubuntu.sh 100.0% 

INFO [1baad1b1] Running /usr/bin/env chmod 700 /tmp/git-ssh-mutetale-production-ubuntu.sh on 46.101.112.45 

DEBUG [1baad1b1] Command: (export RBENV_ROOT="$HOME/.rbenv" RBENV_VERSION="2.4.1" ; /usr/bin/env chmod 700 /tmp/git-ssh-mutetale-production-ubuntu.sh) 

INFO [1baad1b1] Finished in 0.156 seconds with exit status 0 (successful). 

INFO [2cd1c0fa] Running /usr/bin/env git ls-remote [email protected]:paaggeli/mutetale.git HEAD on 46.101.112.45 

DEBUG [2cd1c0fa] Command: (export RBENV_ROOT="$HOME/.rbenv" RBENV_VERSION="2.4.1" GIT_ASKPASS="/bin/echo" GIT_SSH="/tmp/git-ssh-mutetale-production-ubuntu.sh" ; /usr/bin/env git ls-remote [email protected]:paaggeli/mutetale.git HEAD) 

DEBUG [2cd1c0fa]  Permission denied (publickey). 

DEBUG [2cd1c0fa]  fatal: Could not read from remote repository. 



Please make sure you have the correct access rights 

and the repository exists. 

Lauf ssh -T [email protected] auf den Server zurückgibt:

in als paaggeli angemeldet.

Sie können git oder hg verwenden, um eine Verbindung zu Bitbucket herzustellen. Shell-Zugriff ist deaktiviert.

Bitte helfen Sie mir

+0

Haben Sie den gleichen Fehler heute. Aber bei '00: 21 bundler: install 'diesen Punkt wurde abgebrochen. ziemlich genau dasselbe Fehlerprotokoll. –

+0

Das Hinzufügen von Swap-Speicher hat mein Problem gelöst. Wenn möglich, versuchen Sie, Ihren Server zu aktualisieren –

+0

Vielen Dank für Ihre Antwort @AkashPinnaka, aber ich habe immer noch den gleichen Fehler –

Antwort

0

Ihre git Zugang zu kontrollieren und sicherzustellen, dass der Benutzer Ihre Capistrano den Repo geklont wird mit Lesezugriff hat.

  1. Führen Sie die ssh-keygen-Prozedur auf Ihrem Server aus.
  2. Klicken Sie oben rechts auf einer beliebigen GitHub-Seite auf Ihr Profilfoto.
  3. Klicken Sie auf Ihrer Profilseite auf die Registerkarte Repositorys und dann auf den Namen Ihres Repositorys.
  4. Registerkarte Einstellungen Klicken Sie in der rechten Seitenleiste Ihres Repositorys auf Einstellungen.
  5. Klicken Sie in der Seitenleiste auf Schlüssel bereitstellen.
  6. Klicken Sie auf Bereitstellungsschlüssel hinzufügen. Fügen Sie Ihren öffentlichen Schlüssel ein und senden Sie ihn.

https://developer.github.com/v3/guides/managing-deploy-keys/#setup-2

+0

Wie kann ich das tun? –

+0

Die Antwort wurde mit Anweisungen zum Hinzufügen eines Bereitstellungsschlüssels aktualisiert. –

+0

Ich benutze bitbucket und habe den öffentlichen Schlüssel hinzugefügt. Immer noch den gleichen Fehler. Vielen Dank für Ihre Antwort. –