Hi orcun,
    Thanks a lot  for your help! I have followed your advice. set the
user's is_active attribute to True mannually. But there are still some
problems.
    In the desktop agent:
   ' [ERROR] - 2012-04-30 15:25:57,703 - Empty response while trying to
register.
[INFO] - 2012-04-30 15:25:57,800 - Sending message to aggregator at
http://127.0.0.1:8000/api/registeragent/
[ERROR] - 2012-04-30 15:25:57,921 - [AggregatorAPI] - [Failure instance:
Traceback (failure with no frames): <class 'twisted.web.error.Error'>: 500
Internal Server Error
]
[ERROR] - 2012-04-30 15:25:57,921 - >>> The Aggregator had an Internal
Error:
[ERROR] - 2012-04-30 15:25:57,921 - Piston/0.2.2 (Django 1.3) crash report:

Traceback (most recent call last):

  File "/home/tianwei/dev/aggregtor/api/decorators.py", line 57, in
new_method
    aes_key = crypto.decodeRSAPrivateKey(key, aggregatorKey)

  File "/home/tianwei/dev/aggregtor/agents/CryptoLib.py", line 81, in
decodeRSAPrivateKey
    privateKey = key.getPrivateKey()

  File "/home/tianwei/dev/aggregtor/agents/CryptoLib.py", line 143, in
getPrivateKey
    rsaKey = RSA.construct((long(self.mod), long(self.exp), long(self.d),
long(self.p), long(self.q), long(self.u)))

  File "/usr/lib/python2.7/dist-packages/Crypto/PublicKey/RSA.py", line
236, in construct
    return _RSAobj(self, key)

  File "/usr/lib/python2.7/dist-packages/Crypto/PublicKey/RSA.py", line 59,
in __init__
    randfunc = Random.new().read

  File "/usr/lib/python2.7/dist-packages/Crypto/Random/__init__.py", line
33, in new
    return _UserFriendlyRNG.new(*args, **kwargs)

  File
"/usr/lib/python2.7/dist-packages/Crypto/Random/_UserFriendlyRNG.py", line
206, in new
    return RNGFile(_get_singleton())

  File
"/usr/lib/python2.7/dist-packages/Crypto/Random/_UserFriendlyRNG.py", line
200, in _get_singleton
    _singleton = _LockingUserFriendlyRNG()

  File
"/usr/lib/python2.7/dist-packages/Crypto/Random/_UserFriendlyRNG.py", line
144, in __init__
    _UserFriendlyRNG.__init__(self)

  File
"/usr/lib/python2.7/dist-packages/Crypto/Random/_UserFriendlyRNG.py", line
86, in __init__
    self._ec = _EntropyCollector(self._fa)

  File
"/usr/lib/python2.7/dist-packages/Crypto/Random/_UserFriendlyRNG.py", line
53, in __init__
    self._osrng = OSRNG.new()

  File "/usr/lib/python2.7/dist-packages/Crypto/Random/OSRNG/posix.py",
line 60, in new
    return DevURandomRNG(*args, **kwargs)

  File "/usr/lib/python2.7/dist-packages/Crypto/Random/OSRNG/posix.py",
line 42, in __init__
    f = open(self.name, "rb", 0)

  File
"/home/tianwei/dev/GAE/google_appengine/google/appengine/tools/dev_appserver_import_hook.py",
line 592, in __init__
    raise IOError(errno.EACCES, 'file not accessible', filename)

IOError: [Errno 13] file not accessible: '/dev/urandom'

[ERROR] - 2012-04-30 15:25:57,921 - Empty response while trying to register.
[INFO] - 2012-04-30 15:25:57,922 - Sending message to aggregator at
http://127.0.0.1:8000/api/loginagent/
[ERROR] - 2012-04-30 15:25:58,060 - [AggregatorAPI] - [Failure instance:
Traceback (failure with no frames): <class 'twisted.web.error.Error'>: 500
Internal Server Error
]
[ERROR] - 2012-04-30 15:25:58,061 - >>> The Aggregator had an Internal
Error:
[ERROR] - 2012-04-30 15:25:58,061 - Piston/0.2.2 (Django 1.3) crash report:

Traceback (most recent call last):

  File "/home/tianwei/dev/aggregtor/api/handlers.py", line 100, in create
    agent = Agent.get_agent(loginAgent.agentID)

  File "/home/tianwei/dev/aggregtor/agents/models.py", line 453, in
get_agent
    return Agent.objects.get(id=agent_id)

  File "/home/tianwei/dev/aggregtor/django/db/models/manager.py", line 132,
in get
    return self.get_query_set().get(*args, **kwargs)

  File "/home/tianwei/dev/aggregtor/django/db/models/query.py", line 351,
in get
    % self.model._meta.object_name)

DoesNotExist: Agent matching query does not exist.'

   Does I clone code is wrong?
        'git clone [email protected]:icm-agent.git '
        ' git clone [email protected]:aggregator.git aggregator'

tianwei


2012/4/29 Adriano Marques <[email protected]>

> Man, you're already rocking all around with the code base, uh? I'm
> impressed!
>
> On Sat, Apr 28, 2012 at 8:53 PM, orcun avsar <[email protected]> wrote:
>
>> Forget to add all recipients.
>>
>>
>> ---------- Forwarded message ----------
>> From: orcun avsar <[email protected]>
>> Date: 2012/4/29
>> Subject: Re: [umit-devel] some question about aggregator register
>> To: Adriano Marques <[email protected]>
>>
>>
>> Hi,
>> 2012/4/26 Adriano Marques <[email protected]>
>>
>>> The message says that agent is not registered... did you try to register
>>> the agent?
>>>
>>> Use the icm-bot to do that, or use the login window of the agent (access
>>> from tray icon) and register the agent!
>>>
>>>
>> I don't know yet but, If user account needs to be active to register an
>> agent. If so, that's the problem here.
>>
>> There are two ways possible to overcome:
>>
>>    - Easiest way is to go
>>    http://localhost:8080/_ah/admin/datastore?kind=auth_user and set your
>>    user's is_active attribute to True manually
>>    - Alternatively, you can emulate a smtp server by   running "python
>>    -m smtpd -n -c DebuggingServer localhost:1025". This will redirect all the
>>    passing emails to standart output. So you can catch your activation link
>>    and run it.
>>
>> Best,
>> --
>> Orçun Avşar
>>
>>
>>
>> --
>> Orçun Avşar
>>
>>
>> ------------------------------------------------------------------------------
>> Live Security Virtual Conference
>> Exclusive live event will cover all the ways today's security and
>> threat landscape has changed and how IT managers can respond. Discussions
>> will include endpoint security, mobile security and the latest in malware
>> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
>> _______________________________________________
>> Umit-devel mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/umit-devel
>>
>>
>
>
> --
> Adriano Monteiro Marques
>
> http://www.openmonitor.org
> http://www.umitproject.org
> http://www.thoughtspad.com
>
> "Don't stay in bed, unless you can make money in bed." - George Burns
>
>
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Umit-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/umit-devel

Reply via email to