win32pdh error running Windmill tests from Hudson

15 views
Skip to first unread message

sophiedmr

unread,
Sep 6, 2010, 11:28:00 AM9/6/10
to Windmill Developers
Hello there,

I have my tests running from Hudson and all tests are running nicely
and generating the correct report format.
However, I get the following error at the end of my tests, which
renders my Hudson build as 'UNSTABLE':
Do you know what may be causing this and how I can fix it?

Thanks.

Traceback (most recent call last):
File "c:\Python26\scripts\windmill-script.py", line 8, in <module>
load_entry_point('windmill==1.3', 'console_scripts', 'windmill')()
File "c:\windmill\windmill-windmill-372f2dd\windmill\bin
\windmill_bin.py", line 33, in main
File "c:\windmill\windmill-windmill-372f2dd\windmill\bin
\admin_lib.py", line 350, in command_line_startup
File "c:\windmill\windmill-windmill-372f2dd\windmill\bin
\admin_lib.py", line 235, in runserver_action
File "c:\windmill\windmill-windmill-372f2dd\windmill\bin
\admin_lib.py", line 199, in teardown
File "c:\windmill\windmill-windmill-372f2dd\windmill\dep\_mozrunner
\runner.py", line 167, in stop
File "c:\windmill\windmill-windmill-372f2dd\windmill\dep\_mozrunner
\runner.py", line 164, in kill
File "c:\windmill\windmill-windmill-372f2dd\windmill\dep\_mozrunner
\runner.py", line 84, in kill_process_by_name
File "c:\windmill\windmill-windmill-372f2dd\windmill\dep\_mozrunner
\runner.py", line 69, in get_pids
File "C:\Python26\lib\site-packages\win32\lib\win32pdhutil.py", line
77, in FindPerformanceAttributesByName
if object is None: object =
find_pdh_counter_localized_name("Process", machine)
File "C:\Python26\lib\site-packages\win32\lib\win32pdhutil.py", line
42, in find_pdh_counter_localized_name
return win32pdh.LookupPerfNameByIndex(machine_name,
counter_english_map[english_name.lower()])
pywintypes.error: (-2147481648, 'LookupPerfNameByIndex', 'Unable to
connect to specified machine or machine is off line.')
Recording test results
Finished: UNSTABLE

sophiedmr

unread,
Sep 27, 2010, 6:20:43 AM9/27/10
to Windmill Developers
Hi there, have you had a chance to look at this at all.

I have delved into the win32 python code but can't figure out how to
fix this.

Thanks,

Sophie

On Sep 6, 4:28 pm, sophiedmr <sdemaletroquef...@datadiscoveries.com>
wrote:

Adam Christian

unread,
Sep 27, 2010, 7:30:26 AM9/27/10
to windmi...@googlegroups.com
Have you tried wrapping:

File "c:\windmill\windmill-windmill-372f2dd\windmill\dep\_mozrunner
\runner.py", line 69, in get_pids

in a try except block?

Adam


--
You received this message because you are subscribed to the Google Groups "Windmill Developers" group.
To post to this group, send email to windmi...@googlegroups.com.
To unsubscribe from this group, send email to windmill-dev...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/windmill-dev?hl=en.


sophiedmr

unread,
Oct 13, 2010, 11:19:00 AM10/13/10
to Windmill Developers
Hi Adam,

I changed the Hudson user to an Administrator and this has solved the
problem.

Thanks,

Sophie
> > windmill-dev...@googlegroups.com<windmill-dev%2Bunsubscribe@google­groups.com>
> > .
> > For more options, visit this group at
> >http://groups.google.com/group/windmill-dev?hl=en.- Hide quoted text -
>
> - Show quoted text -

sophiedmr

unread,
Oct 13, 2010, 11:17:17 AM10/13/10
to Windmill Developers
Hi Adam,

Tried changing the Hudson user to an administrator and this has solved
the problem.
It was definately an environmental thing related specifically to
Hudson.

Thanks,

Sophie

On Sep 27, 12:30 pm, Adam Christian <adam.christ...@gmail.com> wrote:
> > windmill-dev...@googlegroups.com<windmill-dev%2Bunsubscribe@google­groups.com>
> > .
> > For more options, visit this group at
Reply all
Reply to author
Forward
0 new messages