gs://codelab-elements no longer accessible?

555 views
Skip to first unread message

Wu-chang Feng

unread,
Nov 1, 2022, 12:52:54 AM11/1/22
to codelab-authors
Hi,

It looks like something has changed in the permissions of the codelab-elements storage bucket.  The bucket has the stylesheets my codelabs utilize.  Is this intentional?  Are there any workarounds?

image.png

Thanks,
Wu-chang

Marc Cohen

unread,
Nov 1, 2022, 2:41:54 AM11/1/22
to Wu-chang Feng, codelab-authors
Hi Wu-chang,

Thanks for catching this. I'm looking into it.

Marc

--
You received this message because you are subscribed to the Google Groups "codelab-authors" group.
To unsubscribe from this group and stop receiving emails from it, send an email to codelab-autho...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/codelab-authors/CAGV4%3DhansAtYZa%2Bm1kyjPgqmFATMBHFi6b0tn2HLOA_oa9-jrg%40mail.gmail.com.

Timotei-Vlad Cipariu

unread,
Nov 1, 2022, 4:45:36 AM11/1/22
to codelab-authors
I'm having the same problem, I noticed there's an auth param, I ran claat -h, however I'm not sure how to generate it or if it helps.

Marc Cohen

unread,
Nov 1, 2022, 4:52:44 AM11/1/22
to Timotei-Vlad Cipariu, codelab-authors
Thanks Tim, we're working on it.  This is due to some clean up of legacy resources but we missed the dependency on this bucket. We're trying to restore it. Will keep you and others posted on this thread.



--
Marc Cohen
Web: mco.dev

Q: Why is this email three sentences or less?

Khalil Hammami

unread,
Nov 1, 2022, 5:30:49 AM11/1/22
to codelab-authors
Hi Marc,

