Re: cipher AES in CFB8 mode is not supported by this backend

2017-08-28 Thread Daniel Kuecker
Fixed it ... cryptography==2.0 needed to be upgraded to cryptography==2.0.3.

WHEW that was stressful!

On Monday, August 28, 2017 at 12:55:39 PM UTC-5, Daniel Kuecker wrote:
>
> I'm having an issue updating the user and passowrd for one of our 
> repositories via the admin page.  When I enter the info and hit save, I get 
> the following error:
>
> 2017-08-28 17:49:57,696 - ERROR - None - 888 - 
> /admin/db/scmtools/repository/1/ - djblets.log.middleware - Exception 
> thrown for user 88 at http:///admin/db/scmtools/repository/1/
>
> cipher AES in CFB8 mode is not supported by this backend.
> Traceback (most recent call last):
>   File "/usr/lib/python2.7/site-packages/django/core/handlers/base.py", 
> line 112, in get_response
> response = wrapped_callback(request, *callback_args, **callback_kwargs)
>   File "/usr/lib/python2.7/site-packages/django/contrib/admin/options.py", 
> line 465, in wrapper
> return self.admin_site.admin_view(view)(*args, **kwargs)
>   File "/usr/lib/python2.7/site-packages/django/utils/decorators.py", line 
> 99, in _wrapped_view
> response = view_func(request, *args, **kwargs)
>   File 
> "/usr/lib/python2.7/site-packages/django/views/decorators/cache.py", line 
> 52, in _wrapped_view_func
> response = view_func(request, *args, **kwargs)
>   File "/usr/lib/python2.7/site-packages/django/contrib/admin/sites.py", 
> line 198, in inner
> return view(request, *args, **kwargs)
>   File "/usr/lib/python2.7/site-packages/django/utils/decorators.py", line 
> 29, in _wrapper
> return bound_func(*args, **kwargs)
>   File "/usr/lib/python2.7/site-packages/django/utils/decorators.py", line 
> 99, in _wrapped_view
> response = view_func(request, *args, **kwargs)
>   File "/usr/lib/python2.7/site-packages/django/utils/decorators.py", line 
> 25, in bound_func
> return func(self, *args2, **kwargs2)
>   File "/usr/lib/python2.7/site-packages/django/db/transaction.py", line 
> 371, in inner
> return func(*args, **kwargs)
>   File "/usr/lib/python2.7/site-packages/django/contrib/admin/options.py", 
> line 1246, in change_view
> new_object = self.save_form(request, form, change=True)
>   File "/usr/lib/python2.7/site-packages/django/contrib/admin/options.py", 
> line 887, in save_form
> return form.save(commit=False)
>   File "/usr/lib/python2.7/site-packages/reviewboard/scmtools/forms.py", 
> line 1181, in save
> repository.password = self.cleaned_data['password'] or ''
>   File "/usr/lib/python2.7/site-packages/reviewboard/scmtools/models.py", 
> line 192, in _set_password
> encrypt_password(value.encode('utf-8')))
>   File 
> "/usr/lib/python2.7/site-packages/reviewboard/scmtools/crypto_utils.py", 
> line 150, in encrypt_password
> return base64.b64encode(aes_encrypt(password, key=key))
>   File 
> "/usr/lib/python2.7/site-packages/reviewboard/scmtools/crypto_utils.py", 
> line 88, in aes_encrypt
> encryptor = cipher.encryptor()
>   File 
> "/usr/lib64/python2.7/site-packages/cryptography/hazmat/primitives/ciphers/base.py",
>  
> line 104, in encryptor
> self.algorithm, self.mode
>   File 
> "/usr/lib64/python2.7/site-packages/cryptography/hazmat/backends/multibackend.py",
>  
> line 53, in create_symmetric_encryption_ctx
> _Reasons.UNSUPPORTED_CIPHER
> UnsupportedAlgorithm: cipher AES in CFB8 mode is not supported by this 
> backend.
>
>
> I'm running on RHEL 7.
>

-- 
Supercharge your Review Board with Power Pack: 
https://www.reviewboard.org/powerpack/
Want us to host Review Board for you? Check out RBCommons: 
https://rbcommons.com/
Happy user? Let us know! https://www.reviewboard.org/users/
--- 
You received this message because you are subscribed to the Google Groups 
"reviewboard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to reviewboard+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: cipher AES in CFB8 mode is not supported by this backend

2017-08-28 Thread Daniel Kuecker
My Pip freeze contents:

appdirs==1.4.2
asn1crypto==0.22.0
backports.ssl-match-hostname==3.4.0.2
bcrypt==3.1.3
cffi==1.10.0
chardet==2.2.1
configobj==4.7.2
configshell-fb==1.1.18
cryptography==2.0
decorator==3.4.0
Django==1.6.11.6
django-evolution==0.7.7
django-haystack==2.4.1
django-multiselectfield==0.1.7
django-pipeline==1.3.27
Djblets==0.9.8
dnspython==1.15.0
docutils==0.13.1
ecdsa==0.13
enum34==1.1.6
ethtool==0.8
feedparser==5.2.1
flup==1.0.2
futures==3.1.1
idna==2.5
iniparse==0.4
iotop==0.6
ipaddress==1.0.18
jabber.py==0.3.post1
javapackages==1.0.0
jsonpointer==1.9
kerberos==1.1
kitchen==1.1.1
kmod==0.1
langtable==0.0.31
lxml==3.2.1
M2Crypto==0.21.1
Markdown==2.4.1
mechanize==0.2.5
mercurial==2.6.2
mimeparse==0.1.3
MySQL-python==1.2.3
netaddr==0.7.5
nose==1.3.0
olefile==0.44
p4python==2017.1.1526044
packaging==16.8
paramiko==2.2.1
pciutils==1.7.3
pcp==1.0
perf==0.1
Pillow==4.2.1
pillowfight==0.3
ply==3.4
psutil==2.2.1
psycopg2==2.5.1
publicsuffix==1.1.0
pyasn1==0.2.3
pycparser==2.18
pycrypto==2.6.1
pycurl==7.19.0
Pygments==2.2.0
pygobject==3.14.0
pygpgme==0.3
pyliblzma==0.5.3
PyNaCl==1.1.2
pyOpenSSL==0.13.1
pyparsing==2.1.10
python-augeas==0.5.0
python-dateutil==2.6.1
python-dmidecode==3.10.13
python-ldap==2.4.15
python-memcached==1.58
python-mimeparse==1.6.0
python-nss==0.16.0
python-ntlm==1.1.0
python-yubico==1.2.3
pytz==2017.2
pyudev==0.15
pyusb==1.0.0b1
pyxattr==0.5.1
qrcode==5.0.1
rbmotd==1.0
rbnotefield==1.0.1
rbseverity==0.5.1
rbstopwatch==1.0.1
recaptcha-client==1.0.6
ReviewBoard==2.5.13.1
ReviewBoardPowerPack==1.4.2
rhnlib==2.5.77
rtslib-fb==2.1.57
simplejson==3.10.0
six==1.10.0
slip==0.4.0
slip.dbus==0.4.0
SSSDConfig==1.13.0
targetcli-fb===2.1.fb41
templateconfig==3.7
urlgrabber==3.10
urwid==1.1.1
Whoosh==2.7.4
yum-langpacks==0.4.2
yum-metadata-parser==1.1.4


