zoukankan      html  css  js  c++  java
  • Error initializing authentication system

    描述:

    [oneadmin@opennebula ~]$ sunstone-server start

    Error executing sunstone-server.

    Check /srv/cloud/one/var/sunstone.error and /srv/cloud/one/var/sunstone.log for more information

    [oneadmin@opennebula ~]$ more /srv/cloud/one/var/sunstone.log

    --------------------------------------

             Server configuration         

    --------------------------------------

    {:lang=>"en_US",

     :vnc_proxy_cert=>nil,

     :auth=>"sunstone",

     :vnc_proxy_key=>nil,

     :vnc_proxy_path=>"/srv/cloud/one/share/websockify/websocketproxy.py",

     :vnc_proxy_support_wss=>false,

     :marketplace_url=>"https://marketplace.c12g.com/appliance",

     :tmpdir=>"/var/tmp",

     :vnc_proxy_port=>29876,

     :one_xmlrpc=>"http://localhost:2633/RPC2",

     :host=>"0.0.0.0",

     :core_auth=>"cipher",

     :debug_level=>3,

     :port=>9869}

    Thu Sep 26 15:06:30 2013 [E]: Error initializing authentication system

    Thu Sep 26 15:06:30 2013 [E]: No such file or directory - /srv/cloud/one/var/.one/sunstone_auth

    Solution:

    原因是mysql opennebula里面记录了sunstone的验证信息,删除opennebula数据库,并重建数据库即可;

    #mysql -uroot -ppassword

    mysql> show databases;

    +--------------------+

    | Database           |

    +--------------------+

    | information_schema |

    | mysql              |

    | opennebula         |

    +--------------------+

    3 rows in set (0.00 sec)

    mysql> drop database opennebula;

    Query OK, 17 rows affected (0.06 sec)

    mysql> drop user 'oneadmin'@'localhost';

    Query OK, 0 rows affected (0.00 sec)

    mysql> CREATE USER 'oneadmin'@'localhost' IDENTIFIED BY 'oneadmin';

    Query OK, 0 rows affected (0.00 sec)

    mysql> CREATE DATABASE opennebula;

    Query OK, 1 row affected (0.00 sec)

    mysql> GRANT ALL PRIVILEGES ON opennebula.* TO 'oneadmin' IDENTIFIED BY 'oneadmin';

    Query OK, 0 rows affected (0.00 sec)

    mysql> flush privileges;

    Query OK, 0 rows affected (0.00 sec)

    mysql> quit;


  • 相关阅读:
    监控系统播放音频断断续续的原因
    apachelog4cxx编译
    [架构]FileZilla Server架构分析
    MAC上命令行内容传递到剪贴板
    IOS上屏蔽SIGPIPE
    我想要这样的3g无线路由器
    【转】MySQL日期时间函数大全
    svnplot 将svn的日志导入数据库
    Foxmail for mac 1.0.0 使用小评
    Versions 升级了,不需要把命令行svn退到1.6了,哇咔咔
  • 原文地址:https://www.cnblogs.com/myiaas/p/4161350.html
Copyright © 2011-2022 走看看