-
Notifications
You must be signed in to change notification settings - Fork 78
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
sfdx force:mdapi:deploy does nothing and passes succesfully #1508
Comments
Thank you for filing this issue. We appreciate your feedback and will review the issue as soon as possible. Remember, however, that GitHub isn't a mechanism for receiving support under any agreement or SLA. If you require immediate assistance, contact Salesforce Customer Support. |
Hello @patrykacc, In our project we are doing the same thing. using sfdx force:source:convert command to create package and then using sfdx force:mdapi:deploy to deploy the components to our sandboxes. Please let me know if you find any solution or workaround for this issue. Thank you. |
As a temporary workaround, try to downgrade to SFDX version. 7.149.1 seems to have worked for me. |
When I tested it, it didn't work properly. However, looks like something has changed within the last hour, because when I tried it again (with 7.149.1), it started immediately. However it might work in the latest versions by using |
|
that is an extremely old CLI (like a year and a half). Please update it. once that's done, please supply the version information that the issue template requests, as well as the command that you're running. |
I'm having this issue as well. I first noticed it on Friday 5/13 so I'm assuming it was introduced in version 7.150.0. I have it running on GitHub with the latest version (sfdx-cli/7.150.0 linux-x64 node-v16.15.0) and was able to reproduce it locally as well (sfdx-cli/7.150.0 win32-x64 node-v16.15.0). Below is the command I'm running. The legacy command does still work, thankfully. sfdx force:mdapi:deploy -u DevOrg -d src -w -1 --verbose |
there's a bug with I'm trying to figure out if this is a different issue--the "it does nothing" (that is, it doesn't start a deployment at all) seems different than the "it's not waiting and timing out" that 1519 is tracking. Or whether this is just something about that really old CLI version. |
Morning all 👋 The Please let us know if you continue to have issues. Thanks for everyone's patience while it got this fixed! |
@mshanemc Heya. Same issue as the original. sfdx-cli/7.150.0 win32-x64 |
Hey @dcstuff, |
Thanks, @iowillhoit ! Much appreciated! |
Any update on this? We are still facing issues as of 13.33 GMT. Do you know when 7.151.1 will be released in GMT? Many thanks in advance |
We tried the workaround using force:mdapi:legacy:deploy and this does allow the command to start the deployment to our environments, however it seems this command does not play nice with destructiveChanges.xml as i'm getting multiple errors because component doesn't exist, whereas this has not been a problem with the same repo before this bug. Any help would be hugely appreciated |
@felix-clay • Update with npm: Regarding your second comment, this issue is really tracking the |
Version |
This is still not resolved for me, I am using sfdx-cli/7.151.1 linux-x64 node-v16.15.0 and sfdx force:mdapi:deploy is still completing without actually deploying. Is this working for anyone else? |
sfdx-cli 7.151.1 is outdated. You may upgrade to 7.152.0. |
@felix-clay could you open a new issue with and complete the template? It seems you might be experiencing a different issue. have you tried downgrading to 7.149.1 to confirm that it works? |
@iowillhoit @cristiand391 But the symptoms described by @felix-clay are the same as described in the initial issue comment? Btw. upgrading to 7.152.0 doesn't seem to fix it. |
@SoftCreatR yes, I'm seeing 2 different bugs here:
bug 2 was fixed in 7.151.1, and that's why we closed this issue, the original author experienced bug 1 but didn't provide more details. I'll reopen it but will need more info to help troubleshooting:
Also you can get logs by appending |
Log: https://gist.github.com/SoftCreatR/b0df4b0f6e60564a25bd457f2cb5a73f It still works using |
Agree with above
|
We have the same issue. It seems to have to do with the size(s?) of the static resources. If I remove our largest one everything is fine. If I trim that one down everything is fine. I don't know if it's the combined size, or the individual file size, but for sure, if I remove the large one from the export and omit it from the package xml then everything deploys without a problem. Otherwise all the symptoms above apply. |
Heads up: Issue still exists in sfdx 7.153.0. As a workaround, we switched from |
I'm trying to gather as much data as I can to reproduce it so anything you all have in common would really help. |
|
@shetzel The same command works for a few files, but fails with "full" redeployment of all classes, so I think it's safe to assume that the size is the issue for us as well. |
Thanks @Rogeriohsjr and @astef-trilogy. It took a while, but I reproduced it. I started by adding 4.3M static resources to the Dreamhouse project. I got to 78M and it was still deploying everything just fine. I then added 1000 CustomLabels. Still deploys fine. I added 1000 ApexClasses (copies of the PropertyController class) and 💥. Fail. I then removed static resources until I got a successful deploy with the 1000 ApexClasses and got a success around 14M. I added static resources back until 22M and used |
Same issue using: sfdx-cli/7.153.1 force:mdapi:deploy does nothing |
Affected here as well. |
Downgrading to |
We're having the same issue here, just tried out with 7.154.0 and it's not working. |
I am having the same issue here too. Version 7.154.0 is not working. The command simply does nothing at all. |
Another vote for the same issue happening. Legacy deploy worked. on sfdx-cli/7.154.0 darwin-x64 node-v16.15.0 |
was able to reproduce in |
This should now be fixed with CLI v7.156.1 |
Hi, hate to report this. But I am seeing this behavior in |
Hi, We've got the same behavior here on our CI : |
@shetzel I'm running 7.176.1 and am also seeing this issue has popped back up. Our builds started to fail around Nov 11th. Running force:mdapi:legacy:deploy does work as workaround for us. |
Can one or more of you run your deploy command using the doctor to generate a log that should contain a stack trace? We'll need the stack trace to see where it's coming from. A small project to repro it would be super helpful as well but the stack trace should point us to the problem code. |
Running the command you suggested asked me to upgrade my version. After I upgraded I didn't see the issue anymore. "Update your CLI version from: 7.176.1 to the latest version: 7.177.1." I just run the sfdx update. Thanks for that command, it shows some suggestion to fix some other issues as well like apiVersion in sfdx-project.json. |
@Rogeriohsjr - glad that worked for you! I'd like to make sure that CLI version 7.177.1 works for everyone else as well. If it doesn't, please help us squash this bug by providing a stack trace and/or repro. Using the doctor command is a great way to discover potential configuration issues. |
@shetzel our builds are back up and working. Thanks |
@shetzel our builds are also working again after the update. Thanks! |
Hello , i am facing this issue with the version 7.188.1 . |
@tony-tawk-ei can you please open a new issue with the standard reproduction stuff. That's sounds like something new. |
Summary
In our CD pipeline hosted on bitbucket, we use the sfdx force:mdapi:deploy command to deploy a source to a sandbox.
Since today it just stopped deploying the code, and doesn't fail, just passes correctly doing nothing.
Steps To Reproduce:
I cant provide a repository, but its size is about 4000 components with a small piece of static resources (a couple of MB).
Expected result
The latest changes from the package are deployed to the org.
Actual result
Nothing happens, deployment is not shown even on sandbox under the deployment tab, pipeline passes this step correctly and moves forward.
System Information
sfdx-cli/7.82.0-3d0c527ac6 linux-x64 node-v12.18.3
Please let me know in case you need any more data for investigation, this issue impacts greatly our development process, thanks.
The text was updated successfully, but these errors were encountered: