Forge AWS坚持供应" ERROR:role" forge"已存在"

时间:2017-04-10 16:50:31

标签: amazon-web-services laravel-forge

我试图在this教程

之后在锻造和AWS上创建服务器

在我的第一次尝试中,我被困在配置超过20分钟,所以我决定删除它并再试一次。

现在当我在SSH中执行来自Forge的代码进入aws时,我收到错误

"错误:角色"伪造"已存在"但是,我实际上并没有指定"伪造"我所知道的任何地方

我也被要求覆盖我的ssh密钥,我已经尝试了是和否,我仍然陷入相同的服务器配置。

任何人都知道该怎么办?真的想把我的代码投入生产: - )

编辑:这是正在进行的工作,将根据需要更新

current workflow
 - delete previous 'provisioning' server on forge
 - ssh into aws
 - aws listed as 'ubuntu@previousforgeservername' - something is happening anyway
 - tried to continue with process, get same error 'role forge already exists'
 - new attempt, $ ps aux | grep forge // lists instances running as 'forge'
 - delete them (3 running ) with pkill -9 'id'
 - sudo rm forge.sh // download again
 - run the code wget -0 .... to download forge.sh and provision server
 - same bs.. 

useradd: user 'forge' already exists
The user `forge' is already a member of `sudo'.
Generating public/private rsa key pair.
/home/forge/.ssh/id_rsa already exists.
Overwrite (y/n)?

不知道该怎么做。试了两次y / n

导致相同的错误

错误:角色"锻造"已存在

如何删除角色?

ubuntu@polished-badlands:~$ ps aux | grep forge
forge     7797  0.0  0.9 473836  9448 ?        S    17:21   0:00 php-fpm: pool www
forge     7801  0.0  0.3 148640  3432 ?        S    17:21   0:00 nginx: worker process
forge     7804  0.0  0.9 473836  9448 ?        S    17:21   0:00 php-fpm: pool www
ubuntu    7806  0.0  0.0  12952   928 pts/0    S+   17:21   0:00 grep --color=auto forge
ubuntu@polished-badlands:~$ sudo userdel -r forge
userdel: user forge is currently used by process 7797
ubuntu@polished-badlands:~$ sudo kill 7797
ubuntu@polished-badlands:~$ sudo userdel -r forge
userdel: user forge is currently used by process 7801
ubuntu@polished-badlands:~$ sudo kill 7801
ubuntu@polished-badlands:~$ sudo userdel -r forge
userdel: user forge is currently used by process 7804

1 个答案:

答案 0 :(得分:0)

我的错误

在构建期间,我为ssh指定了自己的ip,伪造了问题。需要按照指南中的说明进行操作。

希望这有助于某人!