is Google going to keep hosting those files in the future? (honestly we're taking advantage of Google CDN)

as work around, you may host them to your own CDN/hosting provider and then update your codelabs with claat by adding the option "-prefix"


Khalil Hammami

Marc Cohen

unread,
Nov 1, 2022, 5:39:34 AM11/1/22
to Khalil Hammami, codelab-authors, Peretz Cohen
Hi Khalil,

I'd like to continue serving them from Google Cloud Storage as a public service, but you're right that people can serve their own copies, which would avoid the dependency that just broke. I'm now regenerating the resources from the public codelab-elements repo and running into some versioning challenges. Will let you know when I have a new copy available.

Marc Cohen

unread,
Nov 1, 2022, 5:43:39 AM11/1/22
to m...@google.com, Khalil Hammami, codelab-authors, Peretz Cohen
p.s. If anyone has a copy of those codelab-elements resources they can share publicly, that may unblock some folks on this list.

Phạm Xuân Lâm

unread,
Nov 1, 2022, 5:50:12 AM11/1/22
to marca...@gmail.com, m...@google.com, Khalil Hammami, codelab-authors, Peretz Cohen

Marc Cohen

unread,
Nov 1, 2022, 5:52:30 AM11/1/22
to Phạm Xuân Lâm, marca...@gmail.com, Khalil Hammami, codelab-authors, Peretz Cohen
Awesome, thanks!  I'll drop those in a bucket and test them now.
Marc Cohen
Webmco.dev

Marc Cohen

unread,
Nov 1, 2022, 6:04:03 AM11/1/22
to Phạm Xuân Lâm, marca...@gmail.com, Khalil Hammami, codelab-authors, Peretz Cohen
Those seem to be working, I've put them in a new bucket gs://codelab-elements-tmp. To work around this problem, in your index.html file, change occurrences of:

https://storage.googleapis.com/codelab-elements

to 

https://storage.googleapis.com/codelab-elements-tmp
 
Note the "-tmp" suffix is the only change.

Let me know if that doesn't work. I'll keep working on getting the non-tmp bucket restored but this should hopefully unblock some folks.

Marc Cohen

unread,
Nov 1, 2022, 6:19:09 AM11/1/22
to Phạm Xuân Lâm, marca...@gmail.com, Khalil Hammami, codelab-authors, Peretz Cohen
And, per Khalil's point, you can also work around this by serving those resource files using your own method, and either hacking your index.html files to reference your location, or use the --prefix option to regenerate your labs with the alternate source. Serving your own copy, of course, reduces your dependencies. :)

Tamimi Ahmad

unread,
Nov 2, 2022, 10:02:09 AM11/2/22
to Marc Cohen, Phạm Xuân Lâm, marca...@gmail.com, Khalil Hammami, codelab-authors, Peretz Cohen
Thanks for the update on this folks! 

@Marc - we'll be waiting on your updated fix. In the meantime we'll use the -temp location and see this fixes our issue



--
Best Regards,
Tamimi, Ahmad

Marc Cohen

unread,
Nov 6, 2022, 11:21:22 AM11/6/22
to Tamimi Ahmad, Phạm Xuân Lâm, marca...@gmail.com, Khalil Hammami, codelab-authors, Peretz Cohen
 Looks like I've lost access to the codelab-elements bucket so I've created a new one (claat-public) and am in the process of changing the claat code to use that new bucket name. I'm not planning on removing the work-around bucket (codelab-elements-tmp) any time soon but if you prefer to switch to something more permanent you could edit your generated code to use claat-public or use the updated claat, once available, to regenerate your labs. Of course, your best bet long-term will be to serve these assets yourself.

I'll ping this thread when the fix is merged. Btw, this PR also fixes the oob oauth problem, which you will see if you try to claat export a codelab source file from Google Docs.

Marc Cohen

unread,
Nov 10, 2022, 6:06:09 AM11/10/22
to Tamimi Ahmad, Phạm Xuân Lâm, marca...@gmail.com, Khalil Hammami, codelab-authors, Peretz Cohen
This is merged into the github repo. So you can "git pull" if you have a local copy of the repo and re-built/re-install it, or you can follow the install instructions in the repo readme, or you can download a binary release from this page.

Marc

Paul Eldridge

unread,
Nov 17, 2022, 3:56:19 PM11/17/22
to codelab-authors
Hey folks! This might be a different topic than this thread, LMK. But since this would be my first "Update" of my claat binary, is there a way to make that a dedicated claat command? Something like "$claat version update" that triggers a download and install of the latest version?

Otherwise I suppose I just overwrite the old claat binary with the new one from the release page or re-run $go install github.com/googlecodelabs/tools/claat@latest and it'll overwrite?

Axel Thevenot

unread,
Nov 22, 2022, 9:28:23 AM11/22/22
to codelab-authors
Hello Marc, 

Thank you for your temporary bucket. 
I tried to replace the `https://storage.googleapis.com/codelab-elements` with `https://storage.googleapis.com/codelab-elements-tmp` yet I am facing a new issue. 

It indicates a fail to load `https://storage.googleapis.com/codelab-elements-tmp/google_codelab_scss_bin.css.map` (404 ERROR) when I tried to change the:
<link rel="stylesheet" href="https://storage.googleapis.com/codelab-elements/codelab-elements.css"><style>
into:
<link rel="stylesheet" href="https://storage.googleapis.com/codelab-elements-tmp/codelab-elements.css"><style>

Did you faced this issue too ? 

Marc Cohen

unread,
Nov 22, 2022, 9:35:38 AM11/22/22
to Axel Thevenot, codelab-authors
Two things:

- use claat-public instead of codelab-elements-tmp, since the latter is temporary
- if that doesn't help, can you send me your index.html (privately, and please anything proprietary)

Marc

Erik Fredericks

unread,
Dec 8, 2022, 9:04:37 PM12/8/22
to marca...@gmail.com, codelab-authors
Hi Marc,

I'm actually having the same issue as Axel, though I see a 403: Forbidden error.  

All I tried to do was modify the CSS link in my index.html file - I can send the whole thing if you want but the error appears to be with the link:

<!doctype html>
<html>
<head>
  <meta name="viewport" content="width=device-width, minimum-scale=1.0, initial-scale=1.0, user-scalable=yes">
  <meta name="theme-color" content="#4F7DC9">
  <meta charset="UTF-8">
  <title>CIS680 - Google Cloud Account/Project Setup</title>
  <link rel="stylesheet" href="//fonts.googleapis.com/css?family=Source+Code+Pro:400|Roboto:400,300,400italic,500,700|Roboto+Mono">
  <link rel="stylesheet" href="//fonts.googleapis.com/icon?family=Material+Icons">
  ...

Note: I also tried with codelab-elements-tmp and received the same error.  Do I need to actually rebuild with claat or can I just modify the HTML?

image.png

Thanks!
Erik

Marc Cohen

unread,
Dec 9, 2022, 2:55:57 AM12/9/22
to Erik Fredericks, marca...@gmail.com, codelab-authors
Hi Erik,

Looks like a permissions issue. I've just refreshed the perms on those object. Can you try it again?

Marc

Paul Eldridge

unread,
Jan 3, 2023, 2:22:50 PM1/3/23
to codelab-authors
Hey folks -- was this fixed? I'm still having the rendering issue with 'claat -export' producing a raw markdown object rather than Codelabs formatting. 

Nick Comeau

unread,
Jan 5, 2023, 9:53:11 AM1/5/23
to codelab-authors
I had success with making sure I was using the newest version of claat:


and the folder rename here:

I'm not sure both are needed, try the newest claat first and see if `codelab-elements` is replaced with `claat-public` in your index upon a fresh export.

Reply all
Reply to author
Forward
0 new messages