SYSTEM WARNING: 'date_default_timezone_get(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone.' in '/usr/share/mantis/www/core.php' line 264

0004245: efw-update upgrade / smart hanging - MantisBT
MantisBT - Endian Firewall
View Issue Details
0004245Endian FirewallOther Servicespublic2012-01-20 16:062012-10-02 09:56
ardit-endian 
 
urgentblockalways
acknowledgedopen 
2.4 
 
0004245: efw-update upgrade / smart hanging
Smart hanging,

2012-01-20 17:12:09,420 - efw-update[6931] - INFO - Updating channel: endian-utm-arm-2.4-base (Endian UTM Appliance ARM 2.4 Base Channel)
2012-01-20 17:12:09,432 - efw-update[6931] - INFO - Check for packages which need upgrade
smart upgrade --url 2>&1

it just hang on there and nothing happens.
purple
Issue History
2012-01-20 16:06ardit-endianNew Issue
2012-01-20 16:06ardit-endianTag Attached: purple
2012-01-20 16:07ardit-endianNote Added: 0007641
2012-01-20 16:13ardit-endianNote Added: 0007642
2012-01-23 08:58christian-endianStatusnew => acknowledged
2012-03-21 14:55thomas-endianNote Added: 0007761
2012-04-04 12:10ardit-endianNote Added: 0007800
2012-04-06 13:42ardit-endianDescription Updated
2012-04-11 13:05ardit-endianNote Added: 0007820
2012-04-19 14:39ardit-endianPrioritynormal => urgent
2012-04-19 14:39ardit-endianReproducibilityrandom => always
2012-04-19 14:40ardit-endianNote Added: 0007835
2012-04-23 09:41davide-endianNote Added: 0007839
2012-09-11 12:35luca-endianNote Added: 0008128
2012-09-11 12:48luca-endianNote Edited: 0008128
2012-09-13 08:34luke-endianNote Added: 0008149

Notes
(0007641)
ardit-endian   
2012-01-20 16:07   
root@main:~ # efw-update upgrade
lsof | grep /var/lib/rpm
rm -f /var/lib/rpm/__db*
rpm --rebuilddb
rm -f /var/lib/smart/cache
 as well is wrong, because rm cache should be before the rebuild.
(0007642)
ardit-endian   
2012-01-20 16:13   
when using smart it hangs on Updating cache... ############################################################################################## [100%]

Channels have no new packages.
Saving cache...

Loading cache...
Updating cache... ############################################################################################## [100%]

Computing transaction...
(0007761)
thomas-endian   
2012-03-21 14:55   
12 minutes for one update: efw-dnsmasq-2.6.1-0.endian14.armv5tel.rpm
when I start the manually update, also 10 minutes...
(0007800)
ardit-endian   
2012-04-04 12:10   
it seems like smart doesn't work at all on most arm's (for not saying all of them)
(0007820)
ardit-endian   
2012-04-11 13:05   
this happened to many times already, the only solution for now is to download manually the packages and install them with RPM, than run-parts /etc/upgrade/upgrade.d/ and sync with endian netork.
It's quite a big issue.
(0007835)
ardit-endian   
2012-04-19 14:40   
happened again.
it's becoming wide
(0007839)
davide-endian   
2012-04-23 09:41   
I've also seen it, especially on ARM, in cases where duplicated packages were present.

I use a script like this, to see if there are duplicated packages:


#!/bin/sh

PKG_LIST_FILE="/tmp/dup_pkg.$$"
UNIQUE_PKG_LIST_FILE="${PKG_LIST_FILE}.unique"

rpm -qa | sort > "$PKG_LIST_FILE"
cat "$PKG_LIST_FILE" | uniq > "$UNIQUE_PKG_LIST_FILE"

diff "$PKG_LIST_FILE" "$UNIQUE_PKG_LIST_FILE"

if [ $? -eq 0 ] ; then
        echo "no duplicated packages"
fi

rm -f "$PKG_LIST_FILE" "$UNIQUE_PKG_LIST_FILE"
(0008128)
luca-endian   
2012-09-11 12:35   
(edited on: 2012-09-11 12:48)
removed /var/lib/smart/* and worked?!? no duplicated packages found
Of curse channels are deleted so you need to run en-client -suv in order to re create them

(0008149)
luke-endian   
2012-09-13 08:34   
Hi Guys

same problem yesterday on a 2.4 ARM.
I notice that there were 2 efw-proxy packages and smart hanged.
I've removed the old efw-proxy and then smart works good.
P.S i've tested the Davide's script but does not works because,in this case,
the script thought that efw-proxy packages were different because they have different names
I.e :
efw-proxy-2.6.1-endianX.rpm
efw-proxy-2.8.0-endianX.rpm