Comments (8)
Hello - that looks like the tmp
directory doesn't exist. What operating system are you running on?
from bbsfdx.
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
from bbsfdx.
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.
from bbsfdx.
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 [email protected]
Deploying
Add IP range Failed
root@somenumber:/app/MyProject# sfdx bb:iprange:add -r X.X.X.X -u [email protected]
Deploying
Add IP range Failed
from bbsfdx.
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#
**root@somenumber:/app/MyProject# sfdx sfpowerkit:org:relaxiprange -u gitmevg_so --all
sfpowerkit -- The DX@Scale Developer Toolkit -Version:4.0.1 -Release:December 21
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 [email protected]**
from bbsfdx.
Morning,
Good to hear you got your problem resolved.
Thanks for raising the issue - there were actually a couple of problems here:
- The plug-in relied on a
/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. - A couple of security settings have been removed in API 51, and when retrieving them in earlier API versions the value comes back as an XML attribute. That gets lost in the parsing that I carry out, so resulted in invalid XML being deployed, leading to the error that you were seeing in Debian. I've upgraded the plug-in to use the latest API (53).
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
from bbsfdx.
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 [email protected]
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#
from bbsfdx.
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?
from bbsfdx.
Related Issues (1)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bbsfdx.