OPNsense Forum

English Forums => 25.7 Series => Topic started by: Slashing on August 22, 2025, 06:52:10 AM

Title: 25.7.2 shadowsocks broken
Post by: Slashing on August 22, 2025, 06:52:10 AM
Hi! I can't start shadowbox.
There is an error when installing the plugin
Starting configd.
*** OPNsense\Shadowsocks\General migration failed from 0.0.0 to 1.0.1, check log for details
*** OPNsense\Shadowsocks\Local migration failed from 0.0.0 to 1.0.1, check log for details
When the service is forced to start, the status in the backend log is 127.
If you know, please tell me what I should pay attention to?
Title: Re: 25.7.2 shadowsocks broken
Post by: eguun on August 23, 2025, 11:31:15 AM
Hi,

To second this,

The "broken" shadowsocks correlates when shadowsocks plugin moved from deprecated libev to current rust, ref: https://github.com/opnsense/plugins/issues/4662

2 updates on OPNSense seems to still be required to finalize port from libev to rust:

1- OPNSense GUI still reference the libev filepath and needs update
when shadowsocks plugin is fresh installed in OPNSense GUI,
the page updating the settings (Services > ShadowSocks > Server) saves its content into /usr/local/etc/shadowsocks-libev/config.json instead of /usr/local/etc/shadowsocks-rust/config.json


2- demon start doesn't work from gui - but succeed from cli
Lobby > Dashboard > Services
shadowsocks daemon marked as down - clicking the start button doesn't succeed at launching the deamon


But overall the rust version seems to work:
Assuming settings are properly configured into the OPNSense GUI (Services > ShadowSocks > Server)
Launching this command successfully launches the process
/usr/local/bin/ssserver -c /usr/local/etc/shadowsocks-libev/config.json
Any advise on the process to get these updates into a future release/hotfix?

Cheers
Title: Re: 25.7.2 shadowsocks broken
Post by: akolman on August 24, 2025, 06:54:05 PM
I'm having what appears to be a similar issue. I have an Issue open on GitHub:

https://github.com/opnsense/plugins/issues/4910
Title: Re: 25.7.2 shadowsocks broken
Post by: Maurice on August 24, 2025, 08:53:51 PM
@eguun Let me guess what happened here:

os-shadowsocks-devel 1.2 (which uses shadowsocks-rust) was released about a month ago with 25.1.12. Since no issues were reported, it was now moved to production in 25.7.2.

Since you initiated the switch, expectations were that you test the devel version and report potential issues. It seems this didn't happen.

Probably a misunderstanding?

Cheers
Maurice
Title: Re: 25.7.2 shadowsocks broken
Post by: Slashing on August 24, 2025, 09:11:37 PM
If someone needs it and doesn't want to mess around, here's a quick-dirty solution.
Delete the files:
/etc/rc.conf.d/shadowsocks_libev
/etc/rc.conf.d/ss_local
/usr/local/etc/rc.d/opnsense-ss-local
/usr/local/opnsense/service/templates/OPNsense/Shadowsocks/shadowsocks_libev
/usr/local/opnsense/service/templates/OPNsense/Shadowsocks/ss_local
/usr/local/opnsense/service/templates/OPNsense/Shadowsocks/ss_local.conf

And copy the files from the attachment. A reboot may be necessary.
Title: Re: 25.7.2 shadowsocks broken
Post by: franco on August 25, 2025, 10:00:39 AM
Can you provide a PR? I'd rather move this forwards than backwards ;)

FWIW, this should work for now:

# pkg install shadowsocks-libev
# opnsense-revert -r 25.7.1 os-shadowsocks


Cheers,
Franco
Title: Re: 25.7.2 shadowsocks broken
Post by: eguun on August 25, 2025, 03:39:13 PM
Quote from: Maurice on August 24, 2025, 08:53:51 PM@eguun Let me guess what happened here:

os-shadowsocks-devel 1.2 (which uses shadowsocks-rust) was released about a month ago with 25.1.12. Since no issues were reported, it was now moved to production in 25.7.2.

Since you initiated the switch, expectations were that you test the devel version and report potential issues. It seems this didn't happen.

Probably a misunderstanding?

Cheers
Maurice

Hi,

Big misunderstanding indeed: I was eagerly waiting for it and only saw the new rust version pop in 25.7.2

Sorry to have dropped the ball here.
How can I help?

Cheers
Title: Re: 25.7.2 shadowsocks broken
Post by: eguun on August 25, 2025, 05:15:23 PM
Quote from: franco on August 25, 2025, 10:00:39 AMCan you provide a PR? I'd rather move this forwards than backwards ;)

FWIW, this should work for now:

# pkg install shadowsocks-libev
# opnsense-revert -r 25.7.1 os-shadowsocks


Cheers,
Franco

Hi Franco,

I did a PR to match the content provided by slashing
https://github.com/opnsense/plugins/pull/4913

My first PR
Title: Re: 25.7.2 shadowsocks broken
Post by: eguun on August 25, 2025, 07:02:43 PM
Quote from: Slashing on August 24, 2025, 09:11:37 PMIf someone needs it and doesn't want to mess around, here's a quick-dirty solution.
Delete the files:
/etc/rc.conf.d/shadowsocks_libev
/etc/rc.conf.d/ss_local
/usr/local/etc/rc.d/opnsense-ss-local
/usr/local/opnsense/service/templates/OPNsense/Shadowsocks/shadowsocks_libev
/usr/local/opnsense/service/templates/OPNsense/Shadowsocks/ss_local
/usr/local/opnsense/service/templates/OPNsense/Shadowsocks/ss_local.conf

And copy the files from the attachment. A reboot may be necessary.

Thanks for this, this works (tested on both x64 and aarch64)