zoukankan      html  css  js  c++  java
  • OpenStack fuel-web不可用解决办法

    Contents [hide]

    为增加一台计算节点

    打开fuel-web,发现无法打开,弹出nginx的经典错误

    1
    502 Bad Gateway

    于是登录fuel-web服务器,172.17.45.15,查看nginx日志,发现磁盘空间已满,并且nginx 将转发请求到8001端口,而netstat -anp | grep 8001没有发现有这个端口在运行。

    解决办法:

    磁盘清空

    1
    du -sh * | sort -nr

    查找到最大的占用日志。删除。nginx启动不在报错。

    启动占用8001端口的进程

    1
    /opt/nailgun/bin/python /opt/nailgun/bin/nailgund

    执行后发现该进程还是不能使用,需要一个5432端口的程序。

    启动占用5432端口的进程

    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    [root@fuel nginx]# /usr/bin/postmaster -p 5432 -D /var/lib/pgsql/data
    "root" execution of the PostgreSQL server is not permitted.
    The server must be started under an unprivileged user ID to prevent
    possible system security compromise.  See the documentation for
    more information on how to properly start the server.
    [root@fuel nginx]# su postgres
    bash-4.1$ /usr/bin/postmaster -p 5432 -D /var/lib/pgsql/data
    ^Cbash-4.1$ ps auxf | grep postmaster
    postgres  3174  0.0  0.0 103236   848 pts/0    S+   17:09   0:00                  \_ grep postmaster
    bash-4.1$ setsid /usr/bin/postmaster -p 5432 -D /var/lib/pgsql/data
    bash-4.1$ ps auxf | grep postmaster
    postgres  3186  0.0  0.0 103236   848 pts/0    S+   17:09   0:00                  \_ grep postmaster
    postgres  3176 21.6  0.3 215840  6252 ?        Ss   17:09   0:00 /usr/bin/postmaster -p 5432 -D /var/lib/pgsql/data

    需要使用用户postgres执行。

    再次启动8001端口的服务

    1
    setsid /opt/nailgun/bin/python /opt/nailgun/bin/nailgund

    完成后,浏览器刷新成功。

  • 相关阅读:
    【Web技术】(一)IIS Web服务器的安装与配置
    《数据结构课程设计》图结构练习:List Component
    ExcelUtils 导表实例
    SSH整合常见错误
    mysql索引优化
    数据库三范式
    sql联接那点儿事儿
    面试java简答题
    集合类框架
    数据库连接类oracleHelper
  • 原文地址:https://www.cnblogs.com/CLTANG/p/4332653.html
Copyright © 2011-2022 走看看