Problem installing Manticore 3.2 on Centos 7.7 with yum


#1

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?


#2

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


#3

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


#4

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


#5

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.


#6

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.


#7

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


#8

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?


#9

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

#10

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


#11

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.


#12

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.


#13

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.


#14

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 https://github.com/manticoresoftware/plugins/tree/master/curl

The C example is here https://github.com/manticoresoftware/plugins/tree/master/mysql_fetch