您好-感谢您提出问题。 在创建问题之前,请确保以下事项-谢谢! 🤓自11月15日以来,我们在社区委员会处理所有请求,但实际错误除外。 完整说明:https://community.zammad.org/t/major-change-regarding-github-issues-community-board/21请发布:-功能要求-开发问题-板上的技术问题-> https:/ /community.zammad.org! 如果您认为自己遇到了错误,请继续:-搜索现有问题,并在CHANGELOG.md中查找问题-可能已经存在解决方案-如有可能,请确保使用最新版本的Zammad-添加`log / production。从您的系统中记录文件。 注意:确保其中没有机密数据! -请以英文写问题-不要删除模板-否则,我们将在没有进一步评论的情况下关闭问题-在我们的邮件列表中询问有关Zammad配置和使用的问题。 请参阅:https://zammad.org/participate注意:我们始终尽力而为。 不幸的是,有时请求太多,我们无法一次处理所有事情。 如果您想确定问题的优先级/上报问题,可以通过支持合同进行(请参阅https://zammad.com/pricing#selfhosted)。 *提交问题时,上方的文本块将被自动删除*
/var/log/zammad/production.log看起来不错。
每当我单击“用户管理”中的角色之一时,请求都会被处理而不会出错(返回200)。
Payload size: 0M
E, [2019-02-05T17:44:59.430366 #5417-47218874103620] ERROR -- :
2019-02-05T17:44:59+0100: [Worker(host:zammad.local pid:5417)] Job
BackgroundJobSearchIndex (id=16) FAILED (3 prior attempts) with RuntimeError: Unable
to process POST request to elasticsearch URL 'http://localhost:9200/zammad_production
/User/3?pipeline=zammad895142058248'. Check the response and payload for detailed
information:
Response:
#<UserAgent::Result:0x00007f5da9857a38 @success=false, @body="{\"error
\":{\"root_cause\":[{\"type\":\"illegal_argument_exception\",\"reason\":\"pipeline with id
[zammad895142058248] does not exist\"}],\"type\":\"illegal_argument_exception
\",\"reason\":\"pipeline with id [zammad895142058248] does not exist\"},\"status\":400}",
@data=nil, @code="400", @content_type=nil, @error="Client Error:
#<Net::HTTPBadRequest 400 Bad Request readbody=true>!">
这个问题(或等效问题)似乎很常见:
https://community.zammad.org/t/no-users-on-users-management/1108/2
准确再现问题的步骤(在CentOS 7 KVM计算机上):
yum -y update
yum -y install epel-release wget
wget -O /etc/yum.repos.d/zammad.repo https://dl.packager.io/srv/zammad/zammad/stable/installer/el/7.repo
rpm --import https://artifacts.elastic.co/GPG-KEY-elasticsearch
echo "[elasticsearch-5.x]
name=Elasticsearch repository for 5.x packages
baseurl=https://artifacts.elastic.co/packages/5.x/yum
gpgcheck=1
gpgkey=https://artifacts.elastic.co/GPG-KEY-elasticsearch
enabled=1
autorefresh=1
type=rpm-md"| tee /etc/yum.repos.d/elasticsearch-5.x.repo
yum install -y java-1.8.0-openjdk-devel
yum install -y elasticsearch
echo "JAVA_HOME=$(readlink -f /usr/bin/java | sed "s:bin/java::")" | sudo tee -a /etc/profile
source /etc/profile
## I am behind a corporate proxy, so I need to preceed the elasticsearch command with the java environment variables
ES_JAVA_OPTS="-Dhttps.proxyHost=MY_HTTP_PROXY.COM -Dhttps.proxyPort=8080" /usr/share/elasticsearch/bin/elasticsearch-plugin install mapper-attachments --batch
systemctl restart elasticsearch
systemctl enable elasticsearch
# SELinux / Firewall
setsebool httpd_can_network_connect on -P
firewall-cmd --zone=public --add-service=http --permanent
firewall-cmd --zone=public --add-service=https --permanent
firewall-cmd --reload
# For some reason the default nginx config overlaps with conf.d/zammad.conf
sed -i '/^ server {/,+19 s/^/#/' /etc/nginx/nginx.conf
systemctl restart nginx
zammad run rails r "Setting.set('es_url', 'http://localhost:9200')"
zammad run rake searchindex:rebuild
zammad run rails r "Setting.set('es_user', 'elasticsearch')"
zammad run rails r "Setting.set('es_password', 'zammad')"
之后,访问Web界面,创建一个新的环境,登录,仅此而已:“用户管理”中没有用户。
是的,我确定这是一个错误,没有功能要求或一般性问题。
抱歉,这不是您系统配置中的错误。
请参阅我们的社区委员会(https://community.zammad.org/)以获得技术帮助。
您发布的错误消息表明Zammad无法到达您的Elasticsearch安装。
就我个人而言,当您呆在自己的机器上(也称为“ localhost”)时,您不需要解决任何问题。
现在关闭。
哇! 那真是太快了! 我什至没有时间编辑帖子的语法:P
嗯...为了便于说明,该问题已通过以下方式解决:
/usr/share/elasticsearch/bin/elasticsearch-plugin remove mapper-attachments
/usr/share/elasticsearch/bin/elasticsearch-plugin install ingest-attachment --batch
systemctl restart elasticsearch
zammad run rake searchindex:rebuild
由于某些原因(上次更新之后),“ mapper-attachment”插件已从生产服务器中删除。
之后,只需运行:
zammad run rake searchindex:rebuild`
并确保其完成没有错误!
现在,所有测试和生产系统中的名称都回到了“用户管理”中。
谢谢@MrGeneration !
很高兴您可以找到它!
快速结账是我的专长;)
最有用的评论
哇! 那真是太快了! 我什至没有时间编辑帖子的语法:P
嗯...为了便于说明,该问题已通过以下方式解决:
由于某些原因(上次更新之后),“ mapper-attachment”插件已从生产服务器中删除。
之后,只需运行:
并确保其完成没有错误!
现在,所有测试和生产系统中的名称都回到了“用户管理”中。
谢谢@MrGeneration !