简体   繁体   English

无法初始化微堆栈

[英]Unable to init microstack

I'm trying to install openstack on ubuntu 20.04 server but init fails.我正在尝试在 ubuntu 20.04 服务器上安装 openstack,但 init 失败。 Can someone please explain why this error and any suggestions?有人可以解释为什么这个错误和任何建议吗?

2022-04-29 12:08:28,706 - microstack_init - INFO - Setting up as a control node.
2022-04-29 12:08:40,467 - microstack_init - INFO - Generating TLS Certificate and Key
2022-04-29 12:08:44,707 - microstack_init - INFO - Configuring networking ...
2022-04-29 12:09:01,841 - microstack_init - INFO - Opening horizon dashboard up to *
2022-04-29 12:09:04,997 - microstack_init - INFO - Waiting for RabbitMQ to start ...
Waiting for 192.168.219.131:5672
2022-04-29 12:09:06,279 - microstack_init - INFO - RabbitMQ started!
2022-04-29 12:09:06,280 - microstack_init - INFO - Configuring RabbitMQ ...
2022-04-29 12:09:09,530 - microstack_init - INFO - RabbitMQ Configured!
2022-04-29 12:09:09,606 - microstack_init - INFO - Waiting for MySQL server to start ...
Waiting for 192.168.219.131:3306
2022-04-29 12:09:10,857 - microstack_init - INFO - Mysql server started! Creating databases ...
2022-04-29 12:09:13,539 - microstack_init - INFO - Configuring Keystone Fernet Keys ...
Traceback (most recent call last):
  File "/snap/microstack/245/bin/microstack", line 11, in <module>
    load_entry_point('microstack==0.0.1', 'console_scripts', 'microstack')()
  File "/snap/microstack/245/lib/python3.8/site-packages/microstack/main.py", line 44, in main
    cmd()
  File "/snap/microstack/245/lib/python3.8/site-packages/init/main.py", line 60, in wrapper
    return func(*args, **kwargs)
  File "/snap/microstack/245/lib/python3.8/site-packages/init/main.py", line 228, in init
    question.ask()
  File "/snap/microstack/245/lib/python3.8/site-packages/init/questions/question.py", line 210, in ask
    self.yes(awr)
  File "/snap/microstack/245/lib/python3.8/site-packages/init/questions/__init__.py", line 482, in yes
    check('snap-openstack', 'launch', 'keystone-manage', 'db_sync')
  File "/snap/microstack/245/lib/python3.8/site-packages/init/shell.py", line 69, in check
    raise subprocess.CalledProcessError(proc.returncode, " ".join(args))
subprocess.CalledProcessError: Command 'snap-openstack launch keystone-manage db_sync' returned non-zero exit status 1.```

mostly the problem is the required port is used by another process(in use).大多数问题是所需的端口被另一个进程使用(正在使用中)。

#check if the port is in use: #检查端口是否被占用:

sudo lsof -i:[port]

I didn't had lxd installed and solved by running:我没有安装 lxd 并通过运行解决:

sudo snap install lxd && sudo lxd init

After that, just run the following command again and you're done:之后,只需再次运行以下命令即可完成:

sudo microstack init

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 无法在 linux 中运行 npx react-native init - unable to run npx react-native init in linux cfn-init 错误:无法检索远程元数据:无凭据 - cfn-init error: Unable to retrieve remote metadata : No credentials 运行自定义init:无法生成主页主进程:无法执行:没有这样的文件或目录 - run custom init: Failed to spawn homepage main process: unable to execute: No such file or directory Ubuntu 14.04 puma upstart失败,并显示“初始化:无法生成puma主进程:无法执行:没有此类文件或目录” - Ubuntu 14.04 puma upstart failing with “init: Failed to spawn puma main process: unable to execute: No such file or directory” 在本地主机上的 ubuntu docker 容器中运行 firefox:无法初始化服务器:不支持百老汇显示类型: - Running firefox in a ubuntu docker container on localhost: Unable to init server: Broadway display type not supported: 将init转换为systemd - Convert init to systemd 在init脚本中切换用户? - Switch user in a init script? Android 回购初始化失败 - Android Repo init failed 反应本机初始化错误 - React-native init error 带有 Ubuntu init 脚本的独角兽服务器 - unicorn server with Ubuntu init script
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM