Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sqlite3.IntegrityError) NOT NULL constraint failed: server.v6_subnet #118

Open
chemax opened this issue Aug 31, 2021 · 1 comment
Open
Labels
bug Something isn't working

Comments

@chemax
Copy link

chemax commented Aug 31, 2021

Describe the bug
You cannot create server without ipv6 support from web

To Reproduce
Steps to reproduce the behavior:

  1. Go to 'New WireGuard Server'
  2. Be sure not check "IPv6 Support"
  3. Scroll down to 'add server' and press it
  4. 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

@chemax chemax added the bug Something isn't working label Aug 31, 2021
@mailo84
Copy link

mailo84 commented Mar 13, 2022

anybody fix please

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants