Problem installing Manticore 3.2 on Centos 7.7 with yum

Running the install process per documentation on Centos 7.7.
First step
yum install http://repo.manticoresearch.com/manticore-repo.noarch.rpm – works fine
the next step fails:
yum install manticore
the error is:
http://repo.manticoresearch.com/repository/manticoresearch/dev/centos/7/x86_64/repodata/repomd.xml: [Errno 14] HTTP Error 404 - Not Found

Did I miss something or does the repo installation point to the wrong location?

Hi. It’s fixed now. Thanks for pointing this out. Sorry for the inconvenience.

Hi,
I tried it again, but this time I get a same error on a different file location:
manticore | 1.4 kB 00:00:00
manticore-dev | 1.4 kB 00:00:00
http://repo.manticoresearch.com/repodata/repomd.xml: [Errno 14] HTTP Error 404 - Not Found
Trying other mirror.

Thanks
Brd

Same CentOS7? Try a yum clean all, then yum update

I have done that. Tried everything I know with yum and the issue still exists. I tried the URL myself and it is indeed invalid.

I could install it from the RPMs, but I would prefer to have the yum install to work correctly.

I’m having difficulty responding to my own post with the result that allow me to fix the issue.
The message that shows up is " Your post was flagged as spam"

I have no idea why it was flagged as spam, as it is the step by step approach to what I did to resolve the issue.

Also, I have followed the steps in the documentation for 3.2.1 Installing Manticore Search from Manticore yum repository. But, when I get to the step: “3.8 Quick Manticore usage tour”, even the most basic items do not work. Has anybody tested the step verbatim to see if they actually work.

I would like to get this work rather than trying to use a docker container.

I’ve updated our Discourse spam settings. It was saying you were referring to repo.manticoresearch.com too much :))

I’ve reviewed, it’s a very little bit outdated, but in general all should be working fine. What exactly is not working for you?

I can’t reproduce it on a clean centos 7.

snikolaev@dev:~$ docker run -it centos:7 /bin/bash
[root@15f7b987a0a5 /]# yum install http://repo.manticoresearch.com/manticore-repo.noarch.rpm
Loaded plugins: fastestmirror, ovl
manticore-repo.noarch.rpm                                                                                                                           | 6.6 kB  00:00:00
Examining /var/tmp/yum-root-TrBzy7/manticore-repo.noarch.rpm: Manticore-repo-0.0.1-1.noarch
Marking /var/tmp/yum-root-TrBzy7/manticore-repo.noarch.rpm to be installed
Resolving Dependencies
--> Running transaction check
---> Package Manticore-repo.noarch 0:0.0.1-1 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

===========================================================================================================================================================================
 Package                                   Arch                              Version                               Repository                                         Size
===========================================================================================================================================================================
Installing:
 Manticore-repo                            noarch                            0.0.1-1                               /manticore-repo.noarch                            463

Transaction Summary
===========================================================================================================================================================================
Install  1 Package

Total size: 463
Installed size: 463
Is this ok [y/d/N]: y
Downloading packages:
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Installing : Manticore-repo-0.0.1-1.noarch                                                                                                                           1/1
  Verifying  : Manticore-repo-0.0.1-1.noarch                                                                                                                           1/1

Installed:
  Manticore-repo.noarch 0:0.0.1-1

Complete!
[root@15f7b987a0a5 /]# yum install manticore
Loaded plugins: fastestmirror, ovl
base                                                                                                                                                | 3.6 kB  00:00:00
extras                                                                                                                                              | 2.9 kB  00:00:00
manticore                                                                                                                                           | 1.4 kB  00:00:00
manticore-dev                                                                                                                                       | 1.4 kB  00:00:00
updates                                                                                                                                             | 2.9 kB  00:00:00
(1/6): manticore-dev/7/x86_64/primary                                                                                                               |  131 B  00:00:00
(2/6): manticore/7/x86_64/primary                                                                                                                   | 7.4 kB  00:00:00
(3/6): extras/7/x86_64/primary_db                                                                                                                   | 153 kB  00:00:00
(4/6): base/7/x86_64/group_gz                                                                                                                       | 165 kB  00:00:00
(5/6): base/7/x86_64/primary_db                                                                                                                     | 6.0 MB  00:00:00
(6/6): updates/7/x86_64/primary_db                                                                                                                  | 2.8 MB  00:00:00
Determining fastest mirrors
 * base: linux.darkpenguin.net
 * extras: mirror.softaculous.com
 * updates: mirror.alpix.eu
manticore                                                                                                                                                              5/5
Resolving Dependencies
--> Running transaction check
---> Package manticore.x86_64 0:3.2.0_191017.e526a01-1.el7.centos will be installed
--> Finished Dependency Resolution

Dependencies Resolved

===========================================================================================================================================================================
 Package                            Arch                            Version                                                       Repository                          Size
===========================================================================================================================================================================
Installing:
 manticore                          x86_64                          3.2.0_191017.e526a01-1.el7.centos                             manticore                          8.2 M

Transaction Summary
===========================================================================================================================================================================
Install  1 Package

Total download size: 8.2 M
Installed size: 29 M
Is this ok [y/d/N]: y
Downloading packages:
warning: /var/cache/yum/x86_64/7/manticore/packages/manticore-3.2.0_191017.e526a01-1.el7.centos.x86_64.rpm: Header V4 RSA/SHA1 Signature, key ID 3d2730e2: NOKEY
Public key for manticore-3.2.0_191017.e526a01-1.el7.centos.x86_64.rpm is not installed
manticore-3.2.0_191017.e526a01-1.el7.centos.x86_64.rpm                                                                                              | 8.2 MB  00:00:00
Retrieving key from http://repo.manticoresearch.com/GPG-KEY-manticore
Importing GPG key 0x3D2730E2:
 Userid     : "Manticore Search <support@manticoresearch.com>"
 Fingerprint: 4d0b 7e7d 0a88 6301 b7e2 f7d0 14d6 12db 3d27 30e2
 From       : http://repo.manticoresearch.com/GPG-KEY-manticore
Is this ok [y/N]: y
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Installing : manticore-3.2.0_191017.e526a01-1.el7.centos.x86_64                                                                                                      1/1
Failed to open '/usr/lib/tmpfiles.d/searchd.conf', ignoring: No such file or directory

Manticore installed!
Now create a full-text index, start the search daemon, and you're all set.

To manage indexes:
    editor /etc/sphinx/sphinx.conf

To rebuild all disk indexes:
    sudo -u manticore indexer --all --rotate

To start/stop search daemon:
    systemctl start/stop searchd

To query search daemon using MySQL client:
    mysql -h 0 -P 9306
    mysql> SELECT * FROM test1 WHERE MATCH('test');

See the manual at /usr/share/doc/manticore-3.2.0_191017.e526a01 for details.

For commercial support please contact Manticore Software Ltd at
https://manticoresearch.com/contact/

  Verifying  : manticore-3.2.0_191017.e526a01-1.el7.centos.x86_64                                                                                                      1/1

Installed:
  manticore.x86_64 0:3.2.0_191017.e526a01-1.el7.centos

Complete!
[root@15f7b987a0a5 /]#

