Closed haftrine closed 10 years ago
What does your ios_notifications.json file look like? It seems as though it is trying to assign passphrase
more than once to a model.
Hi stephenmuss, thank you for your prompt reply Here is what it looks like, I've checked and rechecked and there's one passphrase in the model as well as the data as well as the db
[{
"pk": 1,
"model": "ios_notifications.apnservice",
"fields": {
"private_key": "-----BEGIN RSA PRIVATE KEY-----\r\nXX-KEY-XX\r\n-----END RSA PRIVATE KEY-----",
"hostname": "gateway.sandbox.push.apple.com",
"passphrase": "passphrase",
"name": "APN Dev service",
"certificate": "-----BEGIN CERTIFICATE-----\r\nXX-CERT-XX\r\n-----END CERTIFICATE-----"
}
}, {
"pk": 2,
"model": "ios_notifications.apnservice",
"fields": {
"private_key": "-----BEGIN RSA PRIVATE KEY-----\r\nXX-KEY-XX\r\n-----END RSA PRIVATE KEY-----",
"hostname": "gateway.push.apple.com",
"passphrase": "passphrase",
"name": "APN Prod service",
"certificate": "-----BEGIN CERTIFICATE-----\r\nXX-CERT-XX\r\n-----END CERTIFICATE-----"
}
}
]
same happens when adding device with column token
@haftrine Are you using Postgres? And what version of Django are you on?
I found a reference to a similar error here ( http://south.aeracode.org/ticket/327). It sure looks like an issue related to South introspection rules. Maybe a problem with EncryptedField... (I also found this, which may also be of interest: https://groups.google.com/forum/#!topic/south-users/UcFpgQyDACo)
On Tue, May 27, 2014 at 6:32 PM, Armen M. notifications@github.com wrote:
Hi stephenmuss, thank you for your prompt reply Here is what it looks like, I've checked and rechecked and there's one passphrase in the model as well as the data as well as the db
[{ "pk": 1, "model": "ios_notifications.apnservice", "fields": { "private_key": "-----BEGIN RSA PRIVATE KEY-----\r\nXX-KEY-XX\r\n-----END RSA PRIVATE KEY-----", "hostname": "gateway.sandbox.push.apple.com", "passphrase": "$AES$aac7e55e622015755940a6ac756192e7", "name": "APN Dev service", "certificate": "-----BEGIN CERTIFICATE-----\r\nXX-CERT-XX\r\n-----END CERTIFICATE-----" } }, { "pk": 2, "model": "ios_notifications.apnservice", "fields": { "private_key": "-----BEGIN RSA PRIVATE KEY-----\r\nXX-KEY-XX\r\n-----END RSA PRIVATE KEY-----", "hostname": "gateway.push.apple.com", "passphrase": "$AES$5a3d3b44f9778b922f9d65ca5eb2f91bbae8f99ae68e569346306f55508b33a5", "name": "APN Prod service", "certificate": "-----BEGIN CERTIFICATE-----\r\nXX-CERT-XX\r\n-----END CERTIFICATE-----" } }]
same happens when adding device with column token
— Reply to this email directly or view it on GitHubhttps://github.com/stephenmuss/django-ios-notifications/issues/52#issuecomment-44344126 .
@mbargiel Yes I'm using Postgres, and Django 1.6.2. The issue described in the google group seems to be what I'm facing, the reply is to migrate manually, I'll try that and see if it works.
Sorry for this, "ghost" code was adding the same columns from another module into this one. Thank you for your support
No problem, thanks for the update!
On Wed, May 28, 2014 at 3:46 PM, Armen M. notifications@github.com wrote:
Sorry for this, "ghost" code was adding the same columns from another module into this one.
— Reply to this email directly or view it on GitHubhttps://github.com/stephenmuss/django-ios-notifications/issues/52#issuecomment-44455355 .
I'm facing an issue where I've installed a fresh copy of my project, and followed the steps to install this module, however after running loaddata or trying to add a new APNS I'm getting the following error