vast-ai / vast-python

Vast.ai python and cli api client
MIT License
117 stars 44 forks source link

Error in machine rental setup #33

Open licenciadovarela opened 2 years ago

licenciadovarela commented 2 years ago

Hi all,

After following the instructions from https://vast.ai/console/host/setup/

wget https://vast.ai/install -O install; sudo python2.7 install....

I get the following error log:

... Reading package lists... Building dependency tree... Reading state information... xfsprogs is already the newest version (5.3.0-1ubuntu2). 0 upgraded, 0 newly installed, 0 to remove and 78 not upgraded. [2022-05-27 20:00:17.124061 UTC] makepartition():376: OSError reading partition link, will assume it doesn't exist. error: [Errno 2] No such file or directory: '/dev/disk/by-partlabel/vast_client_data' [2022-05-27 20:00:17.126374 UTC] process_check_output():164: subprocess.check_output(['parted', '-sl']) [2022-05-27 20:00:17.131280 UTC] ():968: Traceback (most recent call last): File "install", line 907, in docker_install(args.allow_partitioning) File "install", line 531, in docker_install filename = makepartition() File "install", line 377, in makepartition new_partition = allocate_partition(minsize) File "install", line 273, in allocate_partition out = process_check_output(["parted", "-sl"], stderr=logfile) File "install", line 166, in process_check_output result = subprocess.check_output(*a, *kw) File "/usr/lib/python2.7/subprocess.py", line 216, in check_output process = Popen(stdout=PIPE, popenargs, **kwargs) File "/usr/lib/python2.7/subprocess.py", line 394, in init errread, errwrite) File "/usr/lib/python2.7/subprocess.py", line 1047, in _execute_child raise child_exception OSError: [Errno 2] No such file or directory

Could you kindly provide a solution? Thanks