Skip to content
This repository has been archived by the owner on Jul 18, 2022. It is now read-only.

Sphinx is not installing on Debian 7.2 #1

Open
sobit opened this issue Dec 28, 2013 · 8 comments
Open

Sphinx is not installing on Debian 7.2 #1

sobit opened this issue Dec 28, 2013 · 8 comments
Assignees

Comments

@sobit
Copy link

sobit commented Dec 28, 2013

Getting these errors during the vagrant provision.

Error: Execution of '/usr/bin/apt-get -q -y -o DPkg::Options::=--force-confold install sphinxsearch' returned 100: Reading package lists...
Building dependency tree...
Reading state information...
The following extra packages will be installed:
  libpq5 libstemmer0d
The following NEW packages will be installed:
  libpq5 libstemmer0d sphinxsearch
0 upgraded, 3 newly installed, 0 to remove and 7 not upgraded.
Need to get 527 kB/4528 kB of archives.
After this operation, 11.6 MB of additional disk space will be used.
Err http://http.us.debian.org/debian/ wheezy/main libpq5 amd64 9.1.9-1
  404  Not Found [IP: 128.30.2.36 80]
Failed to fetch http://http.us.debian.org/debian/pool/main/p/postgresql-9.1/libpq5_9.1.9-1_amd64.deb  404  Not Found [IP: 128.30.2.36 80]
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?

Error: /Stage[main]/Sphinx::Package/Package[sphinx]/ensure: change from purged to present failed: Execution of '/usr/bin/apt-get -q -y -o DPkg::Options::=--force-confold install sphinxsearch' returned 100: Reading package lists...
Building dependency tree...
Reading state information...
The following extra packages will be installed:
  libpq5 libstemmer0d
The following NEW packages will be installed:
  libpq5 libstemmer0d sphinxsearch
0 upgraded, 3 newly installed, 0 to remove and 7 not upgraded.
Need to get 527 kB/4528 kB of archives.
After this operation, 11.6 MB of additional disk space will be used.
Err http://http.us.debian.org/debian/ wheezy/main libpq5 amd64 9.1.9-1
  404  Not Found [IP: 128.30.2.36 80]
Failed to fetch http://http.us.debian.org/debian/pool/main/p/postgresql-9.1/libpq5_9.1.9-1_amd64.deb  404  Not Found [IP: 128.30.2.36 80]
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?

Warning: /Stage[main]/Sphinx::Config/Exec[activate_sphinx]: Skipping because of failed dependencies
Warning: /Stage[main]/Sphinx::Config/File[/etc/sphinxsearch/sphinx.conf]: Skipping because of failed dependencies
Warning: /Stage[main]/Sphinx::Service/Service[sphinxsearch]: Skipping because of failed dependencies
@dvigueras
Copy link

As you can see apt-get can't find the packet at the Debian Repo (404 Not Found).
You have to exec an apt-get update before in order to get the list of the latest packages version.

@sobit
Copy link
Author

sobit commented Dec 28, 2013

How can I force running apt-get before sphinx install? I have puppetlabs/apt module as well.

Secondly, even after manually running apt-get update I'm getting this error:

Error: Could not start Service[sphinxsearch]: Execution of '/etc/init.d/sphinxsearch start' returned 1: 
Error: /Stage[main]/Sphinx::Service/Service[sphinxsearch]/ensure: change from stopped to running failed: Could not start Service[sphinxsearch]: Execution of '/etc/init.d/sphinxsearch start' returned 1: 

@dvigueras
Copy link

You can find more info about apt puppet module here: https://github.com/puppetlabs/puppetlabs-apt

class { 'apt':
always_apt_update => true,
....
}

@sobit
Copy link
Author

sobit commented Dec 28, 2013

And what about this error:

Error: Could not start Service[sphinxsearch]: Execution of '/etc/init.d/sphinxsearch start' returned 1: 
Error: /Stage[main]/Sphinx::Service/Service[sphinxsearch]/ensure: change from stopped to running failed: Could not start Service[sphinxsearch]: Execution of '/etc/init.d/sphinxsearch start' returned 1:

@dvigueras
Copy link

Take a look first to the sphinx logs to find out what's happening.

@sobit
Copy link
Author

sobit commented Dec 28, 2013

/var/log/sphinxsearch directory is empty in my case.

However, if I run the command /etc/init.d/sphinxsearch start manually, I'm getting this error:

Starting sphinxsearch: Sphinx 2.0.4-release (r3135)
Copyright (c) 2001-2012, Andrew Aksyonoff
Copyright (c) 2008-2012, Sphinx Technologies Inc (http://sphinxsearch.com)

using config file '/etc/sphinxsearch/sphinx.conf'...
FATAL: failed to create pid file './sphinxsearch/searchd.pid': No such file or directory

@dvigueras
Copy link

Did you solved the problem ?
I'm gonna close this issue.

@sobit
Copy link
Author

sobit commented Apr 28, 2014

I didn't solve that, but I will test today/tomorrow if this issue is still actual or not and let you know. Thanks.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants