OPNsense Forum

Archive => 23.1 Legacy Series => Topic started by: Thorrrr on June 06, 2023, 10:19:37 AM

Title: Upgrade issues Upgrade stuck in loop and fails to complete [SOLVED]
Post by: Thorrrr on June 06, 2023, 10:19:37 AM
HI Guys

Not sure what the issues are lately having had over 12 months of updates with no issues.The last 2 have been a nightmare i am trying to update today and it is just hanging for 40 min on the last part see here

Terminal Log https://paste.centos.org/view/ebd14956

I know it said reboot required but should it not perform this option itself or do i need to do a manual reboot?

What is the issue and how do i fix it?

Update audit log see https://paste.centos.org/view/fdf75ed2 (https://paste.centos.org/view/fdf75ed2)

I have rebooted as mentioned it has started up with crowdsec stopped but the updater is still spinning?

https://i.imgur.com/xpaabLS.png

https://i.imgur.com/gsRLkhc.png

So crowdsec is stopped but still cannot get out of update loop please could somebody help me?

I have also tried a reboot from CLI but gets stuck onPIDS:3338

  0) Logout                              7) Ping host
  1) Assign interfaces                   8) Shell
  2) Set interface IP address            9) pfTop
  3) Reset the root password            10) Firewall log
  4) Reset to factory defaults          11) Reload all services
  5) Power off system                   12) Update from console
  6) Reboot system                      13) Restore a backup

Enter an option: 6

The system will reboot. Do you want to proceed? [y/N]: y

>>> Invoking stop script 'beep'
>>> Invoking stop script 'freebsd'
crowdsec not running? (check /var/run/crowdsec.pid).
Stopping crowdsec_firewall.
Waiting for PIDS: 3338
Title: Re: Upgrade issues Upgrade stuck in loop and fails to complete
Post by: franco on June 06, 2023, 11:17:29 AM
It's a known issue with latest crowdsec. Either deinstall plugin temporarily to update cleanly or kill the crowdsec daemon to continue the update.


Cheers,
Franco
Title: Re: Upgrade issues Upgrade stuck in loop and fails to complete
Post by: Thorrrr on June 06, 2023, 11:52:35 AM
HI
Please can you tell me how to do this
I have tried crowdsec -c /var/run/crowdsec.sock stop
From cli but does not work!

Also i cannot find shell in GUI area
I have disabled crodsec bouncer in gui and stopped crodsec then tried rebooting still stuck in cli on


The system will reboot. Do you want to proceed? [y/N]: y

>>> Invoking stop script 'beep'
>>> Invoking stop script 'freebsd'
crowdsec not running? (check /var/run/crowdsec.pid).
Stopping crowdsec_firewall.
Waiting for PIDS: 3338
Title: Re: Upgrade issues Upgrade stuck in loop and fails to complete
Post by: franco on June 06, 2023, 12:33:02 PM
# kill -9 3338

(it mentions the pid there in your paste)


Cheers,
Franco
Title: Re: Upgrade issues Upgrade stuck in loop and fails to complete
Post by: Thorrrr on June 06, 2023, 12:38:15 PM
HI Franco
Great thank you for the help
But now i see another update
https://i.imgur.com/WyYxfsZ.png

Is this going to cause same issue?
Title: Re: Upgrade issues Upgrade stuck in loop and fails to complete
Post by: franco on June 06, 2023, 12:41:06 PM
Yes, that's the update part that was being blocked by crowdsec daemon not stopping.


Cheers,
Franco
Title: Re: Upgrade issues Upgrade stuck in loop and fails to complete
Post by: Thorrrr on June 06, 2023, 12:53:12 PM
So do I  ssh into OPnsesne cli run kill -9 3338 again
Then go back to terminal options and update from cli ?
Is this the preferred option?
Title: Re: Upgrade issues Upgrade stuck in loop and fails to complete
Post by: franco on June 06, 2023, 12:55:13 PM
You don't need to kill it again.


Cheers,
Franco
Title: Re: Upgrade issues Upgrade stuck in loop and fails to complete
Post by: Thorrrr on June 06, 2023, 01:28:27 PM
HI
Thank you for your help great community.Is it best to check in here before upgrading in future ?
Title: Re: Upgrade issues Upgrade stuck in loop and fails to complete
Post by: franco on June 06, 2023, 01:29:35 PM
Not really. As far as this one goes it's a one off problem. Haven't had to deal with this before.


Cheers,
Franco
Title: Re: Upgrade issues Upgrade stuck in loop and fails to complete
Post by: Thorrrr on June 07, 2023, 10:27:11 AM
Hi
I had an issue with the Adguard plugin before this that affected many other users.
So i had a bad couple of last 2 upgrades but it looks more like addons / plugins not OPNsense.
O do i mark this as solved ?
Title: Re: Upgrade issues Upgrade stuck in loop and fails to complete
Post by: franco on June 07, 2023, 12:22:43 PM
Edit first post and add "[SOLVED]" to subject.


Cheers,
Franco