Want more timely Centmin Mod News Updates?
Become a Member

Install Xenforo CentOS 7.x How To Install Elasticsearch 7.x for Xenforo

Discussion in 'Centmin Mod User Tutorials & Guides' started by Sunka, Mar 6, 2020.

  1. Andy

    Andy Active Member

    546
    90
    28
    Aug 6, 2014
    Ratings:
    +134
    Local Time:
    12:22 AM
  2. eva2000

    eva2000 Administrator Staff Member

    58,893
    12,490
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +19,122
    Local Time:
    3:22 PM
    Nginx 1.31.x
    MariaDB 10.x/11.4+/12.3+
    You ES version is already covered for XF 2.3 ES 7.17.18 > 7.2.0
     
  3. Andy

    Andy Active Member

    546
    90
    28
    Aug 6, 2014
    Ratings:
    +134
    Local Time:
    12:22 AM
    Thanks. I know it meets the minimum requirement for 2.3 but it doesn't seem like auto completion is working. Maybe there is a configuration somewhere I missed.

    Secondly, do you know the status of ES 8.x on centminmod AlmaLinux 9.4?
    Can I use this same guide to update to ES 8.14?
    Thank you
     
  4. eva2000

    eva2000 Administrator Staff Member

    58,893
    12,490
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +19,122
    Local Time:
    3:22 PM
    Nginx 1.31.x
    MariaDB 10.x/11.4+/12.3+
    I haven't looked at XF 2.3 in detail yet. Easiest thing to do is setup a separate testing staging VPS server with test copy of your XF 2.3 upgraded copy of your forum and test ES versions and settings for your needs.
     
  5. Itworx4me

    Itworx4me Premium Member Premium Member

    339
    35
    28
    Mar 14, 2017
    Ratings:
    +65
    Local Time:
    10:22 PM
    Nginx 1.27.4
    MariaDB 10.6.21
    I am currently on version 7.17.17. Should I be on the 8.15 current branch?

    Thanks,
    Itworx4me
     
  6. Andy

    Andy Active Member

    546
    90
    28
    Aug 6, 2014
    Ratings:
    +134
    Local Time:
    12:22 AM
    Same question.
    Why don't you upgrade and let us know.
    Thanks
     
  7. duderuud

    duderuud Active Member

    318
    97
    28
    Dec 5, 2020
    The Netherlands
    Ratings:
    +215
    Local Time:
    7:22 AM
    1.29 x
    11.4
    ES 8 works without any issues on XF 2.2 or 2.3

    If you want to use the default security features (including a certificate) it takes a bit more work to get it 100% working.
    But you can just disable the security features of ES8 when running it locally.

    Code:
    xpack.security.enabled: false
    
    IMG_3880.jpeg
     
    Last edited: Aug 26, 2024
  8. Andy

    Andy Active Member

    546
    90
    28
    Aug 6, 2014
    Ratings:
    +134
    Local Time:
    12:22 AM
    Great to hear.
    Is there a particular update/install guide for 2.3 and ES 8?
    Appreciate it.
     
  9. Andy

    Andy Active Member

    546
    90
    28
    Aug 6, 2014
    Ratings:
    +134
    Local Time:
    12:22 AM
    Did just that and found out a bug with XF 2.3 and XFES 2.3.2 not working with auto completion if you disable dynamic avatars.
    I reported the bug here.
    ES 2.3.2 Auto Complete crashes when dynamic avatar disabled
     
  10. Jon Snow

    Jon Snow Active Member

    917
    188
    43
    Jun 30, 2017
    Ratings:
    +293
    Local Time:
    2:22 AM
    Nginx 1.13.9
    MariaDB 10.1.31
    @duderuud are you using ES 7 or 8 on your XF 2.3 sites?
     
  11. duderuud

    duderuud Active Member

    318
    97
    28
    Dec 5, 2020
    The Netherlands
    Ratings:
    +215
    Local Time:
    7:22 AM
    1.29 x
    11.4
    ES8
     
  12. pamamolf

    pamamolf Well-Known Member

    4,125
    429
    83
    May 31, 2014
    Ratings:
    +841
    Local Time:
    8:22 AM
    Nginx-1.29.x
    MariaDB 10.6.x
    Elasticsearch seems to not working anymore as usual by installing it using the repo.

    I am getting a 403 or 404.

    Archive url also seems to not work.

    I tried for v7 and v8

    Any ideas?
     
  13. duderuud

    duderuud Active Member

    318
    97
    28
    Dec 5, 2020
    The Netherlands
    Ratings:
    +215
    Local Time:
    7:22 AM
    1.29 x
    11.4
    Does the log say anything? Does curl on port 9200 work?

    Some more information would be handy...
     
  14. eva2000

    eva2000 Administrator Staff Member

    58,893
    12,490
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +19,122
    Local Time:
    3:22 PM
    Nginx 1.31.x
    MariaDB 10.x/11.4+/12.3+
    Which OS CentOS 7 or EL8/9?
     
  15. pamamolf

    pamamolf Well-Known Member

    4,125
    429
    83
    May 31, 2014
    Ratings:
    +841
    Local Time:
    8:22 AM
    Nginx-1.29.x
    MariaDB 10.6.x
    Almalinux 9

    I used:

    Code:
    [elasticsearch-7.x]
    name=Elasticsearch repository for 7.x packages
    baseurl=https://artifacts.elastic.co/packages/7.x/yum
    gpgcheck=1
    gpgkey=https://artifacts.elastic.co/GPG-KEY-elasticsearch
    enabled=1
    autorefresh=1
    type=rpm-md

    and then:
    Code:
    yum update
    and then tried to install it...

    Code:
    yum -y install elasticsearch
    Elasticsearch repository for 7.x packages                                                                                                      971 kB/s | 639 kB     00:00
    Errors during downloading metadata for repository 'elasticsearch-7.x':
      - Status code: 403 for https://artifacts.elastic.co/packages/7.x/yum/repodata/filelists.xml.gz (IP: 34.120.127.130)
    Error: Failed to download metadata for repo 'elasticsearch-7.x': Yum repo downloading error: Downloading error(s): repodata/filelists.xml.gz - Cannot download, all mirrors were already tried without success
    Then i tried the:

    Code:
    baseurl=https://artifacts.elastic.co/packages/oss-7.x/yum
    but nothing...



    Code:
    Status code: 403 for https://artifacts.elastic.co/packages/7.x/yum/repodata/primary.xml.gz
    
    and
    
    Status code: 403 for https://artifacts.elastic.co/packages/7.x/yum/repodata/filelists.xml.gz
     
    Last edited: Apr 6, 2025
  16. pamamolf

    pamamolf Well-Known Member

    4,125
    429
    83
    May 31, 2014
    Ratings:
    +841
    Local Time:
    8:22 AM
    Nginx-1.29.x
    MariaDB 10.6.x
    Any ideas?
     
  17. duderuud

    duderuud Active Member

    318
    97
    28
    Dec 5, 2020
    The Netherlands
    Ratings:
    +215
    Local Time:
    7:22 AM
    1.29 x
    11.4
    Can you reach that url manually on your server?

    A 403 means forbidden, looks like your server is blocked somehow
     
  18. pamamolf

    pamamolf Well-Known Member

    4,125
    429
    83
    May 31, 2014
    Ratings:
    +841
    Local Time:
    8:22 AM
    Nginx-1.29.x
    MariaDB 10.6.x
    curl -I https://artifacts.elastic.co/packages/7.x/yum/repodata/primary.xml.gz

    Code:
    HTTP/2 403
    content-length: 134
    content-type: text/html; charset=UTF-8
    date: Tue, 08 Apr 2025 17:04:18 GMT
    alt-svc: h3=":443"; ma=2592000,h3-29=":443"; ma=2592000

    Yes it seems the specific server is blocked.

    I tested from another server and it was ok.

    Weird as this was a new server and i just install Centminmod.

    Any ideas how can i bypass it at least just for installing it?

    I know that probably i can use rpm but i think the updates are handled easily using the repo....
     
  19. duderuud

    duderuud Active Member

    318
    97
    28
    Dec 5, 2020
    The Netherlands
    Ratings:
    +215
    Local Time:
    7:22 AM
    1.29 x
    11.4
    You should als Elastic why this is. They are the only one that can do anything about it.

    Find a mirror (repo). Let me look one up

    Edit:
    Btw, did you import the GPG key prior to adding the repo?
    Code (Text):
    rpm --import https://artifacts.elastic.co/GPG-KEY-elasticsearch
     
    Last edited: Apr 9, 2025
  20. pamamolf

    pamamolf Well-Known Member

    4,125
    429
    83
    May 31, 2014
    Ratings:
    +841
    Local Time:
    8:22 AM
    Nginx-1.29.x
    MariaDB 10.6.x
    Thanks for your reply.

    It seems that i am totally blocked for a reason:

    Code:
    rpm --import https://artifacts.elastic.co/GPG-KEY-elasticsearch
    curl: (22) The requested URL returned error: 403
    error: https://artifacts.elastic.co/GPG-KEY-elasticsearch: import read failed(2).
    I did the manual installation and all are fine but it will be good to know how to select another mirror that may not blocking the server and complete the installation using the repo.