You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Im trying to setup a dev environment to contribute but I cant get it to work.
I am on Oracle Linux 9 and the oracle free tier and using the build and serve script from the package.json
wg-easy |
wg-easy | > wg-easy@1.0.1 serve
wg-easy | > DEBUG=Server,WireGuard npx nodemon server.js
wg-easy |
wg-easy | npm WARN exec The following package was not found and will be installed: nodemon@3.1.0
wg-easy | [nodemon] 3.1.0
wg-easy | [nodemon] to restart at any time, enter `rs`
wg-easy | [nodemon] watching path(s): *.*
wg-easy | [nodemon] watching extensions: js,mjs,cjs,json
wg-easy | [nodemon] starting `node server.js`
wg-easy | 2024-05-01T16:09:26.092Z Server Listening on http://0.0.0.0:51821
wg-easy | 2024-05-01T16:09:26.095Z WireGuard Loading configuration...
wg-easy | $ wg genkey
wg-easy | $ echo ***hidden*** | wg pubkey
wg-easy | 2024-05-01T16:09:26.116Z WireGuard Configuration generated.
wg-easy | 2024-05-01T16:09:26.117Z WireGuard Config saving...
wg-easy | 2024-05-01T16:09:26.118Z WireGuard Config saved.
wg-easy | $ wg-quick down wg0
wg-easy | $ wg-quick up wg0
wg-easy | Error: Command failed: wg-quick up wg0
wg-easy | [#]
wg-easy | [#] ip link add wg0 type wireguard
wg-easy | [#] wg setconf wg0 /dev/fd/63
wg-easy | [#] ip -4 address add 10.8.0.1/24 dev wg0
wg-easy | [#] ip link set mtu 1420 up dev wg0
wg-easy | [#] iptables -t nat -A POSTROUTING -s 10.8.0.0/24 -o eth0 -j MASQUERADE; iptables -A INPUT -p udp -m udp --dport 51820 -j ACCEPT; iptables -A FORWARD -i wg0 -j ACCEPT; iptables -A FORWARD -o wg0 -j ACCEPT;
wg-easy | modprobe: can't change directory to '/lib/modules': No such file or directory
wg-easy | modprobe: can't change directory to '/lib/modules': No such file or directory
wg-easy | iptables v1.8.10 (legacy): can't initialize iptables table `nat': Table does not exist (do you need to insmod?)
wg-easy | Perhaps iptables or your kernel needs to be upgraded.
wg-easy | [#] ip link delete dev wg0
wg-easy |
wg-easy | at genericNodeError (node:internal/errors:984:15)
wg-easy | at wrappedFn (node:internal/errors:538:14)
wg-easy | at ChildProcess.exithandler (node:child_process:422:12)
wg-easy | at ChildProcess.emit (node:events:518:28)
wg-easy | at maybeClose (node:internal/child_process:1105:16)
wg-easy | at ChildProcess._handle.onexit (node:internal/child_process:305:5) {
wg-easy | code: 3,
wg-easy | killed: false,
wg-easy | signal: null,
wg-easy | cmd: 'wg-quick up wg0'
wg-easy | }
wg-easy | [nodemon] app crashed - waiting for file changes before starting...
After a rebuild and restart of only the dev image (can reproduce this on ubuntu 22.04)
wg-easy-1 |
wg-easy-1 | > wg-easy@1.0.1 serve
wg-easy-1 | > DEBUG=Server,WireGuard npx nodemon server.js
wg-easy-1 |
wg-easy-1 | npm WARN exec The following package was not found and will be installed: nodemon@3.1.0
wg-easy-1 | [nodemon] 3.1.0
wg-easy-1 | [nodemon] to restart at any time, enter `rs`
wg-easy-1 | [nodemon] watching path(s): *.*
wg-easy-1 | [nodemon] watching extensions: js,mjs,cjs,json
wg-easy-1 | [nodemon] starting `node server.js`
wg-easy-1 | 2024-05-01T16:25:17.525Z Server Listening on http://0.0.0.0:51821
wg-easy-1 | 2024-05-01T16:25:17.529Z WireGuard Loading configuration...
wg-easy-1 | $ wg genkey
wg-easy-1 | $ echo ***hidden*** | wg pubkey
wg-easy-1 | 2024-05-01T16:25:17.544Z WireGuard Configuration generated.
wg-easy-1 | 2024-05-01T16:25:17.544Z WireGuard Config saving...
wg-easy-1 | 2024-05-01T16:25:17.546Z WireGuard Config saved.
wg-easy-1 | $ wg-quick down wg0
wg-easy-1 | $ wg-quick up wg0
wg-easy-1 | Error: WireGuard exited with the error: Cannot find device "wg0"
wg-easy-1 | This usually means that your host's kernel does not support WireGuard!
wg-easy-1 | at /app/lib/WireGuard.js:65:19
wg-easy-1 | at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
wg-easy-1 | at async /app/lib/WireGuard.js:63:9
wg-easy-1 | [nodemon] app crashed - waiting for file changes before starting...
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Im trying to setup a dev environment to contribute but I cant get it to work.
I am on Oracle Linux 9 and the oracle free tier and using the build and serve script from the package.json
After a rebuild and restart of only the dev image (can reproduce this on ubuntu 22.04)
Beta Was this translation helpful? Give feedback.
All reactions