-
Notifications
You must be signed in to change notification settings - Fork 5
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
Segmentation fault when run create_db.py #19
Comments
Hi,
You'll find further information here Thanks, |
Hi I've just been trying your fork and had the same segmentation fault as the o/p, I tried your suggestion and no joy I'm afraid. The segmentation fault still appears, I also tried the suggestion in the link you posted and that also did not help. I'm a novice at testing python software but is there anything I can get that would help you debug this? I'm testing this on a CentOS7 server, fully updated to the current version. |
Yep, this is also my situation (Centos 7) |
Hi guys, run python interactively: Does that reproduce the issue? That will also happen if you try to import import dm.xmlsec.binding. Thanks, |
You should edit the file /usr/bin/xmlsec1-config located in -DXMLSEC_NO_SIZE_T should be appended to variable the_flags located underneath "Assemble all the settings together".
|
Hi Thanks for your reply. Your first question about the import, it still gives the segmentation fault. I'm not sure of the exact format for doing the same with "import dm.xmlsec.binding" - don't forget I know nothing about python. :) For the "-DXMLSEC_NO_SIZE_T" that was already in that file, I think I read that elsewhere and added when I first hit this problem. As the original project from which your is forked is now moving forward should I try that version again (possibly) file this bug there? I did try the original version but never had any luck with it, I currently use this version without problems: https://git.0x97.io/0x97 Regards Bill |
Hi Bill, |
Hi Thomas No I'm not using SAML at all, I know what it is but I'm just a using this for my home LAN so it's not necessary. Regards Bill |
Hi Thomas Is there any update on this issue? Regards Bill |
Hey Bill, |
Hi Thomas Thanks for the update, unfortunately it's the same segmentation fault. Is there any way to get any more information that might help you debug this problem? I'll try a clean install on a fresh CentOS7 VM later today and see how that goes and let you know what happens. |
Hi Bill, |
Hi Thomas Thanks for that, it's moved me a bit further on. :) First, it builds then runs and start without errors. The problem now seems to be that the create_db.py isn't populating the database with any tables. Obviously I've created the database and a valid user with all permissions for the database but when I login to the database and show tables, there aren't any. I can login to the DB server from the command line with the actual powerdnsadmin credentials without problems. Is there somewhere Before I realised this was happening I created a user and tried to login and unsurprisingly it just returns me to the login screen. I then tried to create the same user after running the create_db again but it said the user already existed, are the user details stored somewhere else? Regards Bill |
Ah, it seems that it wants to use an sqlite database although I've specified the IP address of a MySQL(Percona) DB server. If I comment out the sqlite entries in the config.py then run the creatdb again I see the following error: ImportError: cannot import name SQLALCHEMY_MIGRATE_REPO Should the sqlite entries stay there or should the entries that point to my db server take precedence? |
That should look like to following; |
Thanks Thomas That was it. :) I assumed it would select the MySQL db if that's what it was pointing to, silly assumption I know. OK, that works and tables and users are created however, it still just passes me back to the login page even though the log files shows I've logged in successfully. I'm also seeing this message "Warning: '@@tx_isolation' is deprecated" and I assume this is harmless for the moment. |
You can safely ignore the warning. What about deleting the cookie of that website? |
Yet again, such a simple answer. many thanks Thomas and and I think Iclose this issue, all the problems are gone and I can manage the DNS server. I'm looking forward to what comes later with the your work being incorporated with the other PDNS Admin project. Thanks again. Regards Bill |
Hi,
We found your fork and updated to your latest release version.
I updated PowerDNS-Admin from original version.
After installation of all requirements I tried run create_db.py but always get:
$ /opt/vens/powerdns/bin/python /var/www/powerdns-admin/create_db.py Segmentation fault
Also some additional info:
$ cat /etc/centos-release CentOS Linux release 7.4.1708 (Core)
$ /opt/vens/powerdns/bin/python --version Python 2.7.5
$ /opt/vens/powerdns/bin/pip list
DEPRECATION: The default format will switch to columns in the future. You can use --format=(legacy|columns) (or define a format=(legacy|columns) in your pip.conf under the [list] section) to disable this warning.
asn1crypto (0.24.0)
bcrypt (3.1.0)
cffi (1.10.0)
click (6.7)
configobj (5.0.5)
cryptography (2.1.4)
decorator (4.1.2)
defusedxml (0.4.1)
dm.xmlsec.binding (1.3.3)
dnspython (1.15.0)
enum34 (1.1.6)
Flask (0.12.2)
Flask-Login (0.4.0)
Flask-OAuthlib (0.9.3)
Flask-SQLAlchemy (2.1)
Flask-WTF (0.14.2)
idna (2.6)
ipaddress (1.0.19)
isodate (0.6.0)
itsdangerous (0.24)
Jinja2 (2.9.6)
lxml (4.1.1)
MarkupSafe (1.0)
MySQL-python (1.2.5)
oauthlib (2.0.2)
pbr (1.10.0)
pip (9.0.1)
pycparser (2.18)
pyOpenSSL (17.5.0)
pyotp (2.2.1)
python-ldap (2.4.21)
python-saml (2.3.0)
pytz (2017.3)
qrcode (5.3)
requests (2.7.0)
requests-oauthlib (0.8.0)
setuptools (36.2.7)
six (1.10.0)
SQLAlchemy (1.0.9)
sqlalchemy-migrate (0.10.0)
sqlparse (0.2.3)
Tempita (0.5.2)
Werkzeug (0.12.2)
wheel (0.29.0)
WTForms (2.1)
May be you can help us.
What is the problem and why it's segfaulting ?
The text was updated successfully, but these errors were encountered: