tuerxun 发表于 2017-10-31 10:05:38

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

1、服务器系统信息及版本信息Hostnametursun.comInstalled OScentos-7-x86_64Guaranteed CPU2.40 GHzRAM768 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-fpmdone
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
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: 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文件
-------------------------------------------------------------------------------------------------------------

licess 发表于 2017-10-31 13:18:10

shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
该错误说明你当前工作目录被删除,一般是你 cd 到了某个目录之后又 rm 删除了这个目录,这时去执行一些脚本就会报 getcwd 错误。
cd 到任何一个实际存在的目录下在执行命令即可
页: [1]
查看完整版本: 增加网站(虚拟主机)出错