stencil-cli
stencil-cli copied to clipboard
There was a problem with the zip file. (TR-300)
Expected behavior
It should push theme on site.
Actual behavior
stencil push Validating theme... SCSS Parsing Started... Template Parsing Started... Language Files Parsing Started... Building Theme Schema File... Schema Translations Parsing Started... Theme task Started... ok -- Language Files Parsing Finished ok -- Schema Translations Parsing Finished ok -- Theme Schema Building Finished ok -- SCSS Parsing Finished ok -- Template Parsing Finished Webpack Bundle Analyzer saved report to /var/www/html/bigcommerce/cornerstone/assets/dist/report.html
WARNING in asset size limit: The following asset(s) exceed the recommended size limit (300 KiB). This can impact web performance. Assets: theme-bundle.main.js (318 KiB)
WARNING in entrypoint size limit: The following entrypoint(s) combined asset size exceeds the recommended limit (300 KiB). This can impact web performance. Entrypoints: main (318 KiB) theme-bundle.main.js
ok -- Theme task Finished Generating Manifest Started... ok -- Manifest Generation Finished ok -- Zipping Files Finished ok -- Theme Upload Finished Processing [ ] 0%; ETA: 0.0
not ok -- JobCompletionStatusCheckError: Job Failed
There was a problem with the zip file. (TR-300)
Please visit the troubleshooting page https://developer.bigcommerce.com/stencil-docs/deploying-a-theme/troubleshooting-theme-uploads. If this error persists, please visit https://github.com/bigcommerce/stencil-cli/issues and submit an issue.
Steps to reproduce behavior
using cornerstone 5.0 theme
Same problem with Cornerstone version 5.1.0.
We did a stencil download
, changed a single line of HTML and then stencil push
.
Update: Tested with a fresh stencil init and no changes made. push
still results in TR-300.
Same. I literally just did a stencil download
, npm install
, and stencil bundle
without making any edits to a single theme file. On both Windows 10 and MacOS I still get TR-300 when attempting to push
.
I also tried:
- reinstalling the stencil CLI
- changing my version on nodejs using nvm
- following the instructions for TR-300 on the support page.
- switching to version 3.0.3
Same error, I wouldn't change anything for the test. Here is what I did;
scripts
mkdir test
cd test
npm i
stencil init --url xxx --token xxx
stencil download
stencil bundle
stencil push
error
Validating theme...
SCSS Parsing Started...
Template Parsing Started...
Language Files Parsing Started...
Building Theme Schema File...
Schema Translations Parsing Started...
Theme task Started...
ok -- Schema Translations Parsing Finished
ok -- Language Files Parsing Finished
ok -- SCSS Parsing Finished
ok -- Theme Schema Building Finished
ok -- Theme task Finished
ok -- Template Parsing Finished
Generating Manifest Started...
ok -- Manifest Generation Finished
ok -- Zipping Files Finished
ok -- Theme Upload Finished
Processing [============ ] 12%; ETA: 0.0s
not ok -- JobCompletionStatusCheckError: Job Failed
There was a problem with the zip file. (TR-300)
Please visit the troubleshooting page https://developer.bigcommerce.com/stencil-docs/deploying-a-theme/troubleshooting-theme-uploads.
If this error persists, please visit https://github.com/bigcommerce/stencil-cli/issues and submit an issue.
my env on window 10
node --version: 12.0.0
npm --version:6.9.0
stencil --version: 3.1.0
It seems the issue won't be fixed, please give me an advice or alternative way to solve this issue.
Hi, I am having the exact same issue.
I have also tried changing environment:
- MacOS BigSur 11 (node 12)
- CentOS 7 (node 12)
It is really time consuming debugging this error. To rule any custom code issue, I tested the "stencil push" with a brand new store, with an unmodified theme "Cornerstone 1.5.0".
Is there any ETA when this core issue will be resolved ?
@yesha-patel , @dfrdmn @kennsorr @lonie8989 @andres3210 This issue was fixed in https://github.com/bigcommerce/stencil-cli/pull/685 and released as v3.1.1 to NPM. Please, retry with the updated version of stencil-cli.
Basically, there was a bug in unarchiving code inside stencil download
command which was corrupting images and causing TR-300 on stencil push
.
So if you previously downloaded the theme using stencil download
command - you will need to delete/rollback it and download a normal not broken version