打印

增加网站(虚拟主机)出错

增加网站(虚拟主机)出错

1、服务器系统信息及版本信息
Hostnametursun.com
Installed OScentos-7-x86_64
Guaranteed CPU2.40 GHz
RAM768 MB + 384 MB SWAP (used 422 MB)
Storage15 GB RAID (used 3.7 GB)
2、nmp-install.log文件

3、问题
    开始安装的是 1.2版, 昨天升级到1.4 。
    增加一个 虚拟主机 (lnmp vhost add),在Add SSL Certificate (y/n) y 时 出错:
-------------------------------------------------------------------------------------------------------------
Add SSL Certificate (y/n) y
1: Use your own SSL Certificate and Key
2: Use Let's Encrypt to create SSL Certificate and Key
Enter 1 or 2: 2
Please enter your email address: Tuerxun@gmail.com
It will be processed automatically.

Press any key to start create virtul host...
Create Virtul Host directory......
set permissions of Virtual Host directory......
You select the exist rewrite rule:/usr/local/nginx/conf/other.conf
Test Nginx configure file......
nginx: the configuration file /usr/local/nginx/conf/nginx.conf syntax is ok
nginx: configuration file /usr/local/nginx/conf/nginx.conf test is successful
Reload Nginx......
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or                                 directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or                                 directory
Gracefully shutting down php-fpm . done
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or                                 directory
Starting php-fpm  done
You select the exist rewrite rule:/usr/local/nginx/conf/other.conf
Test Nginx configure file......
nginx: the configuration file /usr/local/nginx/conf/nginx.conf syntax is ok
nginx: configuration file /usr/local/nginx/conf/nginx.conf test is successful
Reload Nginx......
/bin/certbot [found]
Starting create SSL Certificate use Let's Encrypt...
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or                                 directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or                                 directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or                                 directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or                                 directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or                                 directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or                                 directory
An unexpected error occurred:
OSError: [Errno 2] No such file or directory
Please see the logfile '/tmp/tmpUT3_Z9' for more details.
Let's Encrypt SSL Certificate create failed!
================================================
Virtualhost infomation:
Your domain: pdm.tursun.com
Home Directory: /home/wwwroot/pdm.tursun.com
Rewrite: other
Enable log: yes
Create database: no
Create ftp account: no
Enable SSL: yes
  =>Let's Encrypt
================================================

这是tmpUT3_Z9文件
-------------------------------------------------------------------------------------------------------------
附件: 您所在的用户组无法下载或查看附件

TOP

shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
该错误说明你当前工作目录被删除,一般是你 cd 到了某个目录之后又 rm 删除了这个目录,这时去执行一些脚本就会报 getcwd 错误。
cd 到任何一个实际存在的目录下在执行命令即可

TOP