CubeSandbox icon indicating copy to clipboard operation
CubeSandbox copied to clipboard

[Bug Report] “resolvectl default-route” not available on older systems during one-click install

Open ryuyx opened this issue 6 months ago • 3 comments

Summary

When I try to install CubeSandbox on an older operating system, a command not found error occurs and the installation is interrupted. Is it possible to downgrade as a workaround?

Environment

  • Red Hat Enterprise Linux release 8.3

Steps to Reproduce

  1. run this curl -sL https://github.com/tencentcloud/CubeSandbox/raw/master/deploy/one-click/online-install.sh | CUBE_PVM_ENABLE=1 bash

Actual Behavior

(base) [admin@app01 ~]$ resolvectl default-route
Unknown operation default-route.

Additional Context

In the original implementation at up-dns.sh, resolvectl default-route "${RESOLVED_LINK_NAME}" no >/dev/null the script directly runs resolvectl default-route for the DNS link. On older systems, this subcommand may not exist even when resolvectl is present, and because the script uses strict error handling, that failure can terminate the DNS setup flow unexpectedly.

ryuyx avatar May 29 '26 09:05 ryuyx

If there is a direction for a fix or a patch that needs testing, feel free to assign it to me. I would be happy to help test and verify the solution in my environment (RHEL 8.3).

ryuyx avatar May 29 '26 09:05 ryuyx

This operating system is too old, and we require the kernel version to be greater than 5.4, otherwise some features may not work properly.

kinwin-ustc avatar May 29 '26 09:05 kinwin-ustc

Hi, You can try skipping the DNS and certificate installation. The trade-off is that you won't be able to use the E2B SDK to invoke Cube, but you can use the cubesandbox SDK as an alternative. Feel free to submit a PR to make the DNS and certificate installation steps optional!

ls-ggg avatar Jun 04 '26 12:06 ls-ggg