VPS侦探论坛

 找回密码
 注册
查看: 4021|回复: 1

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

[复制链接]
发表于 2017-10-31 10:05:38 | 显示全部楼层 |阅读模式

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文件
-------------------------------------------------------------------------------------------------------------

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?注册

x
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
发表于 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 到任何一个实际存在的目录下在执行命令即可
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|Archiver|VPS侦探 ( 鲁ICP备16040043号-1 )

GMT+8, 2024-9-25 03:25 , Processed in 0.025896 second(s), 17 queries .

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表