On Monday, August 28, 2017 at 12:55:39 PM UTC-5, Daniel Kuecker wrote:
>
> I'm having an issue updating the user and passowrd for one of our 
> repositories via the admin page.  When I enter the info and hit save, I get 
> the following error:
>
> 2017-08-28 17:49:57,696 - ERROR - None - 888 - 
> /admin/db/scmtools/repository/1/ - djblets.log.middleware - Exception 
> thrown for user 88 at http:///admin/db/scmtools/repository/1/
>
> cipher AES in CFB8 mode is not supported by this backend.
> Traceback (most recent call last):
>   File "/usr/lib/python2.7/site-packages/django/core/handlers/base.py", 
> line 112, in get_response
> response = wrapped_callback(request, *callback_args, **callback_kwargs)
>   File "/usr/lib/python2.7/site-packages/django/contrib/admin/options.py", 
> line 465, in wrapper
> return self.admin_site.admin_view(view)(*args, **kwargs)
>   File "/usr/lib/python2.7/site-packages/django/utils/decorators.py", line 
> 99, in _wrapped_view
> response = view_func(request, *args, **kwargs)
>   File 
> "/usr/lib/python2.7/site-packages/django/views/decorators/cache.py", line 
> 52, in _wrapped_view_func
> response = view_func(request, *args, **kwargs)
>   File "/usr/lib/python2.7/site-packages/django/contrib/admin/sites.py", 
> line 198, in inner
> return view(request, *args, **kwargs)
>   File "/usr/lib/python2.7/site-packages/django/utils/decorators.py", line 
> 29, in _wrapper
> return bound_func(*args, **kwargs)
>   File "/usr/lib/python2.7/site-packages/django/utils/decorators.py", line 
> 99, in _wrapped_view
> response = view_func(request, *args, **kwargs)
>   File "/usr/lib/python2.7/site-packages/django/utils/decorators.py", line 
> 25, in bound_func
> return func(self, *args2, **kwargs2)
>   File "/usr/lib/python2.7/site-packages/django/db/transaction.py", line 
> 371, in inner
> return func(*args, **kwargs)
>   File "/usr/lib/python2.7/site-packages/django/contrib/admin/options.py", 
> line 1246, in change_view
> new_object = self.save_form(request, form, change=True)
>   File "/usr/lib/python2.7/site-packages/django/contrib/admin/options.py", 
> line 887, in save_form
> return form.save(commit=False)
>   File "/usr/lib/python2.7/site-packages/reviewboard/scmtools/forms.py", 
> line 1181, in save
> repository.password = self.cleaned_data['password'] or ''
>   File "/usr/lib/python2.7/site-packages/reviewboard/scmtools/models.py", 
> line 192, in _set_password
> encrypt_password(value.encode('utf-8')))
>   File 
> "/usr/lib/python2.7/site-packages/reviewboard/scmtools/crypto_utils.py", 
> line 150, in encrypt_password
> return base64.b64encode(aes_encrypt(password, key=key))
>   File 
> "/usr/lib/python2.7/site-packages/reviewboard/scmtools/crypto_utils.py", 
> line 88, in aes_encrypt
> encryp

cipher AES in CFB8 mode is not supported by this backend

2017-08-28 Thread Daniel Kuecker
I'm having an issue updating the user and passowrd for one of our 
repositories via the admin page.  When I enter the info and hit save, I get 
the following error:

2017-08-28 17:49:57,696 - ERROR - None - 888 - 
/admin/db/scmtools/repository/1/ - djblets.log.middleware - Exception 
thrown for user 88 at http:///admin/db/scmtools/repository/1/

cipher AES in CFB8 mode is not supported by this backend.
Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/django/core/handlers/base.py", 
line 112, in get_response
response = wrapped_callback(request, *callback_args, **callback_kwargs)
  File "/usr/lib/python2.7/site-packages/django/contrib/admin/options.py", 
line 465, in wrapper
return self.admin_site.admin_view(view)(*args, **kwargs)
  File "/usr/lib/python2.7/site-packages/django/utils/decorators.py", line 
99, in _wrapped_view
response = view_func(request, *args, **kwargs)
  File "/usr/lib/python2.7/site-packages/django/views/decorators/cache.py", 
line 52, in _wrapped_view_func
response = view_func(request, *args, **kwargs)
  File "/usr/lib/python2.7/site-packages/django/contrib/admin/sites.py", 
line 198, in inner
return view(request, *args, **kwargs)
  File "/usr/lib/python2.7/site-packages/django/utils/decorators.py", line 
29, in _wrapper
return bound_func(*args, **kwargs)
  File "/usr/lib/python2.7/site-packages/django/utils/decorators.py", line 
99, in _wrapped_view
response = view_func(request, *args, **kwargs)
  File "/usr/lib/python2.7/site-packages/django/utils/decorators.py", line 
25, in bound_func
return func(self, *args2, **kwargs2)
  File "/usr/lib/python2.7/site-packages/django/db/transaction.py", line 
371, in inner
return func(*args, **kwargs)
  File "/usr/lib/python2.7/site-packages/django/contrib/admin/options.py", 
line 1246, in change_view
new_object = self.save_form(request, form, change=True)
  File "/usr/lib/python2.7/site-packages/django/contrib/admin/options.py", 
line 887, in save_form
return form.save(commit=False)
  File "/usr/lib/python2.7/site-packages/reviewboard/scmtools/forms.py", 
line 1181, in save
repository.password = self.cleaned_data['password'] or ''
  File "/usr/lib/python2.7/site-packages/reviewboard/scmtools/models.py", 
line 192, in _set_password
encrypt_password(value.encode('utf-8')))
  File 
"/usr/lib/python2.7/site-packages/reviewboard/scmtools/crypto_utils.py", 
line 150, in encrypt_password
return base64.b64encode(aes_encrypt(password, key=key))
  File 
"/usr/lib/python2.7/site-packages/reviewboard/scmtools/crypto_utils.py", 
line 88, in aes_encrypt
encryptor = cipher.encryptor()
  File 
"/usr/lib64/python2.7/site-packages/cryptography/hazmat/primitives/ciphers/base.py",
 
line 104, in encryptor
self.algorithm, self.mode
  File 
"/usr/lib64/python2.7/site-packages/cryptography/hazmat/backends/multibackend.py",
 
line 53, in create_symmetric_encryption_ctx
_Reasons.UNSUPPORTED_CIPHER
UnsupportedAlgorithm: cipher AES in CFB8 mode is not supported by this 
backend.


I'm running on RHEL 7.

-- 
Supercharge your Review Board with Power Pack: 
https://www.reviewboard.org/powerpack/
Want us to host Review Board for you? Check out RBCommons: 
https://rbcommons.com/
Happy user? Let us know! https://www.reviewboard.org/users/
--- 
You received this message because you are subscribed to the Google Groups 
"reviewboard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to reviewboard+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Review Board Ticket #4533: Interdiffs are not working on some files

2017-08-08 Thread Daniel Kuecker
--
To reply, visit https://hellosplat.com/s/beanbag/tickets/4533/
--

New update by besperon
For Beanbag, Inc. > Review Board > Ticket #4533


Reply:

Any updates on this?  My users are very frustrated...

-- 
You received this message because you are subscribed to the Google Groups 
"reviewboard-issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to reviewboard-issues+unsubscr...@googlegroups.com.
To post to this group, send email to reviewboard-issues@googlegroups.com.
Visit this group at https://groups.google.com/group/reviewboard-issues.
For more options, visit https://groups.google.com/d/optout.


Re: Error: too many trys to get lock

2017-05-23 Thread Daniel Kuecker
Thanks for the quick reply Christian!  I see apache did not have write
access to the data folder.  I enabled it and will watch for future errors.

Thanks!

--DK

On Tue, May 23, 2017 at 3:17 PM, Christian Hammond <christ...@beanbaginc.com
> wrote:

> Hi Daniel,
>
> I haven't, but the first thing I'd check is whether that directory and its
> contents are writable by the web server.
>
> There's going to be a new Review Board release out by the end of the week
> that, amongst other things, makes some large improvements (and has better
> error handling) for Perforce authentication. I don't know if it would help
> much in this situation, but possibly.
>
> Christian
>
> --
> Christian Hammond
> President/CEO of Beanbag <https://www.beanbaginc.com/>
> Makers of Review Board <https://www.reviewboard.org/>
>
> On Tue, May 23, 2017 at 1:16 PM, Daniel Kuecker <dan...@kuecker.net>
> wrote:
>
>> I'm getting this error on our production RB server.  We are using P4 with
>> LDAP authentication.
>>
>> SCMError: [P4#run] Errors during command execution( "p4 login" )
>>
>>
>>  [Error]: "Fatal client error; disconnecting!\nOperation
>> 'client-SetPassword' failed.\nToo many trys to get lock
>> /opt/apps/reviewboard/rbinstall/review-board..com/
>> data/.p4tickets.lck."
>>
>> Has anyone seen a similar error?
>>
>> --DK
>>
>> --
>> Supercharge your Review Board with Power Pack:
>> https://www.reviewboard.org/powerpack/
>> Want us to host Review Board for you? Check out RBCommons:
>> https://rbcommons.com/
>> Happy user? Let us know! https://www.reviewboard.org/users/
>> ---
>> You received this message because you are subscribed to the Google Groups
>> "reviewboard" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to reviewboard+unsubscr...@googlegroups.com.
>> For more options, visit https://groups.google.com/d/optout.
>>
>
> --
> Supercharge your Review Board with Power Pack:
> https://www.reviewboard.org/powerpack/
> Want us to host Review Board for you? Check out RBCommons:
> https://rbcommons.com/
> Happy user? Let us know! https://www.reviewboard.org/users/
> ---
> You received this message because you are subscribed to a topic in the
> Google Groups "reviewboard" group.
> To unsubscribe from this topic, visit https://groups.google.com/d/
> topic/reviewboard/UjzdTSfwh34/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> reviewboard+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
Supercharge your Review Board with Power Pack: 
https://www.reviewboard.org/powerpack/
Want us to host Review Board for you? Check out RBCommons: 
https://rbcommons.com/
Happy user? Let us know! https://www.reviewboard.org/users/
--- 
You received this message because you are subscribed to the Google Groups 
"reviewboard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to reviewboard+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Error: too many trys to get lock

2017-05-23 Thread Daniel Kuecker
I'm getting this error on our production RB server.  We are using P4 with 
LDAP authentication.

SCMError: [P4#run] Errors during command execution( "p4 login" )


 [Error]: "Fatal client error; disconnecting!\nOperation 
'client-SetPassword' failed.\nToo many trys to get lock 
/opt/apps/reviewboard/rbinstall/review-board..com/data/.p4tickets.lck."

Has anyone seen a similar error?

--DK

-- 
Supercharge your Review Board with Power Pack: 
https://www.reviewboard.org/powerpack/
Want us to host Review Board for you? Check out RBCommons: 
https://rbcommons.com/
Happy user? Let us know! https://www.reviewboard.org/users/
--- 
You received this message because you are subscribed to the Google Groups 
"reviewboard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to reviewboard+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: update_index always indexes the users class

2017-05-02 Thread Daniel Kuecker
Sure thing. 

Python: 2.7.5.  
I used easy_install to install RB.

On Monday, May 1, 2017 at 4:28:14 PM UTC-5, Christian Hammond wrote:
>
> Actually, rather than the Elasticsearch patch, I'd like you to try a 
> couple patches to the search indexing code. Turns out it was more 
> inefficient than I had thought. Alternatively, I could send you a build. 
> Just need to know the Python version and whether you used easy_install or 
> pip to install Review Board (or some other method).
>
> Christian
>
> -- 
> Christian Hammond
> President/CEO of Beanbag <https://www.beanbaginc.com/>
> Makers of Review Board <https://www.reviewboard.org/>
>
> On Mon, May 1, 2017 at 1:28 PM, Christian Hammond <chri...@beanbaginc.com 
> > wrote:
>
>> Sure thing. I realized though that out of the box, this won't work 
>> without a patch to Review Board (the proper Elasticsearch support has only 
>> been thoroughly tested in 3.0). How comfortable do you feel applying 
>> patches?
>>
>> Christian
>>
>>
>> -- 
>> Christian Hammond
>> President/CEO of Beanbag <https://www.beanbaginc.com/>
>> Makers of Review Board <https://www.reviewboard.org/>
>>
>> On Mon, May 1, 2017 at 1:17 PM, Daniel Kuecker <dan...@kuecker.net 
>> > wrote:
>>
>>> Thanks for the quick reply Christian!
>>>
>>> I would like the info on configuring Elasticsearch if you don't mind.  
>>>
>>> --DK
>>>
>>> On Monday, May 1, 2017 at 3:12:06 PM UTC-5, Christian Hammond wrote:
>>>>
>>>> Hi Daniel,
>>>>
>>>> I believe this happens because unlike review requests, we have no way 
>>>> of determining with the search indexing stuff we use if a user's 
>>>> information is "new" to the index. Basically, we have no "last updated" 
>>>> for 
>>>> the users.
>>>>
>>>> I do see an area in the search index for users that isn't as optimal, 
>>>> so we can probably shave down the number of queries a fair amount, which 
>>>> will help.
>>>>
>>>> I assume you're using the default search backend of Whoosh? If so, at 
>>>> your scale, it might be time to install Elasticsearch. We can give you 
>>>> some 
>>>> info on how to configure that in settings_local.py (the upcoming Review 
>>>> Board 3.0 makes this very easy -- just select it as your search backend 
>>>> and 
>>>> fill in fields). Indexing with Elasticsearch is more efficient for large 
>>>> amounts of data.
>>>>
>>>> Christian
>>>>
>>>> -- 
>>>> Christian Hammond
>>>> President/CEO of Beanbag <https://www.beanbaginc.com/>
>>>> Makers of Review Board <https://www.reviewboard.org/>
>>>>
>>>> On Mon, May 1, 2017 at 12:59 PM, Daniel Kuecker <dan...@kuecker.net> 
>>>> wrote:
>>>>
>>>>> I have a fresh 2.5.9 install with a db taken from a backup of another 
>>>>> 2.5.9 install (basically a backup of my production instance).
>>>>>
>>>>> On the production instance, I am experiencing 100% cpu usage every 
>>>>> time the update_index cron job runs causing my users to complain about 
>>>>> responsiveness of the site.
>>>>>
>>>>> On my production system, the cron job shows it is indexing all the 
>>>>> records in the user table while only the new records in the review 
>>>>> requests 
>>>>> table.
>>>>>
>>>>> For debugging, I restored the production db backup to my dev machine 
>>>>> and set up a 2.5.9 instance pointing to it.  When update_index runs on 
>>>>> the 
>>>>> dev box (given the "-v 3" arg), I get the following warning: 
>>>>>
>>>>>>
>>>>>> WARNING:py.warnings:/usr/lib/python2.7/site-packages/haystack/indexes.py:167:
>>>>>>  
>>>>>> UserWarning: No updated date field found for 'User' - not restricting by 
>>>>>> age.
>>>>>>   warnings.warn(update_field_msg)
>>>>>> Indexing 1971 users
>>>>>>   indexed 1 - 1000 of 1971 (by 16819).
>>>>>>   indexed 1001 - 1971 of 1971 (by 16819).
>>>>>
>>>>>
>>>>> It then proceeds to index the entire user table and only the changed 
>>>>> review requests just as my pro

Re: update_index always indexes the users class

2017-05-01 Thread Daniel Kuecker
Thanks for the quick reply Christian!

I would like the info on configuring Elasticsearch if you don't mind.  

--DK

On Monday, May 1, 2017 at 3:12:06 PM UTC-5, Christian Hammond wrote:
>
> Hi Daniel,
>
> I believe this happens because unlike review requests, we have no way of 
> determining with the search indexing stuff we use if a user's information 
> is "new" to the index. Basically, we have no "last updated" for the users.
>
> I do see an area in the search index for users that isn't as optimal, so 
> we can probably shave down the number of queries a fair amount, which will 
> help.
>
> I assume you're using the default search backend of Whoosh? If so, at your 
> scale, it might be time to install Elasticsearch. We can give you some info 
> on how to configure that in settings_local.py (the upcoming Review Board 
> 3.0 makes this very easy -- just select it as your search backend and fill 
> in fields). Indexing with Elasticsearch is more efficient for large amounts 
> of data.
>
> Christian
>
> -- 
> Christian Hammond
> President/CEO of Beanbag <https://www.beanbaginc.com/>
> Makers of Review Board <https://www.reviewboard.org/>
>
> On Mon, May 1, 2017 at 12:59 PM, Daniel Kuecker <dan...@kuecker.net 
> > wrote:
>
>> I have a fresh 2.5.9 install with a db taken from a backup of another 
>> 2.5.9 install (basically a backup of my production instance).
>>
>> On the production instance, I am experiencing 100% cpu usage every time 
>> the update_index cron job runs causing my users to complain about 
>> responsiveness of the site.
>>
>> On my production system, the cron job shows it is indexing all the 
>> records in the user table while only the new records in the review requests 
>> table.
>>
>> For debugging, I restored the production db backup to my dev machine and 
>> set up a 2.5.9 instance pointing to it.  When update_index runs on the dev 
>> box (given the "-v 3" arg), I get the following warning: 
>>
>>>
>>> WARNING:py.warnings:/usr/lib/python2.7/site-packages/haystack/indexes.py:167:
>>>  
>>> UserWarning: No updated date field found for 'User' - not restricting by 
>>> age.
>>>   warnings.warn(update_field_msg)
>>> Indexing 1971 users
>>>   indexed 1 - 1000 of 1971 (by 16819).
>>>   indexed 1001 - 1971 of 1971 (by 16819).
>>
>>
>> It then proceeds to index the entire user table and only the changed 
>> review requests just as my production instance does.
>>
>> I have run the rebuild_index command on both systems.
>>
>> Am I missing something?  I have the cron job set to run ever 1/2 hour and 
>> am about to have to turn search indexing off to ensure the site is 
>> responsive.
>>
>> --DK
>>
>>
>>
>> -- 
>> Supercharge your Review Board with Power Pack: 
>> https://www.reviewboard.org/powerpack/
>> Want us to host Review Board for you? Check out RBCommons: 
>> https://rbcommons.com/
>> Happy user? Let us know! https://www.reviewboard.org/users/
>> --- 
>> You received this message because you are subscribed to the Google Groups 
>> "reviewboard" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to reviewboard...@googlegroups.com .
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>

-- 
Supercharge your Review Board with Power Pack: 
https://www.reviewboard.org/powerpack/
Want us to host Review Board for you? Check out RBCommons: 
https://rbcommons.com/
Happy user? Let us know! https://www.reviewboard.org/users/
--- 
You received this message because you are subscribed to the Google Groups 
"reviewboard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to reviewboard+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


update_index always indexes the users class

2017-05-01 Thread Daniel Kuecker
I have a fresh 2.5.9 install with a db taken from a backup of another 2.5.9 
install (basically a backup of my production instance).

On the production instance, I am experiencing 100% cpu usage every time the 
update_index cron job runs causing my users to complain about 
responsiveness of the site.

On my production system, the cron job shows it is indexing all the records 
in the user table while only the new records in the review requests table.

For debugging, I restored the production db backup to my dev machine and 
set up a 2.5.9 instance pointing to it.  When update_index runs on the dev 
box (given the "-v 3" arg), I get the following warning: 

>
> WARNING:py.warnings:/usr/lib/python2.7/site-packages/haystack/indexes.py:167: 
> UserWarning: No updated date field found for 'User' - not restricting by 
> age.
>   warnings.warn(update_field_msg)
> Indexing 1971 users
>   indexed 1 - 1000 of 1971 (by 16819).
>   indexed 1001 - 1971 of 1971 (by 16819).


It then proceeds to index the entire user table and only the changed review 
requests just as my production instance does.

I have run the rebuild_index command on both systems.

Am I missing something?  I have the cron job set to run ever 1/2 hour and 
am about to have to turn search indexing off to ensure the site is 
responsive.

--DK



-- 
Supercharge your Review Board with Power Pack: 
https://www.reviewboard.org/powerpack/
Want us to host Review Board for you? Check out RBCommons: 
https://rbcommons.com/
Happy user? Let us know! https://www.reviewboard.org/users/
--- 
You received this message because you are subscribed to the Google Groups 
"reviewboard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to reviewboard+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Review Board Ticket #4541: Going from < 300 character summary field content to 300 character content produces clipping in the "Review request changed" diff.

2017-03-27 Thread Daniel Kuecker
--
To reply, visit https://hellosplat.com/s/beanbag/tickets/4541/
--

New ticket #4541 by dkuecker
For Beanbag, Inc. > Review Board

Status: New
Tags: Priority:Medium, Type:Defect

File attachments:

 * rbdiffclipping.png
   

 * rbdiffclipping2.png
   



--
Going from < 300 character summary field content to 300 character content 
produces clipping in the "Review request changed" diff.
==

# What version are you running?
2.5.9


# What's the URL of the page containing the problem?
(internal page)  http://review-board..com/r/179573/

# What steps will reproduce the problem?
1. Create and submit a review request and enter a summary with less than 300 
characters.
2. Change the summary to include 300 characters and submit changes


# What is the expected output? What do you see instead?
Expected the full change to be displayed in the "Review request changed" diff.
Instead, I see the diff clipped at 273 characters


# What operating system are you using? What browser?
Chrome

# Please provide any additional information below.
Desktop resolution = 1920x1080

--

-- 
You received this message because you are subscribed to the Google Groups 
"reviewboard-issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to reviewboard-issues+unsubscr...@googlegroups.com.
To post to this group, send email to reviewboard-issues@googlegroups.com.
Visit this group at https://groups.google.com/group/reviewboard-issues.
For more options, visit https://groups.google.com/d/optout.


Re: Review Board Ticket #4398: Make date of review / change description / status an anchor link to that item

2017-03-21 Thread Daniel Kuecker
--
To reply, visit https://hellosplat.com/s/beanbag/tickets/4398/
--

New update by mconley
For Beanbag, Inc. > Review Board > Ticket #4398


Reply:

Can we get this change added to 2.5.10?  My users are asking for it.

-- 
You received this message because you are subscribed to the Google Groups 
"reviewboard-issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to reviewboard-issues+unsubscr...@googlegroups.com.
To post to this group, send email to reviewboard-issues@googlegroups.com.
Visit this group at https://groups.google.com/group/reviewboard-issues.
For more options, visit https://groups.google.com/d/optout.


diffviewer_filediffdata table after 1.7.27 to 2.5.9 upgrade

2017-03-16 Thread Daniel Kuecker
I recently moved our RB 1.7.27 instance to a 2.5.9 instance.  I restored a 
backup of the 1.7.27 db to the 2.5.9 instance and ran rb-site install and 
waited and waited.  Everything converted successfully and we are now 
running 2.5.9 (our users love it! yay!)

NOTE:  Before the restore, to avoid the InnoDB conversion evolution, I 
manually edited the sql dump, changed the table engines to InnoDB and the 
charset to UTF8 for all tables. 

I noticed I still have a diffviewer_filediffdata table that is the same 
size as the original but has zero records.  Is that table needed anymore? 
 I'd like to get rid of it as it is 28GB in size.

Thanks!

--DK

-- 
Supercharge your Review Board with Power Pack: 
https://www.reviewboard.org/powerpack/
Want us to host Review Board for you? Check out RBCommons: 
https://rbcommons.com/
Happy user? Let us know! https://www.reviewboard.org/users/
--- 
You received this message because you are subscribed to the Google Groups 
"reviewboard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to reviewboard+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


How big is your Review Board site?

2016-10-06 Thread Daniel Kuecker
With Review Board's recent 10th anniversary, I thought it would be 
interesting to compare the size of everyone's Review Board site.

We are sitting at 125,000 reviews, 2032 users and a 26GB database size on 
disk.

What's yours at?

-- 
Supercharge your Review Board with Power Pack: 
https://www.reviewboard.org/powerpack/
Want us to host Review Board for you? Check out RBCommons: 
https://rbcommons.com/
Happy user? Let us know! https://www.reviewboard.org/users/
--- 
You received this message because you are subscribed to the Google Groups 
"reviewboard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to reviewboard+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Building RBTools 0.7.6 into a single-file exe for Windows

2016-09-23 Thread Daniel Kuecker
YES!  Thats a wonderful idea (the single shared install)!  Thanks for the
idea!  I think it will work for us!

--Daniel

On Fri, Sep 23, 2016 at 8:26 AM, Christian Hammond <christ...@beanbaginc.com
> wrote:

> Sorry, I don't have any pointers here. Tools like py2exe drastically
> changes the way Python projects execute, which can end up causing a large
> number of tricky to diagnose issues. Having done a lot of
> py2exe/pyinstaller work in the past, it's not a route I'd want to go again.
>
> While I'd accept reasonable patches for things RBTools is doing, it's
> important to note that some things simply will not work, and those are
> things we must ship with. Examples would be any commands that reference a
> shipped data file, or otherwise need to deal with something relative to a
> module path.
>
> I understand the desire to have a single .exe you can drop on development
> machines, but am not sold on this being the way to go. What a lot of
> companies do is have a single shared install of RBTools in some common
> directory on a file server, and have that directory added to the path. Some
> use a wrapper script to set the PYTHON_PATH and such for that. This gives
> you central management of RBTools, usage of the RBTools API, and wouldn't
> require the kinds of work that would be needed to get things in shape for
> tools like py2exe to work.
>
> Christian
>
> --
> Christian Hammond
> President/CEO of Beanbag <https://www.beanbaginc.com/>
> Makers of Review Board <https://www.reviewboard.org/>
>
> On Fri, Sep 23, 2016 at 6:22 AM, Daniel Kuecker <dan...@kuecker.net>
> wrote:
>
>> Any pointers?
>>
>> On Thu, Sep 22, 2016 at 10:54 PM, john levin <smart.le...@gmail.com>
>> wrote:
>>
>>> I did.. and i was successful..
>>>
>>> On Sep 23, 2016 12:30 AM, "Daniel Kuecker" <dan...@kuecker.net> wrote:
>>>
>>>> Has anyone been successful building RBTools 0.7.6 into a single-file
>>>> exe for distribution on windows?
>>>>
>>>> I'm trying to wrap rbt post functionality into an exe file and both
>>>> py2exe and pyinstaller built exes are having issues when pkg_resources
>>>> tries to resolve the rbtools package.
>>>>
>>>> The exe builds fine, but when I run it, I get a
>>>> "pkg_resources.distributionnotfound: the 'rbtools' distribution was
>>>> not found and is required by the application" error.
>>>>
>>>> I've tried listing rbtools as hidden imports and importing an egg
>>>> (although the egg import was never successful), to no avail.
>>>>
>>>> Thanks in advance!
>>>>
>>>> --Daniel
>>>>
>>>>
>>>>
>>>>
>>>> --
>>>> Supercharge your Review Board with Power Pack:
>>>> https://www.reviewboard.org/powerpack/
>>>> Want us to host Review Board for you? Check out RBCommons:
>>>> https://rbcommons.com/
>>>> Happy user? Let us know! https://www.reviewboard.org/users/
>>>> ---
>>>> You received this message because you are subscribed to the Google
>>>> Groups "reviewboard" group.
>>>> To unsubscribe from this group and stop receiving emails from it, send
>>>> an email to reviewboard+unsubscr...@googlegroups.com.
>>>> For more options, visit https://groups.google.com/d/optout.
>>>>
>>> --
>>> Supercharge your Review Board with Power Pack:
>>> https://www.reviewboard.org/powerpack/
>>> Want us to host Review Board for you? Check out RBCommons:
>>> https://rbcommons.com/
>>> Happy user? Let us know! https://www.reviewboard.org/users/
>>> ---
>>> You received this message because you are subscribed to the Google
>>> Groups "reviewboard" group.
>>> To unsubscribe from this group and stop receiving emails from it, send
>>> an email to reviewboard+unsubscr...@googlegroups.com.
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>>
>> --
>> Supercharge your Review Board with Power Pack:
>> https://www.reviewboard.org/powerpack/
>> Want us to host Review Board for you? Check out RBCommons:
>> https://rbcommons.com/
>> Happy user? Let us know! https://www.reviewboard.org/users/
>> ---
>> You received this message because you are subscribed to the Google Groups
>> "reviewboard" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to reviewboard+unsub

Re: Building RBTools 0.7.6 into a single-file exe for Windows

2016-09-23 Thread Daniel Kuecker
Hey Christian,

Our clients would rather not install an app on their development machines.
We have been using an older version of RBTools, that we made a custom
post-review for, and built an exe.  The exe is dropped on the client
machine (among many other things) as a tool via a scripted setup script we
run and is called from other build-related scripts.

I only really need post and patch functionality and we hard-code the RB url.

Thanks for the response!!!

--Daniel


On Fri, Sep 23, 2016 at 12:05 AM, Christian Hammond <
christ...@beanbaginc.com> wrote:

> Out of curiosity, why not use the RBTools installer we already provide?
>
> The single .exe route will have limitations. I've done a lot of
> py2exe/pyinstaller work in the past for other projects, and it's not a
> route I'd recommend if you can avoid it, at least for more complex projects.
>
> Christian
>
> --
> Christian Hammond
> President/CEO of Beanbag <https://www.beanbaginc.com/>
> Makers of Review Board <https://www.reviewboard.org/>
>
> On Thu, Sep 22, 2016 at 11:59 AM, Daniel Kuecker <dan...@kuecker.net>
> wrote:
>
>> Has anyone been successful building RBTools 0.7.6 into a single-file exe
>> for distribution on windows?
>>
>> I'm trying to wrap rbt post functionality into an exe file and both
>> py2exe and pyinstaller built exes are having issues when pkg_resources
>> tries to resolve the rbtools package.
>>
>> The exe builds fine, but when I run it, I get a
>> "pkg_resources.distributionnotfound: the 'rbtools' distribution was not
>> found and is required by the application" error.
>>
>> I've tried listing rbtools as hidden imports and importing an egg
>> (although the egg import was never successful), to no avail.
>>
>> Thanks in advance!
>>
>> --Daniel
>>
>>
>>
>>
>> --
>> Supercharge your Review Board with Power Pack:
>> https://www.reviewboard.org/powerpack/
>> Want us to host Review Board for you? Check out RBCommons:
>> https://rbcommons.com/
>> Happy user? Let us know! https://www.reviewboard.org/users/
>> ---
>> You received this message because you are subscribed to the Google Groups
>> "reviewboard" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to reviewboard+unsubscr...@googlegroups.com.
>> For more options, visit https://groups.google.com/d/optout.
>>
>
> --
> Supercharge your Review Board with Power Pack:
> https://www.reviewboard.org/powerpack/
> Want us to host Review Board for you? Check out RBCommons:
> https://rbcommons.com/
> Happy user? Let us know! https://www.reviewboard.org/users/
> ---
> You received this message because you are subscribed to the Google Groups
> "reviewboard" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to reviewboard+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
Supercharge your Review Board with Power Pack: 
https://www.reviewboard.org/powerpack/
Want us to host Review Board for you? Check out RBCommons: 
https://rbcommons.com/
Happy user? Let us know! https://www.reviewboard.org/users/
--- 
You received this message because you are subscribed to the Google Groups 
"reviewboard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to reviewboard+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Building RBTools 0.7.6 into a single-file exe for Windows

2016-09-23 Thread Daniel Kuecker
Any pointers?

On Thu, Sep 22, 2016 at 10:54 PM, john levin <smart.le...@gmail.com> wrote:

> I did.. and i was successful..
>
> On Sep 23, 2016 12:30 AM, "Daniel Kuecker" <dan...@kuecker.net> wrote:
>
>> Has anyone been successful building RBTools 0.7.6 into a single-file exe
>> for distribution on windows?
>>
>> I'm trying to wrap rbt post functionality into an exe file and both
>> py2exe and pyinstaller built exes are having issues when pkg_resources
>> tries to resolve the rbtools package.
>>
>> The exe builds fine, but when I run it, I get a
>> "pkg_resources.distributionnotfound: the 'rbtools' distribution was not
>> found and is required by the application" error.
>>
>> I've tried listing rbtools as hidden imports and importing an egg
>> (although the egg import was never successful), to no avail.
>>
>> Thanks in advance!
>>
>> --Daniel
>>
>>
>>
>>
>> --
>> Supercharge your Review Board with Power Pack:
>> https://www.reviewboard.org/powerpack/
>> Want us to host Review Board for you? Check out RBCommons:
>> https://rbcommons.com/
>> Happy user? Let us know! https://www.reviewboard.org/users/
>> ---
>> You received this message because you are subscribed to the Google Groups
>> "reviewboard" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to reviewboard+unsubscr...@googlegroups.com.
>> For more options, visit https://groups.google.com/d/optout.
>>
> --
> Supercharge your Review Board with Power Pack:
> https://www.reviewboard.org/powerpack/
> Want us to host Review Board for you? Check out RBCommons:
> https://rbcommons.com/
> Happy user? Let us know! https://www.reviewboard.org/users/
> ---
> You received this message because you are subscribed to the Google Groups
> "reviewboard" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to reviewboard+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
Supercharge your Review Board with Power Pack: 
https://www.reviewboard.org/powerpack/
Want us to host Review Board for you? Check out RBCommons: 
https://rbcommons.com/
Happy user? Let us know! https://www.reviewboard.org/users/
--- 
You received this message because you are subscribed to the Google Groups 
"reviewboard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to reviewboard+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: rbt patch "file not found"

2016-09-23 Thread Daniel Kuecker
Perforce repo and the diff was generated with and older version of RBTools
(post-review era.).

On Fri, Sep 23, 2016 at 12:06 AM Christian Hammond <christ...@beanbaginc.com>
wrote:

> What type of repository is this, and how was the diff generated/uploaded?
>
> Christian
>
> --
> Christian Hammond
> President/CEO of Beanbag <https://www.beanbaginc.com/>
> Makers of Review Board <https://www.reviewboard.org/>
>
> On Thu, Sep 22, 2016 at 6:55 AM, Daniel Kuecker <dan...@kuecker.net>
> wrote:
>
>> Oops, forgot to mention I am running this on Windows 10.
>>
>> RBTools:  0.7.6
>> RB: tried on versions 1.7.27 and 2.5.6.1
>>
>>
>> On Thursday, September 22, 2016 at 8:50:04 AM UTC-5, Daniel Kuecker wrote:
>>>
>>> Running "rbt patch " command results in a file not found
>>> error for every file in the request.  I verified the files are synced to my
>>> local drive.  Any ideas?
>>>
>>> Command line info (path info removed for anonymity):
>>> C:\P4>rbt patch 127325
>>> Patch is being applied from request 127325 with diff revision 1.
>>> Failed to execute command: [u'patch', u'-i',
>>> u'c:\\users\\***\\appdata\\local\\temp\\tmpjq4zbu']
>>> can't find file to patch at input line 3
>>> Perhaps you should have used the -p or --strip option?
>>> The text leading up to this was:
>>> --
>>> |---
>>> ///***/setupscripts/trunk/16.0/source//_common_impl_details.rb
>>>
>>> ///***/setupscripts/trunk/16.0/source//_common_impl_details.rb#6
>>> |+++
>>> ///***/setupscripts/trunk/16.0/source//_common_impl_details.rb
>>>   2016-02-18 09:21:42
>>> --
>>> File to patch:
>>> Skip this patch? [y]
>>> Skipping patch.
>>> 1 out of 1 hunk ignored
>>> missing header for unified diff at line 17 of patch
>>> can't find file to patch at input line 17
>>> Perhaps you should have used the -p or --strip option?
>>> The text leading up to this was:
>>> --
>>> |/setupscripts/trunk/16.0/source//_setup_common_impl_details.rb
>>>
>>> ///***/setupscripts/trunk/16.0/source//_setup_common_impl_details.rb#2
>>> |+++
>>> ///***/setupscripts/trunk/16.0/source//_setup_common_impl_details.rb
>>> 2016-02-18 09:21:43
>>> --
>>> File to patch:
>>> Skip this patch? [y]
>>> Skipping patch.
>>> 1 out of 1 hunk ignored
>>> missing header for unified diff at line 27 of patch
>>> can't find file to patch at input line 27
>>> Perhaps you should have used the -p or --strip option?
>>> The text leading up to this was:
>>> --
>>> |/***/setupscripts/trunk/16.0/source//_setup_impl_details.rb
>>>
>>>  
>>> ///***/setupscripts/trunk/16.0/source//_setup_impl_details.rb#2
>>> |+++
>>> ///***/setupscripts/trunk/16.0/source//_setup_impl_details.rb
>>>2016-02-18 09:21:43
>>> --
>>> File to patch:
>>> Skip this patch? [y]
>>> Skipping patch.
>>> 1 out of 1 hunk ignored
>>>
>>>
>>> --
>> Supercharge your Review Board with Power Pack:
>> https://www.reviewboard.org/powerpack/
>> Want us to host Review Board for you? Check out RBCommons:
>> https://rbcommons.com/
>> Happy user? Let us know! https://www.reviewboard.org/users/
>> ---
>> You received this message because you are subscribed to the Google Groups
>> "reviewboard" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to reviewboard+unsubscr...@googlegroups.com.
>> For more options, visit https://groups.google.com/d/optout.
>>
>
> --
> Supercharge your Review Board with Power Pack:
> https://www.reviewboard.org/powerpack/
> Want us to host Review Board for you? Check out RBCommons:
> https://rbcommons.com/
> Happy user? Let us know! https://www.reviewboard.org/users/
> ---
> You received this message because you are subscribed to the Google Groups
> "reviewboard" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to reviewboard+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
Supercharge your Review Board with Power Pack: 
https://www.reviewboard.org/powerpack/
Want us to host Review Board for you? Check out RBCommons: 
https://rbcommons.com/
Happy user? Let us know! https://www.reviewboard.org/users/
--- 
You received this message because you are subscribed to the Google Groups 
"reviewboard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to reviewboard+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: How to access the review board site from other system via browser?

2016-09-22 Thread Daniel Kuecker
Are you getting an error?

Did you copy your apache-wsgi.conf to /etc/httpd/conf.d/?

If you did that, you might need to enable httpd port passthru in the 
firewall.

On Thursday, September 22, 2016 at 9:19:22 AM UTC-5, P P Gobind Chandra 
Praharaj wrote:
>
> I have set-up all prerequisites and all the installation required for 
> local reviewboard along with rb-site, server is apache httpd with mod_wsi. 
>
>
> Can any one help me on how to access the review bpoard which I have 
> installed locally from different systems via web browser.
>
>
> Below are the steps detailed:
>
>
>
>1. yum -y install zlib zlib-devel 
>2. yum -y install openssl-devel 
>3. yum -y install memcached 
>4. yum -y install python-devel
>5.  yum -y install python-setuptools 
>6. yum -y install patch easy_install
>7.  mysql-python yum -y install git-core
>8. easy_install ReviewBoard 
>9. *rb-site install /var/www/ReviewBoard*
>
>
> *Steps followed during Installing rb-site*
>
>
>-  Domain name localhost:80
>-  Root Path : reviews
>- And other configurations are default.
>
>
> All steps are executed successfully.
>
>
> But I do not know how can I access the review board over browser.
>
> Please help me?
>

-- 
Supercharge your Review Board with Power Pack: 
https://www.reviewboard.org/powerpack/
Want us to host Review Board for you? Check out RBCommons: 
https://rbcommons.com/
Happy user? Let us know! https://www.reviewboard.org/users/
--- 
You received this message because you are subscribed to the Google Groups 
"reviewboard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to reviewboard+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Building RBTools 0.7.6 into a single-file exe for Windows

2016-09-22 Thread Daniel Kuecker
Has anyone been successful building RBTools 0.7.6 into a single-file exe 
for distribution on windows? 

I'm trying to wrap rbt post functionality into an exe file and both py2exe 
and pyinstaller built exes are having issues when pkg_resources tries to 
resolve the rbtools package.

The exe builds fine, but when I run it, I get a 
"pkg_resources.distributionnotfound: the 'rbtools' distribution was not 
found and is required by the application" error.

I've tried listing rbtools as hidden imports and importing an egg (although 
the egg import was never successful), to no avail.

Thanks in advance!

--Daniel




-- 
Supercharge your Review Board with Power Pack: 
https://www.reviewboard.org/powerpack/
Want us to host Review Board for you? Check out RBCommons: 
https://rbcommons.com/
Happy user? Let us know! https://www.reviewboard.org/users/
--- 
You received this message because you are subscribed to the Google Groups 
"reviewboard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to reviewboard+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: rbt patch "file not found"

2016-09-22 Thread Daniel Kuecker
Oops, forgot to mention I am running this on Windows 10.

RBTools:  0.7.6
RB: tried on versions 1.7.27 and 2.5.6.1

On Thursday, September 22, 2016 at 8:50:04 AM UTC-5, Daniel Kuecker wrote:
>
> Running "rbt patch " command results in a file not found error 
> for every file in the request.  I verified the files are synced to my local 
> drive.  Any ideas?
>
> Command line info (path info removed for anonymity): 
> C:\P4>rbt patch 127325
> Patch is being applied from request 127325 with diff revision 1.
> Failed to execute command: [u'patch', u'-i', 
> u'c:\\users\\***\\appdata\\local\\temp\\tmpjq4zbu']
> can't find file to patch at input line 3
> Perhaps you should have used the -p or --strip option?
> The text leading up to this was:
> --
> |--- 
> ///***/setupscripts/trunk/16.0/source//_common_impl_details.rb
>  
>   
> ///***/setupscripts/trunk/16.0/source//_common_impl_details.rb#6
> |+++ 
> ///***/setupscripts/trunk/16.0/source//_common_impl_details.rb
>  
>   2016-02-18 09:21:42
> --
> File to patch:
> Skip this patch? [y]
> Skipping patch.
> 1 out of 1 hunk ignored
> missing header for unified diff at line 17 of patch
> can't find file to patch at input line 17
> Perhaps you should have used the -p or --strip option?
> The text leading up to this was:
> --
> |/setupscripts/trunk/16.0/source//_setup_common_impl_details.rb 
>   
> ///***/setupscripts/trunk/16.0/source//_setup_common_impl_details.rb#2
> |+++ 
> ///***/setupscripts/trunk/16.0/source//_setup_common_impl_details.rb
>  
> 2016-02-18 09:21:43
> --
> File to patch:
> Skip this patch? [y]
> Skipping patch.
> 1 out of 1 hunk ignored
> missing header for unified diff at line 27 of patch
> can't find file to patch at input line 27
> Perhaps you should have used the -p or --strip option?
> The text leading up to this was:
> --
> |/***/setupscripts/trunk/16.0/source//_setup_impl_details.rb   
>   
>  
> ///***/setupscripts/trunk/16.0/source//_setup_impl_details.rb#2
> |+++ 
> ///***/setupscripts/trunk/16.0/source//_setup_impl_details.rb 
>2016-02-18 09:21:43
> --
> File to patch:
> Skip this patch? [y]
> Skipping patch.
> 1 out of 1 hunk ignored
>
>
>

-- 
Supercharge your Review Board with Power Pack: 
https://www.reviewboard.org/powerpack/
Want us to host Review Board for you? Check out RBCommons: 
https://rbcommons.com/
Happy user? Let us know! https://www.reviewboard.org/users/
--- 
You received this message because you are subscribed to the Google Groups 
"reviewboard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to reviewboard+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


rbt patch "file not found"

2016-09-22 Thread Daniel Kuecker
Running "rbt patch " command results in a file not found error 
for every file in the request.  I verified the files are synced to my local 
drive.  Any ideas?

Command line info (path info removed for anonymity): 
C:\P4>rbt patch 127325
Patch is being applied from request 127325 with diff revision 1.
Failed to execute command: [u'patch', u'-i', 
u'c:\\users\\***\\appdata\\local\\temp\\tmpjq4zbu']
can't find file to patch at input line 3
Perhaps you should have used the -p or --strip option?
The text leading up to this was:
--
|--- 
///***/setupscripts/trunk/16.0/source//_common_impl_details.rb 
  
///***/setupscripts/trunk/16.0/source//_common_impl_details.rb#6
|+++ 
///***/setupscripts/trunk/16.0/source//_common_impl_details.rb 
  2016-02-18 09:21:42
--
File to patch:
Skip this patch? [y]
Skipping patch.
1 out of 1 hunk ignored
missing header for unified diff at line 17 of patch
can't find file to patch at input line 17
Perhaps you should have used the -p or --strip option?
The text leading up to this was:
--
|/setupscripts/trunk/16.0/source//_setup_common_impl_details.rb 
  
///***/setupscripts/trunk/16.0/source//_setup_common_impl_details.rb#2
|+++ 
///***/setupscripts/trunk/16.0/source//_setup_common_impl_details.rb
 
2016-02-18 09:21:43
--
File to patch:
Skip this patch? [y]
Skipping patch.
1 out of 1 hunk ignored
missing header for unified diff at line 27 of patch
can't find file to patch at input line 27
Perhaps you should have used the -p or --strip option?
The text leading up to this was:
--
|/***/setupscripts/trunk/16.0/source//_setup_impl_details.rb   
  
 ///***/setupscripts/trunk/16.0/source//_setup_impl_details.rb#2
|+++ 
///***/setupscripts/trunk/16.0/source//_setup_impl_details.rb 
   2016-02-18 09:21:43
--
File to patch:
Skip this patch? [y]
Skipping patch.
1 out of 1 hunk ignored


-- 
Supercharge your Review Board with Power Pack: 
https://www.reviewboard.org/powerpack/
Want us to host Review Board for you? Check out RBCommons: 
https://rbcommons.com/
Happy user? Let us know! https://www.reviewboard.org/users/
--- 
You received this message because you are subscribed to the Google Groups 
"reviewboard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to reviewboard+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: rbt patch on Windows troubles

2016-09-20 Thread Daniel Kuecker
I'm also having issues, but on Windows 10.

I was able to get patch.exe to run via the link Igor posted above 
(http://math.nist.gov/oommf/software-patchsets/patch_on_Windows7.html).

When I manually run patch with the temporary file "rbt patch" creates, it 
crashes.  An inspection of the temporary patch file shows windows line 
endings (LF) instead of unix line endings (CR/LF).  Adding the "--binary" 
option to the patch.exe call 
(per http://gnuwin32.sourceforge.net/packages/patch.htm) works when 
manually run.

Is there any way to get rbt patch to create a temporary patch file with 
proper line endings?

FWIW:  I ran this from a linux machine and it works fine.

Thanks!

--Daniel

On Tuesday, April 8, 2014 at 3:07:23 PM UTC-5, Igor Berger wrote:
>
> Hello,
>
> This is not a Review Board problem. I'm just wondering whether anyone is 
> using "rbt patch" on Windows 7.
>
> I figured out that in order for "rbt patch" to work, patch itself has to 
> be installed separately.
> I've found these precompiled binaries for Windows: 
> http://gnuwin32.sourceforge.net/packages/patch.htm
>
> However, patch crashes even if I use workarounds listed here:
> http://math.nist.gov/oommf/software-patchsets/patch_on_Windows7.html
>
> Any ideas?
>
> Thank you,
> Igor.
>
>

-- 
Supercharge your Review Board with Power Pack: 
https://www.reviewboard.org/powerpack/
Want us to host Review Board for you? Check out RBCommons: 
https://rbcommons.com/
Happy user? Let us know! https://www.reviewboard.org/users/
--- 
You received this message because you are subscribed to the Google Groups 
"reviewboard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to reviewboard+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.