Edgewall Software
Modify

Opened 14 years ago

Closed 14 years ago

#590 closed defect (worksforme)

slave connect master error

Reported by: czg_e <czg_e@…> Owned by:
Priority: blocker Milestone:
Component: Build slave Version: 0.6b2
Keywords: Cc: czg_e@…
Operating System:

Description

master: trac version 0.11.7 Bitten version 0.6b2 Operating System Centos E5.4

slave: Bitten version 0.7dev Operating System windowsXP

my slave execute bitten-slave prompt: Usage: bitten-slave-script.py [options] url1 [url2]... bitten-slave-script.py:error:incorrect number of arguments

but slave execute bitten-slave https://192.168.10.2/trac/test/builds -u root -P prompt : [INFO ]Slave launched at 2010-05-25 15:38:59 [ERROR ]HTTP Error 405:Method Not Allowed [INFO ]Slave exited at 2010-05-24 15:38:51 after input passwd.

but my trac run is ok.(https://192.168.10.2/trac/test/builds)

Who knows why?

Attachments (0)

Change History (4)

comment:1 Changed 14 years ago by osimons

  • Milestone 0.7 deleted
  • Resolution set to worksforme
  • Status changed from new to closed

It said: Usage: bitten-slave-script.py [options] url1 [url2]...

You are doing bitten-slave-script.pu [url1] [options] by doing your auth options after url. Please switch and try again. This should work fine.

comment:2 follow-up: Changed 14 years ago by czg_e <czg_e@…>

  • Cc czg_e@… added
  • Resolution worksforme deleted
  • Status changed from closed to reopened

i try again ,but prompt:

C:\Documents and Settings\czg>bitten-slave https://192.168.10.2/trac/test/builds

\ -u root -p

Usage: bitten-slave-script.py [options] url1 [url2] ...

bitten-slave-script.py: error: -p option requires an argument

C:\Documents and Settings\czg>bitten-slave https://192.168.10.2/trac/test/builds

\ -u root -p mtp2009

[INFO ] Slave launched at 2010-05-25 10:40:17 [INFO ] No pending builds Traceback (most recent call last):

File "C:\Python26\Scripts\bitten-slave-script.py", line 8, in <module>

load_entry_point('Bitten Slave?==0.6b2', 'console_scripts', 'bitten-slave')()

File "c:\python26\lib\site-packages\bitten\slave.py", line 480, in main

exit_code = slave.run()

File "c:\python26\lib\site-packages\bitten\slave.py", line 214, in run

self.request('HEAD', url[:-7] + '/login')

File "c:\python26\lib\site-packages\bitten\slave.py", line 161, in request

resp = self.opener.open(req)

File "C:\Python26\lib\urllib2.py", line 383, in open

protocol = req.get_type()

File "C:\Python26\lib\urllib2.py", line 244, in get_type

raise Value Error?, "unknown url type: %s" % self.original

Value Error?: unknown url type: /login

my trac.conf is <Location /trac>

Set Handler? mod_python Python Interpreter? main_interpreter Python Handler? trac.web.modpython_frontend Python Option? Trac Env Parent Dir? /home/www/trac Python Option? Trac Uri Root? /trac/ Python Option? PYTHON_EGG_CACHE /tmp/egg-cache

</Location> <Location Match? "/trac/[/]+/login">

Auth Type? Basic Auth Name? "Trac" Auth Basic Provider? file Auth User File? /home/www/.htpasswd Require valid-user

</Location Match?>

Does any know how to solve?

comment:2 follow-up: Changed 14 years ago by czg_e <czg_e@…>

  • Cc czg_e@… added
  • Resolution worksforme deleted
  • Status changed from closed to reopened

i try again ,but prompt:

C:\Documents and Settings\czg>bitten-slave https://192.168.10.2/trac/test/builds

\ -u root -p

Usage: bitten-slave-script.py [options] url1 [url2] ...

bitten-slave-script.py: error: -p option requires an argument

C:\Documents and Settings\czg>bitten-slave https://192.168.10.2/trac/test/builds

\ -u root -p mtp2009

[INFO ] Slave launched at 2010-05-25 10:40:17 [INFO ] No pending builds Traceback (most recent call last):

File "C:\Python26\Scripts\bitten-slave-script.py", line 8, in <module>

load_entry_point('Bitten Slave?==0.6b2', 'console_scripts', 'bitten-slave')()

File "c:\python26\lib\site-packages\bitten\slave.py", line 480, in main

exit_code = slave.run()

File "c:\python26\lib\site-packages\bitten\slave.py", line 214, in run

self.request('HEAD', url[:-7] + '/login')

File "c:\python26\lib\site-packages\bitten\slave.py", line 161, in request

resp = self.opener.open(req)

File "C:\Python26\lib\urllib2.py", line 383, in open

protocol = req.get_type()

File "C:\Python26\lib\urllib2.py", line 244, in get_type

raise Value Error?, "unknown url type: %s" % self.original

Value Error?: unknown url type: /login

my trac.conf is <Location /trac>

Set Handler? mod_python Python Interpreter? main_interpreter Python Handler? trac.web.modpython_frontend Python Option? Trac Env Parent Dir? /home/www/trac Python Option? Trac Uri Root? /trac/ Python Option? PYTHON_EGG_CACHE /tmp/egg-cache

</Location> <Location Match? "/trac/[/]+/login">

Auth Type? Basic Auth Name? "Trac" Auth Basic Provider? file Auth User File? /home/www/.htpasswd Require valid-user

</Location Match?>

Does any know how to solve?

comment:3 in reply to: ↑ 2 Changed 14 years ago by osimons

  • Resolution set to worksforme
  • Status changed from reopened to closed

Replying to czg_e <czg_e@…>:

Not:

> bitten-slave https://192.168.10.2/trac/test/builds -u root -p mtp2009

But:

> bitten-slave -u root -p mtp2009 https://192.168.10.2/trac/test/builds

Put the options before the build URL(s). As explained by:

Usage: bitten-slave-script.py [options] url1 [url2]...

Add Comment

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The ticket will remain with no owner.
The resolution will be deleted. Next status will be 'reopened'.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.