์๋ ํ์ธ์. ๋ฌธ์ ๋ฅผ ์ ์ถํด ์ฃผ์ ์ ๊ฐ์ฌํฉ๋๋ค. ๋ฌธ์ ๋ฅผ ๋ง๋ค๊ธฐ ์ ์ ๋ค์ ์ฌํญ์ ํ์ธํ์ญ์์ค. ๊ฐ์ฌํฉ๋๋ค! ๐ค 11 ์ 15 ์ผ๋ถํฐ ์ฐ๋ฆฌ๋ ์ปค๋ฎค๋ํฐ ๊ฒ์ํ์์ ์ค์ ๋ฒ๊ทธ๋ฅผ ์ ์ธํ ๋ชจ๋ ์์ฒญ์ ์ฒ๋ฆฌํฉ๋๋ค. ์ ์ฒด ์ค๋ช : https://community.zammad.org/t/major-change-regarding-github-issues-community-board/21 ๊ฒ์ํ์ญ์์ค :-๊ธฐ๋ฅ ์์ฒญ-๊ฐ๋ฐ ์ง๋ฌธ-๋ณด๋์ ๊ธฐ์ ์ง๋ฌธ-> https : / /community.zammad.org! ๋ฒ๊ทธ๊ฐ ์๋ค๊ณ ์๊ฐ๋๋ฉด ๊ณ์ํ์ญ์์ค.-๊ธฐ์กด ๋ฌธ์ ์ CHANGELOG.md์์ ๋ฌธ์ ๋ฅผ ๊ฒ์ํฉ๋๋ค.-์ด๋ฏธ ํด๊ฒฐ์ฑ ์ด์์ ์ ์์ต๋๋ค.-๊ฐ๋ฅํ๋ฉด Zammad์ ์ต์ ๋ฒ์ ์ ์ฌ์ฉํ์ญ์์ค.-`log / production. ์์คํ ์ log` ํ์ผ. ์ฃผ์ : ๊ธฐ๋ฐ ๋ฐ์ดํฐ๊ฐ ์๋์ง ํ์ธํ์ญ์์ค! -๋ฌธ์ ๋ฅผ ์์ด๋ก ์์ฑํ์ญ์์ค.-ํ ํ๋ฆฟ์ ์ ๊ฑฐํ์ง ๋ง์ญ์์ค. ๊ทธ๋ ์ง ์์ผ๋ฉด ์ถ๊ฐ ์๊ฒฌ์์ด ๋ฌธ์ ๊ฐ ์ข ๋ฃ๋ฉ๋๋ค.-๋ฉ์ผ ๋ง๋ฆฌ์คํธ์์ 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')"
๊ทธ๋ฐ ๋ค์ ์น ์ธํฐํ์ด์ค๋ฅผ ๋ฐฉ๋ฌธํ์ฌ ์ ํ๊ฒฝ์ ๋ง๋ค๊ณ ๋ก๊ทธ์ธํ๋ฉด "์ฌ์ฉ์ ๊ด๋ฆฌ"์ ์ฌ์ฉ์๊ฐ ์์ต๋๋ค.
์, ์ด๊ฒ์ด ๋ฒ๊ทธ์ด๋ฉฐ ๊ธฐ๋ฅ ์์ฒญ์ด๋ ์ผ๋ฐ์ ์ธ ์ง๋ฌธ์ด ์๋๋ผ๊ณ ํ์ ํฉ๋๋ค.
์ฃ์กํฉ๋๋ค ์ด๊ฒ์ ๋ฒ๊ทธ๊ฐ ์๋๋๋ค ์์คํ
๊ตฌ์ฑ์ ๋ฌธ์ ์
๋๋ค.
๊ธฐ์ ์ง์์ ์ปค๋ฎค๋ํฐ ๊ฒ์ํ (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 ๊ฐ์ฌ