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

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

  • 相关阅读:
    冒泡 选择 二分法 算法 排序算法
    VUE -->html
    tlplayer for wince 版本正式商用
    XBMC 最新版本错误
    libvlc 双击,鼠标事件消息响应
    windows平台下VLC2.0.5编译
    Fedora 17下交叉编译vlc-2.0.6-win32小记
    wzplayer for ios 针对(mms)优化版本V1.0
    wzplayer2 for windows ActiveX 试用地址
    wzplayer,tlplayer支持ActiveX
  • 原文地址:https://www.cnblogs.com/CLTANG/p/4332653.html
Copyright © 2011-2022 走看看