source upload error when submit v2 job from vscode
**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:
Hi @MaPing01 , can you view the storage from the STORAGE EXPLORER ?

Hi @MaPing01 , can you view the storage from the
STORAGE EXPLORER?
yes i can see
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:

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:
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?
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:
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.
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:
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?
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:
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?
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?
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.
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 Storageswas 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.......................
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.
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://
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.
![]()
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?
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.
related issue #4385
@MaPing01 - had you got a chance try the suggestions? any feedback or updates? thanks.
close as no further response.
