Hello 

Zammad is working fine. but i have some troubles to set up elasticsearch.
I'm not familiar with Unixes.

First of all i think i need more sudos as they are written 
under https://docs.zammad.org/en/latest/install-elasticsearch.html -> 
Ubuntusetup
But i'm not sure ... something like this? 

sudo echo "deb https://artifacts.elastic.co/packages/5.x/apt stable main" 
*|* sudo tee *-*a */*etc*/*apt*/*sources*.*list*.*d*/*elastic*-*5.x*.*list

sudo wget *-*qO *-* https:*//*artifacts*.*elastic*.*co*/*GPG*-*KEY*-*
elasticsearch *|* sudo apt*-*key add *-*

sudo apt*-*get update

sudo apt*-*get install openjdk*-*8*-*jre elasticsearch

sudo */*usr*/*share*/*elasticsearch*/*bin*/*elasticsearch*-*plugin install 
mapper*-*attachments

sudo systemctl restart elasticsearch

sudo systemctl enable elasticsearch



one above steps there are no Problems.


sudo zammad run rails r "Setting.set('es_url', 'http://localhost:9200')"

sudo zammad run rake searchindex:rebuild


The second line throws me this errors admingeotopo@zammad:~$ sudo zammad run 
rake searchindex:rebuild
drop indexes...
create indexes...
rake aborted!
Unable to process PUT at http://localhost:9200/zammad_production
#<UserAgent::Result:0x0055bc599ec7d8 @success=false, @body=nil, @data=nil, 
@code=0, @content_type=nil, @error="#<Errno::ECONNREFUSED: Failed to open TCP 
connection to localhost:9200 (Connection refused - connect(2) for \"localhost\" 
port 9200)>">
/opt/zammad/lib/search_index_backend.rb:62:in `index'
/opt/zammad/lib/tasks/search_index_es.rake:19:in `block (2 levels) in <top 
(required)>'
/opt/zammad/lib/tasks/search_index_es.rake:60:in `block (2 levels) in <top 
(required)>'
/opt/zammad/vendor/bundle/ruby/2.3.0/gems/rake-11.2.2/exe/rake:27:in `<top 
(required)>'
/opt/zammad/vendor/bundle/ruby/2.3.0/gems/bundler-1.15.1/lib/bundler/cli/exec.rb:74:in
 `load'
/opt/zammad/vendor/bundle/ruby/2.3.0/gems/bundler-1.15.1/lib/bundler/cli/exec.rb:74:in
 `kernel_load'
/opt/zammad/vendor/bundle/ruby/2.3.0/gems/bundler-1.15.1/lib/bundler/cli/exec.rb:27:in
 `run'
/opt/zammad/vendor/bundle/ruby/2.3.0/gems/bundler-1.15.1/lib/bundler/cli.rb:360:in
 `exec'
/opt/zammad/vendor/bundle/ruby/2.3.0/gems/bundler-1.15.1/lib/bundler/vendor/thor/lib/thor/command.rb:27:in
 `run'
/opt/zammad/vendor/bundle/ruby/2.3.0/gems/bundler-1.15.1/lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in
 `invoke_command'
/opt/zammad/vendor/bundle/ruby/2.3.0/gems/bundler-1.15.1/lib/bundler/vendor/thor/lib/thor.rb:369:in
 `dispatch'
/opt/zammad/vendor/bundle/ruby/2.3.0/gems/bundler-1.15.1/lib/bundler/cli.rb:20:in
 `dispatch'
/opt/zammad/vendor/bundle/ruby/2.3.0/gems/bundler-1.15.1/lib/bundler/vendor/thor/lib/thor/base.rb:444:in
 `start'
/opt/zammad/vendor/bundle/ruby/2.3.0/gems/bundler-1.15.1/lib/bundler/cli.rb:10:in
 `start'
/opt/zammad/vendor/bundle/ruby/2.3.0/gems/bundler-1.15.1/exe/bundle:35:in 
`block in <top (required)>'
/opt/zammad/vendor/bundle/ruby/2.3.0/gems/bundler-1.15.1/lib/bundler/friendly_errors.rb:121:in
 `with_friendly_errors'
/opt/zammad/vendor/bundle/ruby/2.3.0/gems/bundler-1.15.1/exe/bundle:27:in `<top 
(required)>'
/opt/zammad/bin/bundle:3:in `load'
/opt/zammad/bin/bundle:3:in `<main>'
Tasks: TOP => searchindex:rebuild
(See full trace by running task with --trace)

netstat -ntlp | grep LISTEN shows me that nothing is listen on Port 
9200admingeotopo@zammad:~$ sudo netstat -ntlp | grep LISTEN
tcp        0      0 127.0.1.1:53            0.0.0.0:*               LISTEN      
1024/dnsmasq
tcp        0      0 0.0.0.0:22              0.0.0.0:*               LISTEN      
940/sshd
tcp        0      0 0.0.0.0:3000            0.0.0.0:*               LISTEN      
767/0.0.0.0:3000) [
tcp        0      0 127.0.0.1:5432          0.0.0.0:*               LISTEN      
938/postgres
tcp        0      0 0.0.0.0:6042            0.0.0.0:*               LISTEN      
763/websocket-serve
tcp        0      0 0.0.0.0:80              0.0.0.0:*               LISTEN      
981/nginx -g daemon
tcp6       0      0 :::22                   :::*                    LISTEN      
940/sshd
tcp6       0      0 :::80                   :::*                    LISTEN      
981/nginx -g daemon

Whats wrong here?
Thank you very much for your answers, hints and help!
Andi




-- 
Open Source as Download https://zammad.org || Easy to use as SaaS 
https://zammad.com
--- 
You received this message because you are subscribed to the Google Groups 
"zammad-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to zammad-users+unsubscr...@googlegroups.com.
To post to this group, send email to zammad-users@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/zammad-users/a05bde57-b940-4859-97d3-7cbef3b23302%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to