Cannot install due to supervisor error #1

Closed
opened 3 years ago by galacticalex · 8 comments

Problem

After installing the dependencies listed here: https://git.law/newroco/searchanddisplace-ingest#cyclone-server-requirements and then following installation instructions here: https://git.law/newroco/searchanddisplace-ingest#rocket-installation

running the following command

systemctl enable supervisor

results in

Failed to enable unit: Unit file supervisor.service does not exist.

I'm not familiar with supervisor. So I don't know if this issue is related to that package, or if there is a file missing in the repo. Web-search doesn't provide any useful information.

System information

uname -a

Linux fedora 5.13.19-200.fc34.x86_64 #1 SMP Sat Sep 18 16:32:24 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux

nix --version

nix (Nix) 2.3.15

Commands were run using bash.

**Problem** After installing the dependencies listed here: https://git.law/newroco/searchanddisplace-ingest#cyclone-server-requirements and then following installation instructions here: https://git.law/newroco/searchanddisplace-ingest#rocket-installation running the following command `systemctl enable supervisor` results in `Failed to enable unit: Unit file supervisor.service does not exist.` I'm not familiar with supervisor. So I don't know if this issue is related to that package, or if there is a file missing in the repo. Web-search doesn't provide any useful information. **System information** `uname -a` Linux fedora 5.13.19-200.fc34.x86_64 #1 SMP Sat Sep 18 16:32:24 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux `nix --version` nix (Nix) 2.3.15 Commands were run using bash.

@galacticalex those instructions were written for Ubuntu. I see you are running on fedora, with which I'm not very familiar, but from the error message you got, I'll assume it uses systemd as well as Ubuntu does.

Can you check that you really have installed supervisor? Not sure how you do that on Fedora, but a quick google search should help you with that. NOTE: apt-get is the package installer for Ubuntu (and Debian deriaved distros), while Fedora has yum as a package installer if I'm not mistaken

If yes, you could also check the list of your services with

systemctl list-units --type=service

or

systemctl list-units --type=service | grep supervisor

if you want to search directly for supervisor service

@galacticalex those instructions were written for Ubuntu. I see you are running on fedora, with which I'm not very familiar, but from the error message you got, I'll assume it uses systemd as well as Ubuntu does. Can you check that you really have installed supervisor? Not sure how you do that on Fedora, but a quick google search should help you with that. **NOTE**: `apt-get` is the package installer for Ubuntu (and Debian deriaved distros), while Fedora has `yum` as a package installer if I'm not mistaken If yes, you could also check the list of your services with ``` systemctl list-units --type=service ``` or ``` systemctl list-units --type=service | grep supervisor ``` if you want to search directly for supervisor service

On Ubuntu 20.04 it's working perfect !
If you have EPEL repo in your /etc/yum.repos.d/ you can run yum install supervisor and it should work.

On Ubuntu 20.04 it's working perfect ! If you have EPEL repo in your `/etc/yum.repos.d/` you can run `yum install supervisor` and it should work.
Poster

Thanks for the responses! Here is where I'm at now (unfortunately, the same error occurs)...

Initially, I installed supervisor using pip by following the instructions given by the link in the server requirements https://git.law/newroco/searchanddisplace-ingest#cyclone-server-requirements. Perhaps that was misleading.

I've uninstalled the pip version.

So I installed supervisor using the Fedora package manager yum (a.k.a. dnf) as suggested by @da.trincu with the following:

sudo dnf install supervisor

and I can see that has installed correctly, because when I run

supervisorctl

a new prompt appears that looks like this

supervisor>

Next I checked for the service as requested by @emilian.mitocariu with

systemctl list-units --type=service | grep supervisor

but that provides no results.

In addition, going back to the installation instructions and running

systemctl enable supervisor

still results in

Failed to enable unit: Unit file supervisor.service does not exist.

Perhaps there's a one time configuration required for supervisor that's not included in the instructions?

