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

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

  • 相关阅读:
    mysql week 的使用方法
    获取某个周在本年的开始日期和结束日期
    question and answer
    系统安装
    adblock 下载地址
    windows新增/修改/删除系统环境变量bat示例,一键配置JAVA_HOME
    SpringMVC 复杂对象数据绑定
    IntelliJ IDEA default settings 全局默认设置
    Spring整合Ehcache管理缓存
    label的for属性
  • 原文地址:https://www.cnblogs.com/CLTANG/p/4332653.html
Copyright © 2011-2022 走看看