Koozali.org: home of the SME Server

Uninterruptable Power Supply:LatestGeekery

Offline ElFroggio

  • *
  • 262
  • +0/-0
Uninterruptable Power Supply:LatestGeekery
« on: January 24, 2015, 11:06:40 PM »
Hi,

I was trying to use a more recent version of NUT so I found: http://wiki.contribs.org/Uninterruptable_Power_Supply:LatestGeekery

I'm having problem with the udev rules and trigger device detection:

Code: [Select]
udevcontrol reload_rules
udevtrigger

udevcontrol and udevtrigger do not exist. Where are they? How are they installed?


Thanks

Syv

Offline janet

  • *****
  • 4,812
  • +0/-0
Re: Uninterruptable Power Supply:LatestGeekery
« Reply #1 on: January 25, 2015, 01:08:25 AM »
Syv

Did you follow all the steps in that Howto ?
Did you check what you did ie look at history of commands to ensure they were correct ?
Did you check the settings for the new repo ?
Did you check the newer rpm actually got installed ?
Did you check that the links are in place & correct ?

Quote
I was trying to use a more recent version of NUT so I found: http://wiki.contribs.org/Uninterruptable_Power_Supply:LatestGeekery

Please search before asking, an answer may already exist.
The Search & other links to useful information are at top of Forum.

Offline ElFroggio

  • *
  • 262
  • +0/-0
Re: Uninterruptable Power Supply:LatestGeekery
« Reply #2 on: January 25, 2015, 01:29:56 AM »
Did you follow all the steps in that Howto ?
Yes
Did you check what you did ie look at history of commands to ensure they were correct ?
Yes
Did you check the settings for the new repo ?
Yes

/sbin/e-smith/db yum_repositories set geekery repository \
 Name 'geekery repository' \
 BaseURL 'http://geekery.altervista.org/geekery/el6/$basearch' \
 EnableGroups no \
 GPGCheck yes \
 GPGKey http://geekery.altervista.org/download.php?filename=GEEKERY-GPG-KEY \
 Visible no \
 status disabled

signal-event yum-modify

Did you check the newer rpm actually got installed ?
Yes

yum --enablerepo=geekery update nut

went through it

Did you check that the links are in place & correct ?
How? Just read the instructions doesn't help me. I did, cut and paste the lines of code and I'm stuck. Have you tried it yourself?

/Syv

Offline janet

  • *****
  • 4,812
  • +0/-0
Re: Uninterruptable Power Supply:LatestGeekery
« Reply #3 on: January 25, 2015, 01:49:59 AM »
ElFroggio

Running these commands would be more informative re the actual state of your server
db yum_repositories show geekery

rpm -q nut
 & compare the nut version to a standard install

cd to the folder where the link was created & do
ls -al
to see the link is there & appears correct

I tried issuing those udev commands on a mostly unmodified sme9 & got
bash command not found
but I have not run through the whole procedure as yet.
I suspect maybe a path issue ???

Please search before asking, an answer may already exist.
The Search & other links to useful information are at top of Forum.

Offline janet

  • *****
  • 4,812
  • +0/-0
Re: Uninterruptable Power Supply:LatestGeekery
« Reply #4 on: January 25, 2015, 02:35:11 AM »
ElFroggio

After configuring the el6 repo on sme9 I get a repo error

yum update --enablerepo=geekery nut

Loaded plugins: fastestmirror, smeserver
Setting up Update Process
Loading mirror speeds from cached hostfile
 * base: mirror.ventraip.net.au
 * smeaddons: koozali.groenz.co.nz
 * smeextras: koozali.groenz.co.nz
 * smeos: koozali.groenz.co.nz
 * smeupdates: koozali.groenz.co.nz
 * updates: mirror.rackcentral.com.au
http://geekery.altervista.org/geekery/el6/i386/repodata/repomd.xml: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404 Not Found"
Trying other mirror.
Error: Cannot retrieve repository metadata (repomd.xml) for repository: geekery. Please verify its path and try again


I did try issuing
yum clean all
&
yum clean metadata
but still get the same error, so maybe something is temporarily wrong with the repo.


Edit: OK a little update.
I did configure the el5 geekery repo on sme9 & the yum update command ran, although with errors re dependency issues while trying to install el5 packagfes on el6. This is understandable as it was just for test purposes to see what the problem is with geekery repos.

So I think geekery needs to fix the repomd.xml file for the el6 repo
« Last Edit: January 25, 2015, 02:42:12 AM by janet »
Please search before asking, an answer may already exist.
The Search & other links to useful information are at top of Forum.

Offline ElFroggio

  • *
  • 262
  • +0/-0
Re: Uninterruptable Power Supply:LatestGeekery
« Reply #5 on: January 25, 2015, 03:06:16 AM »
Thanks for investigating.

On Thursday when I tried it, the geekery was OK, it installed the new version of NUT. It showed v: 2.7.2

Couldn't get it to work, so I wiped out and reinstalled the plain sme9 that reinstalled nut back to:

Code: [Select]
upsd -V
Network UPS Tools upsd 2.6.5

BTW, is there a better way of downgrading. yum downgrade nut didn't work.

/Syv

Offline janet

  • *****
  • 4,812
  • +0/-0
Re: Uninterruptable Power Supply:LatestGeekery
« Reply #6 on: January 25, 2015, 03:29:14 AM »
ElFroggio

With great care:
To remove geekery nut & reqd pkgs (as per what was installed for me)
rpm -e --nodeps nut nut-client powerman
rpm -q nut nut-client powerman
(should show none installed)

To install current standard pkgs & dependencies
yum install nut

just to be sure you have the latest standard pkgs do
yum upgrade

signal-event post-upgrade
signal-event reboot

should do it
Please search before asking, an answer may already exist.
The Search & other links to useful information are at top of Forum.

Offline janet

  • *****
  • 4,812
  • +0/-0
Re: Uninterruptable Power Supply:LatestGeekery
« Reply #7 on: January 25, 2015, 04:56:52 AM »
ElFroggio

Quote
On Thursday when I tried it, the geekery was OK, it installed the new version of NUT. It showed v: 2.7.2
Couldn't get it to work, so I wiped out and reinstalled the plain sme9 that reinstalled nut back to:
Network UPS Tools upsd 2.6.5

That's all good but you should really lodge a bug so that whatever the problem is (ie pkgs or documentation or ???) it will get fixed.
Please do so & report your experiences.
Post the bug number here for future reference
Thanks
Please search before asking, an answer may already exist.
The Search & other links to useful information are at top of Forum.

Offline ElFroggio

  • *
  • 262
  • +0/-0
Re: Uninterruptable Power Supply:LatestGeekery
« Reply #8 on: January 25, 2015, 09:55:15 PM »
ElFroggio

With great care:

Perfect, thanks will do.

/Syv

Offline ElFroggio

  • *
  • 262
  • +0/-0
Re: Uninterruptable Power Supply:LatestGeekery
« Reply #9 on: January 25, 2015, 10:08:26 PM »