Thanks for the responses! Here is where I'm at now (unfortunately, the same error occurs)... Initially, I installed supervisor using **pip** by following the instructions given by the link in the server requirements https://git.law/newroco/searchanddisplace-ingest#cyclone-server-requirements. Perhaps that was misleading. I've uninstalled the pip version. So I installed supervisor using the Fedora package manager **yum** (a.k.a. dnf) as suggested by @da.trincu with the following: `sudo dnf install supervisor` and I can see that has installed correctly, because when I run `supervisorctl` a new prompt appears that looks like this `supervisor>` Next I checked for the service as requested by @emilian.mitocariu with `systemctl list-units --type=service | grep supervisor` but that provides no results. In addition, going back to the installation instructions and running `systemctl enable supervisor` still results in `Failed to enable unit: Unit file supervisor.service does not exist.` Perhaps there's a one time configuration required for supervisor that's not included in the instructions?

You could try to force it with this:
wget https://gist.githubusercontent.com/mozillazg/6cbdcccbf46fe96a4edd/raw/2f5c6f5e88fc43e27b974f8a4c19088fc22b1bd5/supervisord.service -O /usr/lib/systemd/system/supervisord.service
Then:
systemctl start supervisord

You could try to force it with this: `wget https://gist.githubusercontent.com/mozillazg/6cbdcccbf46fe96a4edd/raw/2f5c6f5e88fc43e27b974f8a4c19088fc22b1bd5/supervisord.service -O /usr/lib/systemd/system/supervisord.service` Then: `systemctl start supervisord`
Poster

You could try to force it with this:
wget https://gist.githubusercontent.com/mozillazg/6cbdcccbf46fe96a4edd/raw/2f5c6f5e88fc43e27b974f8a4c19088fc22b1bd5/supervisord.service -O /usr/lib/systemd/system/supervisord.service
Then:
systemctl start supervisord

No luck, same error (on the Fedora system).

I spun up an Ubuntu 20.04 VM and supervisor is working as expected (following the installation instructions https://git.law/newroco/searchanddisplace-ingest#rocket-installation).

I'll work on this a bit more and see if I can determine if there's a difference with supervisor between the OSes.

> You could try to force it with this: > `wget https://gist.githubusercontent.com/mozillazg/6cbdcccbf46fe96a4edd/raw/2f5c6f5e88fc43e27b974f8a4c19088fc22b1bd5/supervisord.service -O /usr/lib/systemd/system/supervisord.service` > Then: > `systemctl start supervisord` No luck, same error (on the Fedora system). I spun up an Ubuntu 20.04 VM and supervisor is working as expected (following the installation instructions https://git.law/newroco/searchanddisplace-ingest#rocket-installation). I'll work on this a bit more and see if I can determine if there's a difference with supervisor between the OSes.
Poster

supervisor 4.2.2 is installed when using pip on each of the machines.

I'm also having trouble installing ingest on Ubuntu 20.04 anyway, so, unfortunately, for now I have no more information on this issue.

supervisor 4.2.2 is installed when using `pip` on each of the machines. I'm also having trouble installing ingest on Ubuntu 20.04 anyway, so, unfortunately, for now I have no more information on this issue.
Owner

Dear galacticalex,
You said you had trouble with supervisor and then that it works fine on ubuntu 20.04 you did not mention what other problems you are having with installing ingest on ubuntu. Or do you intend to close this issue because it was related to supervisor and add more info on new issues?

Dear galacticalex, You said you had trouble with supervisor and then that it works fine on ubuntu 20.04 you did not mention what other problems you are having with installing ingest on ubuntu. Or do you intend to close this issue because it was related to supervisor and add more info on new issues?
Poster

Dear galacticalex,
You said you had trouble with supervisor and then that it works fine on ubuntu 20.04 you did not mention what other problems you are having with installing ingest on ubuntu. Or do you intend to close this issue because it was related to supervisor and add more info on new issues?

@lucianpricop if necessary I will add more info in another issue.

> Dear galacticalex, > You said you had trouble with supervisor and then that it works fine on ubuntu 20.04 you did not mention what other problems you are having with installing ingest on ubuntu. Or do you intend to close this issue because it was related to supervisor and add more info on new issues? @lucianpricop if necessary I will add more info in another issue.
lucianpricop closed this issue 2 years ago
Sign in to join this conversation.
No Label
No Milestone
No project
No Assignees
4 Participants
Notifications
Due Date

No due date set.

Dependencies

This issue currently doesn't have any dependencies.

Loading…
There is no content yet.