-
Notifications
You must be signed in to change notification settings - Fork 335
Wrangler 1.12 publish destroys Worker site #1625
Comments
Hey @hkochniss! Thanks for reporting this. We just reverted back the change we think is the culprit — please try wrangler 1.12.1 and let us know if you're still experiencing an issue — we haven't been able to repro so far. |
Hrm this deeply confusing on my end.. when I run it clearly says
but It clearly does return the right version for 1.11.0 So with this "new"(?) version it still doesn't work, published assets are empty. Rolled back to 1.11 to verify it still works on that version. |
Ok there might be a red herring with the --env variable If I remove So it is seemingly not related to env settings at all. Also I separately tried to just rename the It's weird that a simple publish (nothing else) with 1.11 just fills the namespace correctly, and with 1.12(.1) it doesn't, without any errors/feedback in # of uploaded files etc.. Output could be improved here. I should note that this is the customer's account and I'm an invited admin. Maybe there is some rights issue? I don't know.. |
Hey @hkochniss, sorry that this happened. Since we weren't able to reproduce the issue, we reverted a change that seemed to be the most likely culprit. Unfortunately looks like that wasn't it. Can you send your account id to [email protected] so that I can have a look at the logs to determine where this failure is coming from? |
Thanks, no worries, fixing version to 1.11 fixes it for now and customer didn't see the problm, but I'm of course worried about others.. Just did send an email with AccountId with subject "regarding issue 1625" Had a busy day, will try a minimal repro in github repo until tomorrow. |
Yep, upgrading to 1.12 caused our site to stop working and return an error as well. Downgraded to 1.11 and its working now. Also noticed the with the version not changing to 1.12.1 when doing |
@hkochniss @lostpebble still trying to reproduce this, any chance you can share your project structure or private repo? |
@nataliescottdavidson I'll chime in here as well. I could reproduce this with 1.12. Downgrading to 1.11 resolved the issue for me. I added some steps in what I thought could be related issue yesterday: #1565 (comment) |
I could reproduce this with a new generated default |
ok so I tried a few things:
switching back to wrangler 1.11 does work. I really don't know what better repro steps to provide when the standard template approach from https://developers.cloudflare.com/workers/platform/sites/start-from-scratch doesn't work.. I would caution using the npm version right now, there really seems to be a software delivery chain problem when my npm version is not equal the rust version. Might be CF people from America fetch a wrong/old version.. Sorry, out of ideas here, please provide steps to help, a Github repo would literally only contain the |
Can confirm, I was very confused. Luckily, decided to go to GitHub issues after exhausting all other options, and found this. Downgrading to 1.11 ( |
…)" (cloudflare#1626) This reverts commit bf0601a. Change caused a regression which destroyed deployments. cloudflare#1625
@ all who were affected by this, sincere apologies. 1.12.1 does not have the correct fix, 1.12.2 does. |
just to confirm: works now and |
It's happening to me on Wrangler |
I just had this happen to me on |
@nataliescottdavidson should we create a new issue or would you rather reopen this? |
I can confirm, it sometimes happens on 1.19.0. It seems to be pretty irregular and hard to debug. |
This happens to me with 1.19.11 if you visit my page https://nenadkostic.com you will see that each blog entry if reloaded returns that could not find index.html page. I tried 1.11, 1.18 multiple time build publish and same result. I can not share my links to anyone right now and all links that lead to my blog posts directly not accessible. Any workaround suggestions ? |
I'm having this issue in |
🐛 Bug Report
New wrangler 1.12 destroyed our worker site in Ubuntu CI/CD Agent (and locally reproducible on Windows 10).
"destroyed" means the KV namespace is completely empty after publish, resulting in a simple "could not find index.html in your content namespace" error message when invoking the website
Switching back to wrangler 1.11 (fixing version in CI/CD pipeline) did fix the problem. So surprise, much blame!
UPDATE see below comment, the [env] stuff is a red herring, it also doesn't work with basically the simplest Worker site toml without any usage of
--env
.Environment
rustc -V
: - not installed locallynode -v
: v12.16.1wrangler -V
: wrangler 1.12.0wrangler.toml
Old toml
New simplified toml that stil exhibits the behavior:
Steps to reproduce
Old toml
wrangler build --env dev
wrangler publish --env dev
Newer simple toml
wrangler build
wrangler publish
with a built vue SPA site (or any site) that gets built to /dist directory. I suppose the content of the website nor the bucket does really matter here..
What did you expect to see?
Worker site not being destroyed 10 minute before customer review..
What did you see instead?
"could not find index.html in your content namespace"

The text was updated successfully, but these errors were encountered: