-
Notifications
You must be signed in to change notification settings - Fork 67
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
User-Sync tool crashing with "AttributeError: 'NoneType' object has no attribute 'split'" #227
Comments
Hmmmm. Can you send me your debug logs again? I need to figure out if the catch for empty emails isn't working (which would surprise me) or whether there's some other form of unexpected email format that's crashing the tool (which I suspect). Also, what platform are you on? I'd like to post an instrumented build for you that will help me narrow this down. |
Hi Dan, Will send the log over now. Im running the tool on an Ubuntu server Thanks |
log has just been sent |
ok, got the log and compared it with what was happening before. There's clearly a failure mode that I didn't think of before, and now I'm kicking myself for not catching it at the root of the failure. Ah, well, live and learn. I'm going to put in a better fix that also instruments the source of the problem and then post a build for you to try. Which version of Ubuntu? I'll use 14 LTS Trusty unless you want something newer. |
Hi @adobeDan I have a similar issue but in Windows (2012r2), running v2.1. PS C:\UserSyncTool> C:\UserSyncTool\AdobeUserSync_TEST_MODE.ps1 I only get the error when running in test mode, users sync into the console without issue. |
@chad-fox This doesn't look like a related error. Can you please open a separate issue about this, setting |
@adobeDan Im using Ubuntu 16.04.2 |
thanks for the quick reply btw |
OK here's a 2.2a1 release for you to try, built off the issue227 branch on Ubuntu 16.04.2 LTS (server). This should (hopefully! :) not crash, and should log warnings for the users on which it was crashing before. |
@adobeDan - This looks to have worked successfully. DO you want me to email you my log so you can check? |
@AndyH010493 Yes please I would LOVE to see the log so I can find out how this happens! :) |
@adobeDan I have just emailed you the log. Thanks again |
And thank you @AndyH010493 for the log, which I have received! I'll let you know what I find after I have a chance to analyze it against the last one you sent me. |
So it turns out users with "improperly formatted email addresses" (no domain, illegal characters, etc.) were crashing us. Since this is a rare event on the customer side (congrats, @AndyH010493, for being the first customer to have this happen :), I think the general warning message being used (which simply says that the user is being skipped because they don't have a valid user key), along with the dump of the user data, is probably enough for customers to find them (if they care). I'll merge this fix, which will close this bug. |
Thanks @adobeDan. There's always a first :) |
Fix #227: crash on None value for user key
Hi Dan,
Strange one. I have installed version 2.1.1 of the user-sync tool but I'm still getting the same error. See below:
2017-06-13 10:10:19 32744 ERROR main - Unhandled exception
Traceback (most recent call last):
File "/home/adobesync/.pex/install/user_sync-2.1.1-py2-none-any.whl.d74436c53f3ebfa40d11c3b3623530ef8a9bb6e8/user_sync-2.1.1-py2-none-any.whl/user_sync/app.py", line 352, in main
begin_work(config_loader)
File "/home/adobesync/.pex/install/user_sync-2.1.1-py2-none-any.whl.d74436c53f3ebfa40d11c3b3623530ef8a9bb6e8/user_sync-2.1.1-py2-none-any.whl/user_sync/app.py", line 210, in begin_work
rule_processor.run(directory_groups, directory_connector, umapi_connectors)
File "/home/adobesync/.pex/install/user_sync-2.1.1-py2-none-any.whl.d74436c53f3ebfa40d11c3b3623530ef8a9bb6e8/user_sync-2.1.1-py2-none-any.whl/user_sync/rules.py", line 154, in run
self.read_desired_user_groups(directory_groups, directory_connector)
File "/home/adobesync/.pex/install/user_sync-2.1.1-py2-none-any.whl.d74436c53f3ebfa40d11c3b3623530ef8a9bb6e8/user_sync-2.1.1-py2-none-any.whl/user_sync/rules.py", line 300, in read_desired_user_groups
if not self.is_selected_user_key(user_key):
File "/home/adobesync/.pex/install/user_sync-2.1.1-py2-none-any.whl.d74436c53f3ebfa40d11c3b3623530ef8a9bb6e8/user_sync-2.1.1-py2-none-any.whl/user_sync/rules.py", line 411, in is_selected_user_key
username = self.get_username_from_user_key(user_key)
File "/home/adobesync/.pex/install/user_sync-2.1.1-py2-none-any.whl.d74436c53f3ebfa40d11c3b3623530ef8a9bb6e8/user_sync-2.1.1-py2-none-any.whl/user_sync/rules.py", line 907, in get_username_from_user_key
return self.parse_user_key(user_key)[1]
File "/home/adobesync/.pex/install/user_sync-2.1.1-py2-none-any.whl.d74436c53f3ebfa40d11c3b3623530ef8a9bb6e8/user_sync-2.1.1-py2-none-any.whl/user_sync/rules.py", line 904, in parse_user_key
return user_key.split(',')
AttributeError: 'NoneType' object has no attribute 'split'
2017-06-13 10:10:19 32744 INFO main - ========== End Run (User Sync version: 2.1.1) (Total time: 0:00:01)
The text was updated successfully, but these errors were encountered: