Skip to content
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

retry feature for jsk_data.download_data.py #1574

Closed
k-okada opened this issue Nov 21, 2017 · 1 comment
Closed

retry feature for jsk_data.download_data.py #1574

k-okada opened this issue Nov 21, 2017 · 1 comment
Assignees

Comments

@k-okada
Copy link
Member

k-okada commented Nov 21, 2017

sometime download_data.py fails for some reason, can we add retry parameter? like https://github.com/ros/ros/blob/lunar-devel/core/rosbuild/core/rosbuild/bin/download_checkmd5.py#L77 ?

https://s3.amazonaws.com/archive.travis-ci.org/jobs/304331569/log.txt?X-Amz-Expires=30&X-Amz-Date=20171121T053939Z&X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAJRYRXRSVGNKPKO5A/20171121/us-east-1/s3/aws4_request&X-Amz-SignedHeaders=host&X-Amz-Signature=7300fae9676861b336e7b85437c1db8d6d36fc838c14fc407f675e31645d70e3

/usr/local/lib/python2.7/dist-packages/urllib3/util/ssl_.py:137: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. You can upgrade to a newer version of Python to solve this. For more information, see https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings


  InsecurePlatformWarning


Process Process-2:


Traceback (most recent call last):


  File "/usr/lib/python2.7/multiprocessing/process.py", line 258, in _bootstrap


    self.run()


  File "/usr/lib/python2.7/multiprocessing/process.py", line 114, in run


    self._target(*self._args, **self._kwargs)


  File "/opt/ros/indigo/lib/python2.7/dist-packages/jsk_data/download_data.py", line 127, in download_data


    download(download_client, url, cache_file, quiet=quiet, chmod=chmod)


  File "/opt/ros/indigo/lib/python2.7/dist-packages/jsk_data/download_data.py", line 62, in download


    os.chmod(output, 0766)


OSError: [Errno 2] No such file or directory: '/workspace/.ros/data/jsk_pcl_ros/2017-06-19-19-34-18_tabletop_coffeecup.tgz'


ERROR bag unindexed: /workspace/ros/ws_jsk_recognition/src/jsk_recognition/jsk_pcl_ros/sample/data/2016-07-06-12-16-43-person-in-point-cloud/vision.compressed.bag.  Run rosbag reindex.


cd /workspace/ros/ws_jsk_recognition/build/jsk_pcl_ros; catkin build --get-env jsk_pcl_ros | catkin env -si  /usr/bin/make --jobserver-fds=6,7 -j; cd -
@wkentaro
Copy link
Member

wkentaro commented Jan 9, 2018

Sorry for late. Is this still a problem? @k-okada
Do you have any opinion? @furushchev

@wkentaro wkentaro self-assigned this Jan 9, 2018
k-okada added a commit that referenced this issue Aug 14, 2018
[jsk_data] Add re-download code. Fix #1574
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants