25.7.2 shadowsocks broken

Started by Slashing, August 22, 2025, 06:52:10 AM

Previous topic - Next topic
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?

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

I'm having what appears to be a similar issue. I have an Issue open on GitHub:

https://github.com/opnsense/plugins/issues/4910

@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
OPNsense virtual machine images
OPNsense aarch64 firmware repository

Commercial support & engineering available. PM for details (en / de).

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.

Today at 10:00:39 AM #5 Last Edit: Today at 10:03:10 AM by franco
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

Today at 03:39:13 PM #6 Last Edit: Today at 04:02:52 PM by eguun
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

Quote from: franco on Today at 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

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)