wg-manager
wg-manager copied to clipboard
sqlite3.IntegrityError) NOT NULL constraint failed: server.v6_subnet
Describe the bug You cannot create server without ipv6 support from web
To Reproduce Steps to reproduce the behavior:
- Go to 'New WireGuard Server'
- Be sure not check "IPv6 Support"
- Scroll down to 'add server' and press it
- See error
Platform:
- OS: Ubuntu 20.04
- Browser Vivaldi
- Version git-commit
root@ubuntu:~/wg-manager# git log
commit e70ba4bdc288318bc164fe696750a0c40ed1fac6 (HEAD -> main, origin/main, origin/HEAD)
Merge: 60f067d 16a0e0a
Author: Per-Arne Andersen <[email protected]>
Date: Thu Jul 15 16:05:47 2021 +0200
Merge pull request #109 from hmrodrigues/fix/create_user
Added missing import
Stacktrace/error output
sqlalchemy.exc.IntegrityError: (sqlite3.IntegrityError) NOT NULL constraint failed: server.v6_subnet
[SQL: INSERT INTO server (interface, subnet, address, v6_address, v6_subnet, listen_port, private_key, public_key, endpoint, dns, allowed_ips, keep_alive, read_only, post_up, post_down, is_running, configuration) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)]
[parameters: ('wg0', 24, '10.0.200.1', None, None, 51820, 'CFPOnZFlq8la8HT99YZvVDANc+LDA0bTkaLJxcNEO1c=', 'L01CpZEZ3q23KN2txDKnW6zzeGS04RYV027xVX+jImI=', '192.168.113.80', '1.1.1.1,8.8.8.8', '0.0.0.0/0', 5, 0, 'iptables -A FORWARD -i %i -j ACCEPT; iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE;', 'iptables -D FORWARD -i %i -j ACCEPT; iptables -t nat -D POSTROUTING -o eth0 -j MASQUERADE;', 0, '[Interface]\nAddress = 10.0.200.1/24\nListenPort = 51820\nPrivateKey = CFPOnZFlq8la8HT99YZvVDANc+LDA0bTkaLJxcNEO1c=\n\n\nPostUp = iptables -A FORWARD ... (31 characters truncated) ... at -A POSTROUTING -o eth0 -j MASQUERADE;\n\nPostDown = iptables -D FORWARD -i %i -j ACCEPT; iptables -t nat -D POSTROUTING -o eth0 -j MASQUERADE;\n\n')]
(Background on this error at: http://sqlalche.me/e/13/gkpj)
Screenshots https://i.imgur.com/uH4545c.png
anybody fix please