Can't publish on quarto-pub #3940
-
I am trying to publish on quarto-pub and I am stuck in a loop hole. I always get this message
I try a lot of things:
Thanks for your help Pierre |
Beta Was this translation helpful? Give feedback.
Replies: 7 comments 3 replies
-
yes, me too.. |
Beta Was this translation helpful? Give feedback.
-
I have the same. It keeps asking for authorization |
Beta Was this translation helpful? Give feedback.
-
Thanks for the report. I have open an issue to track resolution: #3941 No need to everyone comment. You can add 👍 to confirm but we are aware of the issue. Thanks |
Beta Was this translation helpful? Give feedback.
-
Hi All, We identified a configuration issue that was causing publishing to fail with an authorization error. The configuration is now fixed, and publishing is back online. We understand the root cause of the issue, so this won't happen again. Apologies for the inconvenience! Best, Brian |
Beta Was this translation helpful? Give feedback.
-
Looks like a version of this is happening again in February 2024. I have a daily cron job which I set up after an initial manual authorization. After an unclear period, it "loses" this authentication and the cron job stops running (recently on Jan 29, 2024, again on Feb 14, 2024). Is there a way to make this authentication more durable? 2 weeks seems a bit short for an automated process. Couldn't this be set up for annual, or q6 months? Kind of defeating the point of automation with a 2 week re-auth. |
Beta Was this translation helpful? Give feedback.
-
QUARTO_PUB_AUTH_TOKEN="hash" is set at the top of the cron file, but it does not include 'export'. |
Beta Was this translation helpful? Give feedback.
-
Thanks - building an export token line into the start of the cron job works very well.Hindsight - Just wish I had done that from the beginning.Peter
On Monday, February 17, 2025 at 09:42:00 AM EST, Christophe Dervieux ***@***.***> wrote:
Is it best practice to export QUARTO_PUB_AUTH_TOKEN="hash" every time the cron job is run?
I don't know exactly how cronjob script works and sets environment variables. I do know that on Linux usually you need to export a variable so that it is taken into account as an environment variable by the process that will follow. Otherwise, it is just a bash variable.
And so quarto publish does expect QUARTO_PUB_AUTH_TOKEN to be an environment. So you need to make sure the environment variable is set for quarto to read it and find the access token.
If so, it would be helpful to state that in the docs.
We do show example about how to use export on linux to set env var before calling quarto publish. We just don't have an example specific to cron job - as of now we don't plan to document cronjob in our documentation.
Is there a way to make this authentication more durable? 2 weeks seems a bit short for an automated process.
I asked team behind quartopub service about authentication delay when using access token, if any as we interactive credential flow. I'll report what they say when I have an answer.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you commented.Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
Hi All,
We identified a configuration issue that was causing publishing to fail with an authorization error. The configuration is now fixed, and publishing is back online. We understand the root cause of the issue, so this won't happen again.
Apologies for the inconvenience!
Best,
Brian