栏目分类:
子分类:
返回
名师互学网用户登录
快速导航关闭
当前搜索
当前分类
子分类
实用工具
热门搜索
名师互学网 > IT > 系统运维 > 运维 > Linux

nextcloud elasticsearch索引失败

Linux 更新时间: 发布时间: IT归档 最新发布 模块sitemap 名妆网 法律咨询 聚返吧 英语巴士网 伯小乐 网商动力

nextcloud elasticsearch索引失败

docker 容器安装完nextcloud 对接 elasticsearch的时候无法建立索引
root@ff90ca6713a3:/var/www/html# php ./occ fulltextsearch:index  
Console has to be executed with the user that owns the file config/config.php
Current user id: 0
Owner id of config.php: 33
Try adding 'sudo -u #33' to the beginning of the command (without the single quotes)
If running with 'docker exec' try adding the option '-u 33' to the docker command (without the single quotes)
root@ff90ca6713a3:/var/www/html# 
问题原因在于必须要用提供的www-data用户执行命令
root@ff90ca6713a3:/var/www/html# su www-data php ./occ fulltextsearch:index 
This account is currently not available.
无法切换用户执行如下操作
root@ff90ca6713a3:/var/www/html# usermod -s /bin/bash www-data
root@ff90ca6713a3:/var/www/html# su www-data
www-data@ff90ca6713a3:~/html$ 
www-data@ff90ca6713a3:~/html$ 
这样在执行就可以初始化索引了
www-data@ff90ca6713a3:~/html$ php ./occ fulltextsearch:index

In StaticNoPingConnectionPool.php line 64:
                                        
  No alive nodes found in your cluster  
                                        

fulltextsearch:index [--output [OUTPUT]] [-r|--no-readline] [--] []
转载请注明:文章转载自 www.mshxw.com
本文地址:https://www.mshxw.com/it/747691.html
我们一直用心在做
关于我们 文章归档 网站地图 联系我们

版权所有 (c)2021-2022 MSHXW.COM

ICP备案号:晋ICP备2021003244-6号