pai icon indicating copy to clipboard operation
pai copied to clipboard

source upload error when submit v2 job from vscode

Open MaPing01 opened this issue 6 years ago • 15 comments

**source upload error when submit v2 job from vscode **:

source upload error when submit v2 job from vscode , the error is :Error occurred while uploading code: Cannot read property 'getChildren' of undefined:

Brief what process you are following:

How to reproduce it:

OpenPAI Environment:

  • OpenPAI version:1.17
  • Cloud provider or hardware configuration:
  • OS (e.g. from /etc/os-release):
  • Kernel (e.g. uname -a):
  • Hardware (e.g. core number, memory size, storage size, GPU type etc.):
  • Others:

Anything else we need to know:

MaPing01 avatar Apr 21 '20 08:04 MaPing01

Hi @MaPing01 , can you view the storage from the STORAGE EXPLORER ? Annotation 2020-04-21 165346

yiyione avatar Apr 21 '20 08:04 yiyione

Hi @MaPing01 , can you view the storage from the STORAGE EXPLORER ? Annotation 2020-04-21 165346

image yes i can see

MaPing01 avatar Apr 21 '20 09:04 MaPing01

Hi @MaPing01 , The error message looks like the uploader can't open the target folder from the STORAGE EXPLORER, Can you try to go to the target folder ? And see what's happening. for example: Annotation 2020-04-21 1611

yiyione avatar Apr 21 '20 09:04 yiyione

Hi @MaPing01 , The error message looks like the uploader can't open the target folder from the STORAGE EXPLORER, Can you try to go to the target folder ? And see what's happening. for example: Annotation 2020-04-21 1611

image seems nothing can see in my cluster storage? is this due to something i did not set up or what can i do for this?

MaPing01 avatar Apr 21 '20 09:04 MaPing01

I think it's because the cluster admin didn't setup the team-wise storage in OpenPAI (You can check from the job submit page in cluster web portal). You can just disable the source code auto uploading in vscode, and upload your code manually: Annotation 2020-04-21 2222 Set the field "pai.job.v2.upload.<cluster name>.enable" to false.

If you still want use the auto upload feature, you can right click the Personal storage in STORAGE EXPLORER to add your storage, or ask the cluster admin to setup a team-wise storage.

yiyione avatar Apr 21 '20 10:04 yiyione

Hi @MaPing01 , The error message looks like the uploader can't open the target folder from the STORAGE EXPLORER, Can you try to go to the target folder ? And see what's happening. for example: Annotation 2020-04-21 1611

image seems nothing can see in my cluster storage? is this due to something i did not set up or what can i do for this?

image find on the website have error

Hi @MaPing01 , The error message looks like the uploader can't open the target folder from the STORAGE EXPLORER, Can you try to go to the target folder ? And see what's happening. for example: Annotation 2020-04-21 1611

image seems nothing can see in my cluster storage? is this due to something i did not set up or what can i do for this?

image in cluster web portal i found this error? 50070/webhdfs/v1/?op=liststatus not have any response.and if the auto upload will upload source to HDFS default?

MaPing01 avatar Apr 21 '20 11:04 MaPing01

The auto upload for v1 job will upload source to HDFS by default. But for v2 job will not, it should ask user to select a storage, because the OpenPAI don't have a default HDFS any more after pure k8s version.

I don't know the version of your OpenPAI cluster, from the website snip, the Team Share Storages was empty, so the auto upload will fail in vscode ext, and I suggest to disable the source auto upload in vscode ext setting, and do it manually.

yiyione avatar Apr 21 '20 11:04 yiyione

The auto upload for v1 job will upload source to HDFS by default. But for v2 job will not, it should ask user to select a storage, because the OpenPAI don't have a default HDFS any more after pure k8s version.

I don't know the version of your OpenPAI cluster, from the website snip, the Team Share Storages was empty, so the auto upload will fail in vscode ext, and I suggest to disable the source auto upload in vscode ext setting, and do it manually.

thanks a lot. i try to upload source to HDFS manually but i don't konw how to use the HDFS folder in job? and we stiil want to konw how i can access :50070/webhdfs/v1/?op=liststatus and upload source in web portal?

thanks.......................

MaPing01 avatar Apr 21 '20 12:04 MaPing01

If your cluster have a HDFS, there's a document about how to access it HDFS. And I have no idea about what's wrong with the 50070 port, but I think you can try http://<master-node-address>/webhdfs.

Maybe @debuggy can provide some help about access HDFS from the web portal.

yiyione avatar Apr 21 '20 12:04 yiyione

hi, @MaPing01 If you use OpenPAI version 0.17, the hdfs will not be deployed by default.

The 50070 is the port of webHDFS. You could try to directly go to your cluster web Hdfs page (http:///webhdfs or http://:50070) to see if there is any webHDFS exists.

debuggy avatar Apr 22 '20 03:04 debuggy

hi, @MaPing01 If you use OpenPAI version 0.17, the hdfs will not be deployed by default.

The 50070 is the port of webHDFS. You could try to directly go to your cluster web Hdfs page (http:///webhdfs or http://:50070) to see if there is any webHDFS exists. image image

hi @debuggy thanks , my web hdfs page is 5070 and can see some folders,but in the openpai web pag the source upload will acess 50070, what's the difference between 5070 port and 50070 port?

MaPing01 avatar Apr 22 '20 06:04 MaPing01

ok, so the problem is the storage manager will connect to 50070 by default and it could not be configured to other port.

So I suggest you to redeploy webhdfs to port 50070 if you want to use this storage feature and see if it works.

debuggy avatar Apr 23 '20 07:04 debuggy

related issue #4385

debuggy avatar Apr 27 '20 08:04 debuggy

@MaPing01 - had you got a chance try the suggestions? any feedback or updates? thanks.

scarlett2018 avatar Jun 01 '20 07:06 scarlett2018

close as no further response.

fanyangCS avatar Jul 09 '20 03:07 fanyangCS