{"action":"created","issue":{"url":"https://api.github.com/repos/MISP/MISP/issues/604","labels_url":"https://api.github.com/repos/MISP/MISP/issues/604/labels{/name}","comments_url":"https://api.github.com/repos/MISP/MISP/issues/604/comments","events_url":"https://api.github.com/repos/MISP/MISP/issues/604/events","html_url":"https://github.com/MISP/MISP/issues/604","id":101864371,"number":604,"title":" Error: [PDOException]","user":{"login":"advancedeng","id":8973767,"avatar_url":"https://avatars.githubusercontent.com/u/8973767?v=3","gravatar_id":"","url":"https://api.github.com/users/advancedeng","html_url":"https://github.com/advancedeng","followers_url":"https://api.github.com/users/advancedeng/followers","following_url":"https://api.github.com/users/advancedeng/following{/other_user}","gists_url":"https://api.github.com/users/advancedeng/gists{/gist_id}","starred_url":"https://api.github.com/users/advancedeng/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/advancedeng/subscriptions","organizations_url":"https://api.github.com/users/advancedeng/orgs","repos_url":"https://api.github.com/users/advancedeng/repos","events_url":"https://api.github.com/users/advancedeng/events{/privacy}","received_events_url":"https://api.github.com/users/advancedeng/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/MISP/MISP/labels/potential-bug","name":"potential-bug","color":"eb6420"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2015-08-19T11:03:40Z","updated_at":"2015-08-27T21:45:11Z","closed_at":null,"body":"Hi again, \r\n\r\nWhen I am trying to manually batch import ~3000 indicators I get the following error (after all only 67 indicators are imported..):\r\n \"\r\n Error: [PDOException] SQLSTATE[23000]: Integrity constraint violation: 1048 Column 'org' cannot be null\r\nRequest URL: /attributes/add/1691\r\nStack Trace:\r\n#0 /var/www/MISP/app/Lib/cakephp/lib/Cake/Model/Datasource/DboSource.php(460): PDOStatement->execute(Array)\r\n#1 /var/www/MISP/app/Lib/cakephp/lib/Cake/Model/Datasource/DboSource.php(426): DboSource->_execute('INSERT INTO `mi...', Array)\r\n#2 /var/www/MISP/app/Lib/cakephp/lib/Cake/Model/Datasource/DboSource.php(1012): DboSource->execute('INSERT INTO `mi...')\r\n#3 /var/www/MISP/app/Lib/cakephp/lib/Cake/Model/Model.php(1928): DboSource->create(Object(AppModel), Array, Array)\r\n#4 /var/www/MISP/app/Lib/cakephp/lib/Cake/Model/Model.php(1745): Model->_doSave(Array, Array)\r\n#5 /var/www/MISP/app/Lib/cakephp/lib/Cake/Model/Model.php(2338): Model->save(Array, Array)\r\n#6 /var/www/MISP/app/Model/Attribute.php(1034): Model->saveMany(Array)\r\n#7 /var/www/MISP/app/Model/Attribute.php(413): Attribute->__afterSaveCorrelation(Array)\r\n#8 [internal function]: Attribute->afterSave(true, Array)\r\n#9 /var/www/MISP/app/Lib/cakephp/lib/Cake/Event/CakeEventManager.php(241): call_user_func_array(Array, Array)\r\n#10 /var/www/MISP/app/Lib/cakephp/lib/Cake/Model/Model.php(1956): CakeEventManager->dispatch(Object(CakeEvent))\r\n#11 /var/www/MISP/app/Lib/cakephp/lib/Cake/Model/Model.php(1751): Model->_doSave(Array, Array)\r\n#12 /var/www/MISP/app/Controller/AttributesController.php(152): Model->save(Array)\r\n\"\r\n\r\nAny ideas about this?\r\n\r\nKind regards,\r\nAndreas"},"comment":{"url":"https://api.github.com/repos/MISP/MISP/issues/comments/135564581","html_url":"https://github.com/MISP/MISP/issues/604#issuecomment-135564581","issue_url":"https://api.github.com/repos/MISP/MISP/issues/604","id":135564581,"user":{"login":"elhoim","id":178521,"avatar_url":"https://avatars.githubusercontent.com/u/178521?v=3","gravatar_id":"","url":"https://api.github.com/users/elhoim","html_url":"https://github.com/elhoim","followers_url":"https://api.github.com/users/elhoim/followers","following_url":"https://api.github.com/users/elhoim/following{/other_user}","gists_url":"https://api.github.com/users/elhoim/gists{/gist_id}","starred_url":"https://api.github.com/users/elhoim/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/elhoim/subscriptions","organizations_url":"https://api.github.com/users/elhoim/orgs","repos_url":"https://api.github.com/users/elhoim/repos","events_url":"https://api.github.com/users/elhoim/events{/privacy}","received_events_url":"https://api.github.com/users/elhoim/received_events","type":"User","site_admin":false},"created_at":"2015-08-27T21:45:11Z","updated_at":"2015-08-27T21:45:11Z","body":"Those logs line are about resque workers trying to reconnect. The value after the semi-colon should be the process id, so you should see those using ps."}}