-
Notifications
You must be signed in to change notification settings - Fork 10
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
OperationalError at /admin/vpn/subnettosubnet/ #3
Comments
And when i try to re-migrate db, under a user (thought there were not enough rigths) i receive this ./manage.py migrate result`Operations to perform: Apply all migrations: admin, auth, contenttypes, sessions, vpn Running migrations: Applying contenttypes.0001_initial... OK Applying auth.0001_initial... OK Applying admin.0001_initial... OK Applying admin.0002_logentry_remove_auto_add... OK Applying contenttypes.0002_remove_content_type_name... OK Applying auth.0002_alter_permission_name_max_length... OK Applying auth.0003_alter_user_email_max_length... OK Applying auth.0004_alter_user_username_opts... OK Applying auth.0005_alter_user_last_login_null... OK Applying auth.0006_require_contenttypes_0002... OK Applying auth.0007_alter_validators_add_error_messages... OK Applying auth.0008_alter_user_username_max_length... OK Applying auth.0009_alter_user_last_name_max_length... OK Applying sessions.0001_initial... OK Applying vpn.0001_initial... OK Applying vpn.0002_auto_20180525_2129... OK Applying vpn.0003_dnsconfig_right_subnet_text... OK Applying vpn.0004_auto_20180527_2031... OK Applying vpn.0005_auto_20180527_2156... OK Applying vpn.0006_auto_20180528_2304... OK Applying vpn.0007_auto_20180529_0017... OK Applying vpn.0008_auto_20180530_1502... OK Applying vpn.0009_auto_20180530_1605... OK Applying vpn.0010_auto_20180530_1719... OK Applying vpn.0011_auto_20180530_1900... OK Applying vpn.0012_auto_20180531_1408... OK Applying vpn.0013_auto_20180531_1728... OK Applying vpn.0014_employee... OK Applying vpn.0015_auto_20180603_2057... OK Applying vpn.0016_auto_20180604_1505... OK Applying vpn.0017_auto_20180604_1538... OK Applying vpn.0018_auto_20180604_1539... OK Applying vpn.0019_auto_20180607_1245... OK Applying vpn.0020_auto_20180612_1203... OK Applying vpn.0021_auto_20180612_1440... OK Applying vpn.0022_auto_20180620_1337... OK Applying vpn.0023_auto_20180620_1412... OK Applying vpn.0024_remove_generatecertificate_token... OK Applying vpn.0025_auto_20180625_1251... OK Applying vpn.0026_certificateconfiguration... OK Applying vpn.0027_auto_20180629_1502... OK Applying vpn.0028_auto_20180629_1519... OK Applying vpn.0029_auto_20180629_1926... OK Applying vpn.0030_generaterootca... OK Applying vpn.0031_auto_20180629_2239... OK Applying vpn.0032_auto_20180703_1434... OK Applying vpn.0033_auto_20180703_1439... OK Applying vpn.0034_auto_20180703_1504... OK Applying vpn.0035_auto_20180703_1513... OK Applying vpn.0036_auto_20180703_1534... OK Applying vpn.0037_generaterootcertificate_password... OK Applying vpn.0038_auto_20180703_1806... OK Applying vpn.0039_latestsavedkeypassword... OK Applying vpn.0040_auto_20180709_1352... OK Applying vpn.0041_delete_latestsavedkeypassword... OK Applying vpn.0042_remove_generaterootcertificate_password... OK Applying vpn.0043_auto_20180722_1558... OK Applying vpn.0044_auto_20180722_1605...Traceback (most recent call last): File "/root/Libreswan-managing-interface/librenv/lib/python3.6/site-packages/django/db/backends/utils.py", line 85, in _execute return self.cursor.execute(sql, params) File "/root/Libreswan-managing-interface/librenv/lib/python3.6/site-packages/django/db/backends/mysql/base.py", line 71, in execute return self.cursor.execute(query, args) File "/root/Libreswan-managing-interface/librenv/lib/python3.6/site-packages/MySQLdb/cursors.py", line 206, in execute res = self._query(query) File "/root/Libreswan-managing-interface/librenv/lib/python3.6/site-packages/MySQLdb/cursors.py", line 319, in _query db.query(q) File "/root/Libreswan-managing-interface/librenv/lib/python3.6/site-packages/MySQLdb/connections.py", line 259, in query _mysql.connection.query(self, query) MySQLdb._exceptions.OperationalError: (1280, "Incorrect index name 'vpn_privatekeypassword_key_name_b5606c3b_uniq'")The above exception was the direct cause of the following exception: Traceback (most recent call last): |
I checked the models.py. There exists the model Models Line 324 and the index name I'll check why this is throwing this error. |
I did the installation from scratch and was also updating the installation guide (a few minor edits). But found no problem with the migration. They are working perfectly. And the admin is working great too. |
You are getting this error
because all your migration were not applied at once. Maybe the process failed mid way. Just flush your database and start following the installation guide from 6. Preparing the app for running |
Nope. that doesn't help
|
This problem might be due to MariaDB. I've found this tutorial for you, you can follow it from section MariaDB. You might be having problems because you haven't flushed the privileges so that they can be used during the current session. Also, your database name and username are the same. Just create the database and user following this section. So, as to reduce the scope of error. If this doesn't work you can search for similar solutions. |
Just the same. |
Okay. This managing interface was also tested on CentOS. I'll try to get a CentOS system and solve this installation problem.
|
epel7 now has django for python3 which is older version. |
@bleve Django 2.0.x also works on python 3.
Yes, Django 2.0 is older but it can be easily migrated to Django 2.2 LTS |
Here what i receive after installing app by your instruction ''' This system is not registered with an entitlement server. You can use subscription-manager to register. [elrepo]: 39 kmod packages excluded due to dependency errors Dependencies Resolved =========================================================================================================================
|
@reinethernal i couldn't get a centos server to try it out. If you or @bleve could help in some way, that would be great. |
Aaaand a new error with a
at console. and
https://dpaste.com/6Q6RP3B8E#line-2
at web.
The text was updated successfully, but these errors were encountered: