Author Topic: Software Management  (Read 4280 times)

Mammut

  • Zen Apprentice
  • *
  • Posts: 24
  • Karma: +0/-0
    • View Profile
Software Management
« on: July 21, 2009, 09:22:19 am »
Hello,

i tried ebox since Version 1.0.
Now i am using Version 1.2 on a mini-itx board with 1.5 GHz and 1GB RAM and 370GB Harddisk.
The Web-Interface is a bit slow but its right for me.
No to the question:
The Software Management is currently unavailable for me.
Message:
Quote
Software management is currently locked by ebox-software. Please, try again later.
I never get the software list in this Version. I had seen the list in earlier versions from ebox.

At Console i can run the command
apt-get update
and
apt-get upgrade
No errors.
Has anybody an idea to fix this problem?
Thank you for your help
« Last Edit: July 26, 2009, 10:39:07 am by Mammut »

javi

  • Zen Hero
  • *****
  • Posts: 1042
  • Karma: +0/-0
    • View Profile
Re: Software Management
« Reply #1 on: July 21, 2009, 09:42:19 am »
Could you please check if you have an apt-get command running?

Mammut

  • Zen Apprentice
  • *
  • Posts: 24
  • Karma: +0/-0
    • View Profile
Re: Software Management
« Reply #2 on: July 21, 2009, 09:59:12 am »
To check if an apt is running i try the command:
Quote
ps uax | grep apt
The result is that there is no running apt

javi

  • Zen Hero
  • *****
  • Posts: 1042
  • Karma: +0/-0
    • View Profile
Re: Software Management
« Reply #3 on: July 21, 2009, 10:03:52 am »
Have you tried more than once? Maybe it was the normal behaviour of the locking mechanisim...

Mammut

  • Zen Apprentice
  • *
  • Posts: 24
  • Karma: +0/-0
    • View Profile
Re: Software Management
« Reply #4 on: July 21, 2009, 10:42:13 am »
I tried it now more than once.
The result is always the same.
I tried to reboot the server and then goto the "Software Management".
But the same result.

sixstone

  • Zentyal Staff
  • Zen Hero
  • *****
  • Posts: 1417
  • Karma: +26/-0
    • View Profile
    • Sixstone's blog
Re: Software Management
« Reply #5 on: July 21, 2009, 12:18:18 pm »
If you are sure that there is no apt-get process running, then remove the lock file. Something should happen. The lock file is located at /var/lib/ebox/tmp/ebox-software-lock.

Best regards,
My secret is my silence...

Mammut

  • Zen Apprentice
  • *
  • Posts: 24
  • Karma: +0/-0
    • View Profile
Re: Software Management
« Reply #6 on: July 21, 2009, 01:35:20 pm »
Good Idea.
But nothing happens.
In this directory there are many lock-Files.
i removed the ebox-software-lock-File.
Also after a reboot the File does not appear again but still the errormessage is in the Webinterface from ebox.
i am sorry....
nothing happens
Here are the lock-Files in the /var/lib/ebox/tmp Directory
/var/lib/postgrey/postgrey.lock
/var/lib/ebox/tmp/dhcp.lock
/var/lib/ebox/tmp/jabber.lock
/var/lib/ebox/tmp/apache.lock
/var/lib/ebox/tmp/printers.lock
/var/lib/ebox/tmp/logs.lock
/var/lib/ebox/tmp/l7-protocols.lock
/var/lib/ebox/tmp/services.lock
/var/lib/ebox/tmp/monitor.lock
/var/lib/ebox/tmp/mailfilter.lock
/var/lib/ebox/tmp/openvpn.lock
/var/lib/ebox/tmp/trafficshaping.lock
/var/lib/ebox/tmp/firewall.lock
/var/lib/ebox/tmp/asterisk.lock
/var/lib/ebox/tmp/egroupware.lock
/var/lib/ebox/tmp/mail.lock
/var/lib/ebox/tmp/ids.lock
/var/lib/ebox/tmp/usercorner.lock
/var/lib/ebox/tmp/events.lock
/var/lib/ebox/tmp/ebackup.lock
/var/lib/ebox/tmp/objects.lock
/var/lib/ebox/tmp/squid.lock
/var/lib/ebox/tmp/antivirus.lock
/var/lib/ebox/tmp/users.lock
/var/lib/ebox/tmp/ca.lock
/var/lib/ebox/tmp/software.lock
/var/lib/ebox/tmp/network.lock
/var/lib/ebox/tmp/webserver.lock
/var/lib/ebox/tmp/dns.lock
/var/lib/ebox/tmp/samba.lock
/var/lib/ebox/tmp/ntp.lock

I think that is correct

Mammut

  • Zen Apprentice
  • *
  • Posts: 24
  • Karma: +0/-0
    • View Profile
Re: Software Management
« Reply #7 on: July 22, 2009, 08:15:25 pm »
Now it is working.
I didnt do anything. ???
It solves it self over night.
thank you very much for your help.

sixstone

  • Zentyal Staff
  • Zen Hero
  • *****
  • Posts: 1417
  • Karma: +26/-0
    • View Profile
    • Sixstone's blog
Re: Software Management
« Reply #8 on: July 22, 2009, 08:31:11 pm »
Hello mammut,

I forgot to tell you to run sudo ebox-software after removing the lock. This is done every midnight to check if there is any update available...

Best regards and thanks for your feedback,
My secret is my silence...

Mammut

  • Zen Apprentice
  • *
  • Posts: 24
  • Karma: +0/-0
    • View Profile
Re: Software Management
« Reply #9 on: July 27, 2009, 06:55:56 pm »
Thank you very much for this reply.
I think that was it.
Now i have a procedure if this error appears the next time.
Best regards
Mammut

melkortheevil

  • Zen Apprentice
  • *
  • Posts: 2
  • Karma: +0/-0
    • View Profile
Re: Software Management
« Reply #10 on: November 22, 2009, 09:14:44 pm »
I installed fresh copy of eBox 1.2.
I am getting following error when trying to open System updates or remove eBox component. Apt is not running on the background.

Code: [Select]
\n$VAR1 = bless( {
                 '-stacktrace' => 'Software management is currently  locked by ebox-software. Please, try again later at /usr/share/perl5/EBox/Software.pm line 572
EBox::Software::_isModLocked(\'EBox::Software=HASH(0x903f0a8)\') called at /usr/share/perl5/EBox/Software.pm line 370
EBox::Software::listPackageRemoveDepends(\'EBox::Software=HASH(0x903f0a8)\', \'ARRAY(0xa9a12cc)\') called at /usr/share/perl5/EBox/CGI/Software/InstallPkgs.pm line 122
EBox::CGI::Software::InstallPkgs::showConfirmationPage(\'EBox::CGI::Software::InstallPkgs=HASH(0xa99d990)\', \'remove\', \'ARRAY(0xa9a12cc)\') called at /usr/share/perl5/EBox/CGI/Software/InstallPkgs.pm line 71
EBox::CGI::Software::InstallPkgs::_process(\'EBox::CGI::Software::InstallPkgs=HASH(0xa99d990)\') called at /usr/share/perl5/EBox/CGI/Base.pm line 261
EBox::CGI::Base::run(\'EBox::CGI::Software::InstallPkgs=HASH(0xa99d990)\') called at /usr/share/perl5/EBox/CGI/Run.pm line 120
EBox::CGI::Run::run(\'EBox::CGI::Run\', \'Software/InstallPkgs\', \'EBox\') called at /usr/share/ebox/cgi/ebox.cgi line 19
ModPerl::ROOT::ModPerl::Registry::usr_share_ebox_cgi_ebox_2ecgi::handler(\'Apache2::RequestRec=SCALAR(0xa084258)\') called at /usr/lib/perl5/ModPerl/RegistryCooker.pm line 204
eval {...} called at /usr/lib/perl5/ModPerl/RegistryCooker.pm line 204
ModPerl::RegistryCooker::run(\'ModPerl::Registry=HASH(0xa0d9d34)\') called at /usr/lib/perl5/ModPerl/RegistryCooker.pm line 170
ModPerl::RegistryCooker::default_handler(\'ModPerl::Registry=HASH(0xa0d9d34)\') called at /usr/lib/perl5/ModPerl/Registry.pm line 31
ModPerl::Registry::handler(\'ModPerl::Registry\', \'Apache2::RequestRec=SCALAR(0xa084258)\') called at -e line 0
eval {...} called at -e line 0
',
                 '-file' => '/usr/share/perl5/EBox/Software.pm',
                 '-text' => 'Software management is currently  locked by ebox-software. Please, try again later',
                 '-line' => 572,
                 '-package' => 'EBox::Software'
               }, 'EBox::Exceptions::External' );

dragonslayr

  • Zen Warrior
  • ***
  • Posts: 157
  • Karma: +1/-0
    • View Profile
Re: Software Management
« Reply #11 on: November 23, 2009, 06:51:03 am »
I believe sixstone just answered that question.

Remove this file
/var/lib/ebox/tmp/ebox-software-lock

Then run this command
sudo ebox-software

melkortheevil

  • Zen Apprentice
  • *
  • Posts: 2
  • Karma: +0/-0
    • View Profile
Re: Software Management
« Reply #12 on: November 25, 2009, 09:52:03 am »
I've already followed the instructions. Interesting, it didn't work last time but works this time.
Thank you.