[root@15f7b987a0a5 /]# searchd -v
Manticore 3.2.0 e526a01@191017 release
Copyright (c) 2001-2016, Andrew Aksyonoff
Copyright (c) 2008-2016, Sphinx Technologies Inc (http://sphinxsearch.com)
Copyright (c) 2017-2019, Manticore Software LTD (http://manticoresearch.com)

[root@15f7b987a0a5 /]#

Can you show your /etc/yum.repos.d/manticore.repo contents? Mine is:

[root@15f7b987a0a5 /]# cat /etc/yum.repos.d/manticore.repo
[manticore]
name=Manticore Repository
baseurl=http://repo.manticoresearch.com/repository/manticoresearch/release/centos/$releasever/$basearch
enabled=1
gpgcheck=1
gpgkey=http://repo.manticoresearch.com/GPG-KEY-manticore
priority=1

[manticore-dev]
name=Manticore Repository
baseurl=http://repo.manticoresearch.com/repository/manticoresearch/dev/centos/$releasever/$basearch
enabled=1
gpgcheck=1
gpgkey=http://repo.manticoresearch.com/GPG-KEY-manticore
priority=1

I finally was able to get it to work after
yum remove Manticore-repo.noarch 0:0.0.1-1
used yum-config-manager to disable repo
From the yum-config-manager disable report deleted all file locations that referred to the repo, including cache
then did a
yum clean all
yum update
then
yum install http://repo.manticoresearch.com/manticore-repo.noarch.rpm
yum install manticore

Here is the issue I have run into regarding documentation and using Manticore – Which I’m new to, I currently use Solr.

I’m running on Centos 7.7, so I start with chapter
3.2 Installing Manticore packages on RedHat and CentOS

after that is complete, I pass the other chapters for installs on different platforms and I proceed to:
3.8 Quick Manticore usage tour

At that point, the steps fail with various messages because the items specified in the quick tour instructions do not exist.

If I go back to chapter “2.2 Getting Started using official packages, 2.2.2 Running queries” I find that there are different instructions than chapter “3.8 Quick Manticore usage tour”. If I go back to chapter 2.2, complete the some of the instructions there, I’m able to fill in the holes and get some of the “3.8 Quick Manticore usage tour” items to work. So, I’m trying to run through it.

So, at least for Centos, you need to complete chapter section “3.2 Installing Manticore packages on RedHat and CentOS” then go back do parts of “2.2 Getting Started using official packages” and then go on to “3.8 Quick Manticore usage tour

The documentation probably needs to be updated to reflect the order of the process after installation so that after an install, regardless of platform, everyone runs the same steps. Because right now they are different.

Are you aware of https://play.manticoresearch.com/ ? I think that’s exactly what you need as unlike the documentation there’s no chance it will fail :slight_smile: It will walk you through the basic things and the most important use cases. Please give it a try and let us know.

I agree our documentation is not perfect. We need to improve it significantly.

Thanks, I have everything working now. I have not tried play.manticoresearch.com, but I will have a look at it.
I plan to do some work with UDFs/Plugins and will need compile from source and edit/debug with CLion which will be an experience in and of itself.

Great. On the plugins and UDFs: you can write them in C as well as in Go. The latter has an overhead, very little (few microseconds per call), but in some cases it may be crucial in some cases, e.g. when you have many documents and your function has to examine each. On the other hand Go allows to write a function much sooner and easier. Here’s an example plugins/curl at master · manticoresoftware/plugins · GitHub

The C example is here plugins/mysql_fetch at master · manticoresoftware/plugins · GitHub

I’m seeing the same issues on Amazon Linux 2 (Kernel 5.1)

amzn2extra-php7.2                                                                                                                | 3.0 kB  00:00:00
amzn2extra-vim                                                                                                                   | 3.0 kB  00:00:00
http://repo.manticoresearch.com/repository/manticoresearch/release/centos/2/x86_64/repodata/repomd.xml: [Errno 14] HTTP Error 404 - Not Found
Trying other mirror.


 One of the configured repositories failed (Manticore Repository),
 and yum doesn't have enough cached data to continue. At this point the only
 safe thing yum can do is fail. 

The fact that it is a 404 error is what gets me asking a query here and not sure if its a server issue or an issue on my end any insights the above query looks the same but then discusses other things.

Hi. Can you try reinstalling the repo package?

sudo yum install https://repo.manticoresearch.com/manticore-repo.noarch.rpm
sudo yum install https://repo.manticoresearch.com/manticore-repo.noarch.rpm

Loaded plugins: extras_suggestions, langpacks, priorities, update-motd
manticore-repo.noarch.rpm                                                                                                        | 6.7 kB  00:00:00
Examining /var/tmp/yum-root-FvYIyM/manticore-repo.noarch.rpm: manticore-repo-0.0.1-1.noarch
/var/tmp/yum-root-FvYIyM/manticore-repo.noarch.rpm: does not update installed package.
Error: Nothing to do

I can go back to a prior image and redo if that would be useful however when I did this the first time

 sudo yum install https://repo.manticoresearch.com/manticore-repo.noarch.rpm
Loaded plugins: extras_suggestions, langpacks, priorities, update-motd
manticore-repo.noarch.rpm                                                                                                        | 6.7 kB  00:00:00
Examining /var/tmp/yum-root-i4LDPe/manticore-repo.noarch.rpm: manticore-repo-0.0.1-1.noarch
Marking /var/tmp/yum-root-i4LDPe/manticore-repo.noarch.rpm to be installed
Resolving Dependencies
--> Running transaction check
---> Package manticore-repo.noarch 0:0.0.1-1 will be installed
--> Finished Dependency Resolution
amzn2-core/2/x86_64                                                                                                              | 3.7 kB  00:00:00

Dependencies Resolved

========================================================================================================================================================
 Package                               Arch                          Version                        Repository                                     Size
========================================================================================================================================================
Installing:
 manticore-repo                        noarch                        0.0.1-1                        /manticore-repo.noarch                        463

Transaction Summary
========================================================================================================================================================
Install  1 Package

Total size: 463
Installed size: 463
Is this ok [y/d/N]: y
Is this ok [y/d/N]: y
Downloading packages:
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Installing : manticore-repo-0.0.1-1.noarch                                                                                                        1/1
  Verifying  : manticore-repo-0.0.1-1.noarch                                                                                                        1/1

Installed:
  manticore-repo.noarch 0:0.0.1-1

Complete!

I’ve reproduced the issue on my side and am looking into it.

The problem is with $releasever in line:

baseurl=http://repo.manticoresearch.com/repository/manticoresearch/release/centos/$releasever/$basearch

in /etc/yum.repos.d/manticore.repo.

You can replace it manually with 7 (which is the expected value for Centos 7).

How it works:

  • you install manticore-repo
  • it installs the above file where it’s said baseurl=.../$releasever/...
  • it works fine for Centos 7 / 8
  • but not for Amazon Linux where the value is 2 and makes the link invalid.

It may be considered ok since we didn’t say anywhere that this manticore-repo suits Amazon Linux. What we say is:

We’ll think if we can do something, so the YUM repo supports Amazon Linux, but for the time being you can install packages manually:

e.g.:

yum install https://repo.manticoresearch.com/repository/manticoresearch/release/centos/7/x86_64/manticore-4.2.0_211223.15e927b-1.el7.centos.x86_64.rpm https://repo.manticoresearch.com/repository/manticoresearch/release/centos/7/x86_64/manticore-columnar-lib-1.11.4_211223.327b3d4-1.el7.centos.x86_64.rpm

to install both Manticore Search and Manticore Columnar Library.

Or update the repository file manually as suggested above.

Thanks for the explanation that makes perfect sense. (sometimes being clever causes issues)

yum install https://repo.manticoresearch.com/repository/manticoresearch/release/centos/7/x86_64/manticore-4.2.0_211223.15e927b-1.el7.centos.x86_64.rpm https://repo.manticoresearch.com/repository/manticoresearch/release/centos/7/x86_64/manticore-columnar-lib-1.11.4_211223.327b3d4-1.el7.centos.x86_64.rpm

Does what is expected and I will investigate - I’m upgrading from an old version of Sphinx Search and your pitch looks like a good way forward for us.

PS When I was looking at the instructions I tried to do the copy from the “7” and of course that was just the main unit and not the Columnar Library which I couldn’t find an equivalent link to however your above example of course solved the issues fully.

Thanks for your help much appreciated, and apologies for assuming that Amazon Linux 2 would work :slight_smile: