Author Topic: Bug after update 1.2 to 1.4  (Read 4064 times)

alxkie

  • Zen Apprentice
  • *
  • Posts: 23
  • Karma: +0/-0
    • View Profile
Bug after update 1.2 to 1.4
« on: February 08, 2010, 02:25:28 pm »
Hello all,

after updating ebox 1.2 to 1.4 I have the following problem.

When I submit my password at the administration login I get this error

"A really nasty bug has occurred
Exception
Can't call method "attributes" on an undefined value
Trace
Can't call method "attributes" on an undefined value at /usr/share/perl5/EBox/Ldap.pm line 254."

Can someone help me?

Thanks a lot!

Alex

isaac

  • Zen Warrior
  • ***
  • Posts: 148
  • Karma: +0/-0
    • View Profile
Re: Bug after update 1.2 to 1.4
« Reply #1 on: February 08, 2010, 03:10:59 pm »
Something went wrong in your upgrade, can you verify a few things for us? :)

First of all, let's verify if all the migrations were run:
Code: [Select]
sudo cat /var/lib/ebox/gconf/ebox/modules/users/%gconf.xml
.

You should have a line like:
Code: [Select]
        <entry name="data_version" mtime="1265215644" type="int" value="6">
paste it here to check your 'data_version'.

Then verify using:
Code: [Select]
ps aux | grep slapd
whether slapd is running at all or not.

If it's not running run the following:
Code: [Select]
sudo /usr/sbin/slapd -h "ldap:/// ldapi:/// ldaps:///" -g openldap -u openldap -F /etc/ldap/slapd.d/ -d 256
and paste here the output of that too.

Thanks for the report.

alxkie

  • Zen Apprentice
  • *
  • Posts: 23
  • Karma: +0/-0
    • View Profile
Re: Bug after update 1.2 to 1.4
« Reply #2 on: February 08, 2010, 03:51:51 pm »
Hello Isaac,

thank you for your support!

data_version ist this

 <entry name="_serviceModuleStatus" mtime="1260802969" type="bool" value=           "true">
        </entry>
        <entry name="data_version" mtime="1260884213" type="int" value="4">
        </entry>

the output after  ps aux | grep slapd  is

openldap  5182  0.0  0.3  88344  6092 ?        Ssl  14:50   0:01 /usr/sbin/slapd -h ldap://127.0.0.1:389/ ldapi://%2fvar%2frun%2fslapd%2fldapi/????x-mod=0777 -g openldap -u openldap -F /etc/ldap/slapd.d/
alex      8381  0.0  0.0   3008   776 pts/0    S+   15:43   0:00 grep slapd

the last output is

@(#) $OpenLDAP: slapd 2.4.21 (Jan 19 2010 14:30:07) $
        buildd@iridium:/build/buildd/openldap-2.4.21/debian/build/servers/slapd
daemon: bind(8) failed errno=98 (Address already in use)
hdb_db_open: database "dc=ebox": database already in use.
backend_startup_one (type=hdb, suffix="dc=ebox"): bi_db_open failed! (-1)
bdb_db_close: database "dc=ebox": alock_close failed
slapd stopped.

I have also a problem with samba.

I can access to the shares and I can see all the files but I can´t open the files!

Thanks a lot

Alex

isaac

  • Zen Warrior
  • ***
  • Posts: 148
  • Karma: +0/-0
    • View Profile
Re: Bug after update 1.2 to 1.4
« Reply #3 on: February 08, 2010, 04:31:36 pm »
Ok, something failed upgrading your LDAP database.

I think there should be a new version available of the 'usersandgroups' package. Try installing that one, it should still not work, but it will run something that should help a bit and then we can continue from there.

It'd be great if you can attach the files:
Code: [Select]
/var/lib/ebox/tmp/slapd-master-upgrade.ldif
/var/lib/ebox/tmp/slapd-master-upgrade-ebox.ldif
here.

Thanks

alxkie

  • Zen Apprentice
  • *
  • Posts: 23
  • Karma: +0/-0
    • View Profile
Re: Bug after update 1.2 to 1.4
« Reply #4 on: February 08, 2010, 04:42:35 pm »
I am a linux newbie, so can you say me how I can install the new "usersandgroups" package

and How can I copy the files you want attached at my system. I have only access to ebox by lan with putty.

Sorry for my questions but I am an beginner.

isaac

  • Zen Warrior
  • ***
  • Posts: 148
  • Karma: +0/-0
    • View Profile
Re: Bug after update 1.2 to 1.4
« Reply #5 on: February 08, 2010, 04:49:29 pm »
Ok, let's see, to upgrade to the latest usersandgroups run:
Code: [Select]
sudo apt-get update
sudo apt-get install ebox-usersandgroups

Probably the easiest way for you to get the files out of the system is to run:
Code: [Select]
sudo cp /var/lib/ebox/tmp/slapd-master-upgrade* /usr/share/ebox/www/
.

Then you should be able to access the files through:
Code: [Select]
https://192.168.122.204/data/slapd-master-upgrade.ldif
https://192.168.122.204/data/slapd-master-upgrade-ebox.ldif
using the IP address of your eBox instead of the one I puet.

alxkie

  • Zen Apprentice
  • *
  • Posts: 23
  • Karma: +0/-0
    • View Profile
Re: Bug after update 1.2 to 1.4
« Reply #6 on: February 08, 2010, 04:58:42 pm »
After the install of ebox-usersandgroups the system said the newest version ist running.

and this error when I try to copy
cp: cannot stat `/var/lib/ebox/tmp/slapd-master-upgrade*': No such file or directory

so what should I do?


isaac

  • Zen Warrior
  • ***
  • Posts: 148
  • Karma: +0/-0
    • View Profile
Re: Bug after update 1.2 to 1.4
« Reply #7 on: February 08, 2010, 05:01:11 pm »
Uhm, weird, try to run:
Code: [Select]
dpkg -l | grep usersandgroups
sudo perl /usr/share/ebox-usersandgroups/migration/0005_migrate_new_ldap.pl
and paste the result here.

alxkie

  • Zen Apprentice
  • *
  • Posts: 23
  • Karma: +0/-0
    • View Profile
Re: Bug after update 1.2 to 1.4
« Reply #8 on: February 08, 2010, 05:12:56 pm »
this is the result

alex@Gotthard:~$ dpkg -l | grep usersandgroups
ii  ebox-usersandgroups                   1.4.1-0ubuntu1~ppa1~hardy1                    eBox - Users and Groups
alex@Gotthard:~$ sudo perl /usr/share/ebox-usersandgroups/migration/0005_migrate_new_ldap.pl
[sudo] password for alex:
alex@Gotthard:~$

isaac

  • Zen Warrior
  • ***
  • Posts: 148
  • Karma: +0/-0
    • View Profile
Re: Bug after update 1.2 to 1.4
« Reply #9 on: February 08, 2010, 05:20:10 pm »
Ok, run again:
Code: [Select]
sudo cat /var/lib/ebox/gconf/ebox/modules/users/%gconf.xml
sudo ls /var/lib/ebox/tmp/
and paste here.

alxkie

  • Zen Apprentice
  • *
  • Posts: 23
  • Karma: +0/-0
    • View Profile
Re: Bug after update 1.2 to 1.4
« Reply #10 on: February 08, 2010, 05:23:46 pm »
the result is

alex@Gotthard:~$ sudo cat /var/lib/ebox/gconf/ebox/modules/users/%gconf.xml
<?xml version="1.0"?>
<gconf>
        <entry name="_serviceModuleStatus" mtime="1260802969" type="bool" value="true">
        </entry>
        <entry name="data_version" mtime="1260884213" type="int" value="4">
        </entry>
</gconf>
alex@Gotthard:~$ sudo ls /var/lib/ebox/tmp/
0DkRQ0LxKI.cmd                       lY4pEKAXsQ.cmd
0HxeVfIYpH.cmd                       LzdqRQ7rpV.cmd
0sZ0RtACxZ.cmd                       lzqm5k31mR.cmd
0_tuNo9mOW.cmd                       mailfilter.lock
13NIVouO8t.cmd                       mailfilter_pop_traffic_daily.sql
1_gfF8cMKR.cmd                       mailfilter_pop_traffic_hourly.sql
1LKs4DP2eW.cmd                       mailfilter_pop_traffic_monthly.sql
1oN_Z3MfO8.cmd                       mailfilter_pop_traffic_weekly.sql
1WofV3fdQo.cmd                       mailfilter_smtp_traffic_daily.sql
1ysZs3dZ3e.cmd                       mailfilter_smtp_traffic_hourly.sql
2GgSS_c8Gq.cmd                       mailfilter_smtp_traffic_monthly.sql
2M2cMRSrP7.cmd                       mailfilter_smtp_traffic_weekly.sql
2OB7hYnPBR.cmd                       mailfilter_traffic_daily.sql
3AGEv6R4y3.cmd                       mailfilter_traffic_hourly.sql
3icVc8GPDF.cmd                       mailfilter_traffic_monthly.sql
3XbOsG6s4i.cmd                       mailfilter_traffic_weekly.sql
3XZuyv15Yu.cmd                       mail.lock
43qbHflhjZ.cmd                       mail_traffic_daily.sql
44YNZg4iHe.cmd                       mail_traffic_hourly.sql
4HcjRTEQeJ.cmd                       mail_traffic_monthly.sql
4KZTXYGzUN.cmd                       mail_traffic_weekly.sql
4MNaX0_ms4.cmd                       manageEBoxLogs.lock
4S9VOmqVq7.cmd                       mason.err
53tlNczxAW.cmd                       MbZnEoNbHy.cmd
5aePyyxzDn.cmd                       MC_D_K98oW.cmd
5jXJl4Y5Ph.cmd                       mCsj5o1d4H.cmd
5kBQwEMRYc.cmd                       MDnPpnsT7c.cmd
5sv5so1ijh.cmd                       _M_DvWjDYL.cmd
61Fmj6cT6s.cmd                       mFfTi1k1hg.cmd
6KqjllQmnh.cmd                       mgIfSy7DRM.cmd
6xMSsY2m7P.cmd                       mlcpz_gg35.cmd
7MhHFyfuqG.cmd                       m_omzjj6ql.cmd
7mQLahHaB3.cmd                       monitor.lock
8219a5yDr3.cmd                       MWkI_vXtO0.cmd
8_3622KmNK.cmd                       ncHKMKVMY2.cmd
87bK7sszLP.cmd                       network.lock
88V3T_puEu.cmd                       NGKdNtE2HB.cmd
8EMIIzTA5K.cmd                       NplnLf7mj5.cmd
8OPmvogBqb.cmd                       nsrHRLzOKU.cmd
8toI7UKF1F.cmd                       ntp.lock
91Qlha3pht.cmd                       Nxvn0dIfQc.cmd
9cLrXok5HW.cmd                       nZApOXqeKw.cmd
9M1KFoYtFd.cmd                       o3kyYcIp7f.cmd
9nmbXvcilb.cmd                       O7yloWB6Fs.cmd
9_SNIxQyhy.cmd                       o8lqLmeTWt.cmd
9TEpEvA2li.cmd                       o9tlaKNIv6.cmd
9U98tvtDqc.cmd                       objects.lock
A1ofV3slRZ.cmd                       Ohx5qnmL8A.cmd
_a59tLp7hI.cmd                       OImV6gVplt.cmd
adL1nKp5Rw.cmd                       openvpn.lock
afJ8khYF9d.cmd                       OQWE4D73by.cmd
AiFCAXT5fG.cmd                       oueQupsURI.cmd
AjUTkvAQJ5.cmd                       owVqWKNPAW.cmd
AkoL6lfWoX.cmd                       OzcYr0UYHF.cmd
akxQ54NdNv.cmd                       p3CB7UxH6Z.cmd
antivirus.lock                       p3scanstdout
apache.lock                          packagelist
apache.pid                           Pb9XsoYwYB.cmd
aPPsophmV_.cmd                       PBgWTGzcpf.cmd
asterisk.lock                        pE4gRq9ef7.cmd
b1uHZkZAgI.cmd                       Pf9EUwHkB_.cmd
b3t7gVMtbN.cmd                       pfTxtGcU3p.cmd
BbZXBI477b.cmd                       pgDj2jwnDs.cmd
bc34Jo5v4I.cmd                       phGsGHFxI7.cmd
BJKgl4PGay.cmd                       pop_proxy_filter_traffic_daily.sql
bJQQTyUIG_.cmd                       pop_proxy_filter_traffic_hourly.sql
BmzJN7nm1S.cmd                       pop_proxy_filter_traffic_monthly.sql
_BpMPYycCb.cmd                       pop_proxy_filter_traffic_weekly.sql
BT00hXUOE7.cmd                       pOujus4lBA.cmd
bxsah3sG3M.cmd                       printers.conf.tmp
ca.lock                              printers.lock
CG9z827mae.cmd                       pUqd6xFtuT.cmd
Cgj4FSv5WN.cmd                       q1E7fTXS2D.cmd
counter                              Q2gcP33uOC.cmd
CpZzXcYqMN.cmd                       qgjTWIXk2F.cmd
crontab                              qhbEvqUIBk.cmd
cVAnjX8tNK.cmd                       Qih8Nrl4lJ.cmd
cXzbte437m.cmd                       QJu2VHYVu2.cmd
D2Lx2Ecply.cmd                       qMCqXFLO5c.cmd
d9ANAtPRcl.cmd                       qnIp54CIWa.cmd
dAN4t_G85a.cmd                       QqdFkS6cqo.cmd
De_GuPGZvW.cmd                       qY5vAJifWr.cmd
dhcp.lock                            QYUWNJGNqd.cmd
dns.lock                             QZ91qQbEOw.cmd
downloads                            r2yc8TCC6i.cmd
DURccBkHmM.cmd                       R5v5uvtNRF.cmd
dxttP0yBHZ.cmd                       radius.lock
e6zcxVsJKy.cmd                       rCtgfeMFKY.cmd
E70mt_r1ht.cmd                       remoteservices.lock
eATG2PEfgw.cmd                       rnHtKNUH2s.cmd
ebackup.lock                         RobG3yt6I4.cmd
eboxpackagelist                      roJZoypbDz.cmd
ebox-software-lock                   s5d8mT6DQ4.cmd
ebTvnxbYxy.cmd                       sABWzr7D1q.cmd
egroupware.lock                      samba.lock
ei_i2bquna.cmd                       sAwJz4wX3v.cmd
EnI0y4Cf8L.cmd                       services.lock
Eo5UXEd7Wr.cmd                       SgaNbXMLIA.cmd
EPWYVgLFo3.cmd                       SgXzzsiGf_.cmd
eUq9VuiEB4.cmd                       sh_tgr7wmD.cmd
events_accummulated_daily.sql        SIYf2jJbwq.cmd
events_accummulated_hourly.sql       software.lock
events_accummulated_monthly.sql      squid.lock
events_accummulated_weekly.sql       squid_traffic_daily.sql
events-fifo                          squid_traffic_hourly.sql
events.lock                          squid_traffic_monthly.sql
EwSWUJOLig.cmd                       squid_traffic_weekly.sql
fBfNUjdubf.cmd                       stderr
ffA7GBPBaD.cmd                       sX1E11vV7A.cmd
FI1XqyVXe9.cmd                       T2qb7nG3so.cmd
Fi5CHv6ErE.cmd                       T7DdtvNhoJ.cmd
firewall.lock                        Tgi2P2vHYr.cmd
firewall_packet_traffic_daily.sql    TGRPlENJzd.cmd
firewall_packet_traffic_hourly.sql   thNKe2b4oD.cmd
firewall_packet_traffic_monthly.sql  tLT_Pu95yb.cmd
firewall_packet_traffic_weekly.sql   TMlcJBNO49.cmd
FJ1ua_7BWT.cmd                       trafficshaping.lock
fK80hhL0cg.cmd                       txrhaB91pB.cmd
fLgN6VqOtJ.cmd                       tzfiSG1ToN.cmd
FLvPEoGEC_.cmd                       U2ldwHuMCA.cmd
FNtaMdw8E3.cmd                       U7kxDDX1k0.cmd
FqPMf6j_7h.cmd                       UcSpZ9IyX1.cmd
fuOMcmUtb8.cmd                       ue7KBqnofz.cmd
Fvpkv6I7m2.cmd                       ukeWiFcSoE.cmd
G1vXI0YE0t.cmd                       UMb5Y27YyH.cmd
g2cYakzLVZ.cmd                       umVvlR90_m.cmd
gbqrxhymxP.cmd                       usercorner.lock
GiB5Xq9G3U.cmd                       users.lock
GL4CWVvwVM.cmd                       utlpNNVTjy.cmd
gTR5UJAuaM.cmd                       uuIn9Jksyf.cmd
GVHe9hiQdd.cmd                       UV7ygOkLwu.cmd
h9iyfQPInb.cmd                       UxfzihZq6q.cmd
hKdlA_3K83.cmd                       UxnA3QMgCg.cmd
hLbaR_9uxD.cmd                       v0Q3_6dFmZ.cmd
HrIMTwkNY_.cmd                       veExL6rXAN.cmd
HzdKA8UEG_.cmd                       vEUpUiYwkP.cmd
hZn3iAKnL9.cmd                       VMxZUDkedg.cmd
ids_alert_daily.sql                  vOt3oh5YGk.cmd
ids_alert_hourly.sql                 VPRC7W9KmG.cmd
ids_alert_monthly.sql                vRhs8Y8KlV.cmd
ids_alert_weekly.sql                 VsJt1DCWYU.cmd
ids.lock                             vt_tm_FOll.cmd
iDtjvpydfu.cmd                       VZJA_c1jBU.cmd
igYxibZYxB.cmd                       w4kFXMKL9I.cmd
ihyXWdlWDE.cmd                       wcdidbbRZj.cmd
IMoP_wcuk1.cmd                       webmail.lock
interfaces                           webserver.lock
IoNzKnw6D_.cmd                       woUaQuQ0Ht.cmd
jabber.lock                          x2y8e8BQAm.cmd
JIZKxvaqNp.cmd                       x4wHw4eYJh.cmd
JLuF7VNJey.cmd                       XEf9QWlL4Z.cmd
jnHEIgdh7M.cmd                       XGxaD1YCSv.cmd
Jta_BDXA2R.cmd                       XHwFc5rK6E.cmd
jU2HaY6Yxc.cmd                       xm9XX5DStX.cmd
k7iLA3MVaE.cmd                       XoUObjkIGW.cmd
Kcjj9QoUVf.cmd                       Xp4MWIi_AK.cmd
kiZxAm0Sdd.cmd                       XqLfXF817M.cmd
kNNi3hWjAg.cmd                       XWtik7CIZh.cmd
knS5WhQyaT.cmd                       XXGU84JLD5.cmd
KSpQCveFUk.cmd                       XZKQ2Z3c9f.cmd
KT6OyIrvLE.cmd                       Y03Qvzoluf.cmd
kwpLCOTdQQ.cmd                       Y72C_BLdLO.cmd
KWUCYJ93te.cmd                       y7tcsvKMBb.cmd
kzefcqQGR0.cmd                       yhv51waJdE.cmd
L2h0oH6G0i.cmd                       YRUrhBUr_6.cmd
L56vTKreqT.cmd                       YzqyxrbiHq.cmd
l7-protocols.lock                    z2amcwezc3.cmd
L95vF7lS44.cmd                       ZAiTDTaHkt.cmd
l9_6ewEnP9.cmd                       ZatFWBdxFA.cmd
latestversion                        zEk2apS_vZ.cmd
linkstatus                           __Zha1BwCg.cmd
LkJwuoU2xP.cmd                       ZJLGZtzx8A.cmd
logs.lock                            ZM2TbkZimM.cmd
Lq8sFObneV.cmd                       zo3ULuRNg0.cmd
LUykBz4Oni.cmd                       zU73jsXBvr.cmd
lv1eaA72Rm.cmd                       ZZYm3Mmgco.cmd
alex@Gotthard:~$

isaac

  • Zen Warrior
  • ***
  • Posts: 148
  • Karma: +0/-0
    • View Profile
Re: Bug after update 1.2 to 1.4
« Reply #11 on: February 08, 2010, 05:29:25 pm »
Ok, something went wrong running:
Code: [Select]
sudo perl /usr/share/ebox-usersandgroups/migration/0005_migrate_new_ldap.pl

Can you run:
Code: [Select]
sudo tail -f /var/log/ebox/ebox.log
hit enter a few times to put some white space there, and then, in another terminal run again:
Code: [Select]
sudo perl /usr/share/ebox-usersandgroups/migration/0005_migrate_new_ldap.pl
and see if the tail -f command outputs something and then paste it here?

Thanks!

alxkie

  • Zen Apprentice
  • *
  • Posts: 23
  • Karma: +0/-0
    • View Profile
Re: Bug after update 1.2 to 1.4
« Reply #12 on: February 08, 2010, 05:37:36 pm »
this is the output:

alex@Gotthard:~$ sudo tail -f /var/log/ebox/ebox.log
Exit value: 2
2010/02/08 16:37:06 INFO> Service.pm:625 EBox::Module::Service::restartService - Restarting service for module: apache
2010/02/08 17:09:32 DEBUG> Base.pm:61 EBox::Migration::Base::executeGConf - Skipping migration to 6 in users
2010/02/08 17:10:17 ERROR> Sudo.pm:215 EBox::Sudo::_rootError - root command cat /var/run/freeradius/freeradius.pid failed.
Error output: cat: /var/run/freeradius/freeradius.pid: No such file or directory

Command output: .
Exit value: 1
2010/02/08 17:17:07 INFO> Service.pm:625 EBox::Module::Service::restartService - Restarting service for module: events
2010/02/08 17:17:10 ERROR> Service.pm:630 EBox::Module::Service::__ANON__ - Error restarting service: Can't call method "attributes" on an undefined value at /usr/share/perl5/EBox/Ldap.pm line 254.







2010/02/08 17:36:11 DEBUG> Base.pm:61 EBox::Migration::Base::executeGConf - Skipping migration to 6 in users

isaac

  • Zen Warrior
  • ***
  • Posts: 148
  • Karma: +0/-0
    • View Profile
Re: Bug after update 1.2 to 1.4
« Reply #13 on: February 08, 2010, 05:42:14 pm »
Oops, right, I was trying to fix an issue and I made a mistake when updating the migration :(

We are going to release a new version of the package and I'll let you know as soon as it's ready so you can upgrade to that new package and see if that works.

Thank you very much for the report :)

alxkie

  • Zen Apprentice
  • *
  • Posts: 23
  • Karma: +0/-0
    • View Profile
Re: Bug after update 1.2 to 1.4
« Reply #14 on: February 08, 2010, 05:46:55 pm »
Thank you very much!

You all make a good job and I like ebox!

Best wishes for the team.

Alex