Open gitmevg opened 2 years ago
Hello - that looks like the tmp
directory doesn't exist. What operating system are you running on?
I am working on Windows, but I tried via GITBASH as well...
/tmp exists there on navigating
**Username@MACHINENAME MINGW64 /d/projects/vscode/gitmevg $ sfdx bb:iprange:add -r 0.0.0.0:255.255.255.255 -u gitmevg_so2 ERROR running bb:iprange:add: ENOENT: no such file or directory, mkdir '/tmp/bbsfdx_2021122014431016'
Username@MACHINENAME MINGW64 /d/projects/vscode/gitmevg $ cd /tmp**
Username@MACHINENAME MINGW64 /tmp
I don't think I've ever used that command on windows, and looking at the code I can see that it might have problems creating a temporary directory outside of Linux OS or similar. I'll test it on my windows machine and see if I can reproduce the issue.
I just tried and it failed on Debian Conatiner Image for SFDX as well for the IP range (no logs):
root@somenumber:/app/MyProject# sfdx bb:iprange:add -r 0.0.0.0:255.255.255.255 -u XXXXXXXXX@example.com Deploying Add IP range Failed
root@somenumber:/app/MyProject# sfdx bb:iprange:add -r X.X.X.X -u XXXXXXX@example.com Deploying Add IP range Failed
My immediate Problem got resolved with the powerkit plugin:
root@somenumber:/app/MyProject# sfdx plugins | grep power sfpowerkit 4.0.1 root@somenumber:/app/MyProject#
INFO [2021-12-21 06:45:05.867 +0000] (sfpowerkit): Ip range to set : 0.0.0.0-255.255.255.255 INFO [2021-12-21 06:45:07.582 +0000] (sfpowerkit): Polling for Deployment Status INFO [2021-12-21 06:45:13.736 +0000] (sfpowerkit): Ip range is successfully set in XXXXXXXXXX@example.com**
Morning,
Good to hear you got your problem resolved.
Thanks for raising the issue - there were actually a couple of problems here:
/tmp
directory being present - this was the first error you reported. Now it creates a temporary directory below the directory that you are running the command in, and removes it after the command completes.I've pushed a new version of my plug-in that fixes both of these and tested on MacOS and Windows 11. While I understand that you don't need to run this any more, if you have time to run a quick test and let me know if you see any errors, that would be much appreciated - let me know either way so I can close this issue.
You can upgrade to the latest version using sfdx plugins:update
Still failing:
root@somenumber:/app/MyProject# sfdx plugins @salesforce/sfdx-scanner 2.12.0 bbsfdx 1.4.2 sfpowerkit 4.0.1 root@somenumber:/app/MyProject# sfdx bb:iprange:add -r 0.0.0.0:255.255.255.255 -u XXXXXX@example.com Deploying InProgress sleeping for 5 seconds Add IP range Failed root@somenumber:/app/MyProject# uname -a Linux a1de50a2151f 5.10.47-linuxkit #1 SMP Sat Jul 3 21:51:47 UTC 2021 x86_64 GNU/Linux root@somenumber:/app/MyProject#
When you execute the command, this carries out a retrieve and a deployment, and it looks like the deploy is failing. Can you have a look at the deployment status page and see what error you are getting?
Hello,
Getting following error while trying to use the plugin
PS PATH\gitmevg> sfdx bb:iprange:add -r 0.0.0.0:255.255.255.255 -u gitmevg_so1 Pending sleeping for 5 seconds ERROR running bb:iprange:add: ENOENT: no such file or directory, mkdir '/tmp/bbsfdx_2021122014333633'