OpenWrt Forum Archive

Topic: self-inflicted ipkg upgrade problems

The content of this topic has been archived on 26 Apr 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

Good morning,

Last night I mistakenly typed

ipkg upgrade
   instead of
ipkg update

and got an upgrade of 7 or 8 packages. I'm not sure which one's.

After fighting through a couple iptables and dropbear issues, everything seems to be working fine again, EXCEPT the firewall is no longer logging. I use fwbuilder on my Gentoo box to generate the rules and have re-installed them. They are functioning properly, I believe, but can't tell for sure because nothing shows up in the logs.

iptables -nL looks right.

Does anyone have any ideas what I may have missed?

Thanks,
John

Maybe, while upgrading, if you did not had enough space to both upgrade iptables, and kmod-iptables (the kernel iptables stuff), there was a version difference between the iptables command and the kernel modules. But I am not sure of that.

Seems you messed up your OpenWrt installation. To make sure everything works normal reflash the OpenWrt distribution with mtd or TFTP.

For the future: Don't use "ipkg upgrade". The best way to upgrade to a new version is to reflash OpenWrt.

See mistake #7 in the PLEASE READ - Common mistakes thread too.

(Last edited by olli on 23 Dec 2005, 12:34)

olli wrote:

Seems you messed up your OpenWrt installation. To make sure everything works normal reflash the OpenWrt distribution with mtd or TFTP.

For the future: Don't use "ipkg upgrade". The best way to upgrade to a new version is to reflash OpenWrt.

See mistake #7 in the PLEASE READ - Common mistakes thread too.

No, no, no. I _meant_ to update package list. Happy fingers screwed up.

festus77 wrote:

Good morning,

Last night I mistakenly typed

ipkg upgrade
   instead of
ipkg update

and got an upgrade of 7 or 8 packages. I'm not sure which one's.

After fighting through a couple iptables and dropbear issues, everything seems to be working fine again, EXCEPT the firewall is no longer logging. I use fwbuilder on my Gentoo box to generate the rules and have re-installed them. They are functioning properly, I believe, but can't tell for sure because nothing shows up in the logs.

iptables -nL looks right.

Does anyone have any ideas what I may have missed?

Thanks,
John

Looking at the log with logread, I note the following line

user.info : iptables v1.3.3:  Unknown arg `--log-level'

So, did iptables get upgraded? Right now iptables -h doesn't even show --log-level as an option, and I've been logging since I installed openWRT a couple months ago.

Thanks,
John

festus77 wrote:

Looking at the log with logread, I note the following line

user.info : iptables v1.3.3:  Unknown arg `--log-level'

So, did iptables get upgraded? Right now iptables -h doesn't even show --log-level as an option, and I've been logging since I installed openWRT a couple months ago.

The current iptables ipkg doesn't have log support compiled in.
You'll probably need to install the iptables-mod-extra ipkg to get log support.

Cheers,
Martin.

mpot wrote:

The current iptables ipkg doesn't have log support compiled in.
You'll probably need to install the iptables-mod-extra ipkg to get log support.

Cheers,
Martin.

Thank you, thank you, thank you !!!

The discussion might have continued from here.