quarto-dev / quarto-cli

Open-source scientific and technical publishing system built on Pandoc.
https://quarto.org
Other
3.82k stars 309 forks source link

quarto publish quarto-pub put user sites in bad state #3365

Closed cscheid closed 7 months ago

cscheid commented 1 year ago

Discussed in https://github.com/quarto-dev/quarto-cli/discussions/3362

Originally posted by **robertwelz** November 17, 2022 Hi, i wanted to deploy a website (created with quarto) using QuartoPub using the `quarto publish quarto-pub.` command. I believe i followed all steps in the documentation carefully, but when i publish the website, it only shows a "Page not found" error. I even deleted the old project and started a new website-project from scratch but without success. Here is the link to the website: [https://robertwelz.quarto.pub/mockwebsite_statistics/](https://robertwelz.quarto.pub/mockwebsite_statistics/) If i can provide more information to solve this problem, please let me know. I'm a total beginner in this. Thanks Robert
cscheid commented 1 year ago

@robertwelz Can you try the following?

  1. log on to https://quartopub.com with the credentials you use to publish
  2. find the site that isn't working and click on it. For me, this looks like this: image
  3. You should land at a page that looks like this: image
  4. Click on "delete site" on the bottom right: image
  5. try publishing again?
robertwelz commented 1 year ago

Unfortunately it still does not work.

cscheid commented 1 year ago

@robertwelz Can you provide more information about what happened? Did quarto publish go through fine? Were there error messages anywhere? Did _publish.yml change?

robertwelz commented 1 year ago

After deleting the site on quartopub.com i ran quarto publish and chose publish update which resulted in an error. I then chose to Add a new destination which went through in the terminal but resulted in the page not found. After the second try, a second id and url was added to _publish.yml

Air-von-Robert:Mockwebsite_Statistic robert$ quarto publish quarto-pub
? Publish update to: › https://quartopub.com/sites/robertwelz/mockwebsite_statistics (Quarto Pub - )
Rendering for publish:

[1/5] basics-recode.qmd
[2/5] index.qmd

processing file: index.qmd
  |.....                                                                 |   7%
  ordinary text without R code

  |.........                                                             |  13%
label: setup (with options) 
List of 1
 $ include: logi FALSE

  |..............                                                        |  20%
  ordinary text without R code

  |...................                                                   |  27%
label: install-packages (with options) 
List of 1
 $ eval: logi FALSE

  |.......................                                               |  33%
  ordinary text without R code

  |............................                                          |  40%
label: load-packages (with options) 
List of 1
 $ eval: logi FALSE

  |.................................                                     |  47%
  ordinary text without R code

  |.....................................                                 |  53%
label: simple-addition
  |..........................................                            |  60%
  ordinary text without R code

  |...............................................                       |  67%
label: scatterplot
  |...................................................                   |  73%
  ordinary text without R code

  |........................................................              |  80%
label: barchart
  |.............................................................         |  87%
  ordinary text without R code

  |.................................................................     |  93%
label: excercise-2 (with options) 
List of 1
 $ eval: logi FALSE

  |......................................................................| 100%
  ordinary text without R code

output file: index.knit.md

[3/5] basics-streuung.qmd
[4/5] basics-regress.qmd
[5/5] basics-lage.qmd

[✓] Preparing to publish site
ERROR: API Error: 404 (Not Found)
Air-von-Robert:Mockwebsite_Statistic robert$ quarto publish quarto-pub
? Publish update to: › Add a new destination...
? Publish with account: › 
? Site name: › mockwebsite_statistics

[✓] Creating quarto-pub site

Rendering for publish:

[1/5] basics-recode.qmd
[2/5] index.qmd

processing file: index.qmd
  |.....                                                                 |   7%
  ordinary text without R code

  |.........                                                             |  13%
label: setup (with options) 
List of 1
 $ include: logi FALSE

  |..............                                                        |  20%
  ordinary text without R code

  |...................                                                   |  27%
label: install-packages (with options) 
List of 1
 $ eval: logi FALSE

  |.......................                                               |  33%
  ordinary text without R code

  |............................                                          |  40%
label: load-packages (with options) 
List of 1
 $ eval: logi FALSE

  |.................................                                     |  47%
  ordinary text without R code

  |.....................................                                 |  53%
label: simple-addition
  |..........................................                            |  60%
  ordinary text without R code

  |...............................................                       |  67%
label: scatterplot
  |...................................................                   |  73%
  ordinary text without R code

  |........................................................              |  80%
label: barchart
  |.............................................................         |  87%
  ordinary text without R code

  |.................................................................     |  93%
label: excercise-2 (with options) 
List of 1
 $ eval: logi FALSE

  |......................................................................| 100%
  ordinary text without R code

output file: index.knit.md

[3/5] basics-streuung.qmd
[4/5] basics-regress.qmd
[5/5] basics-lage.qmd

[✓] Preparing to publish site
[✓] Uploading files (complete)
[✓] Deploying published site
[✓] Published site: https://quartopub.com/sites/robertwelz/mockwebsite_statistics
[✓] Account site updated: https://robertwelz.quarto.pub
cscheid commented 1 year ago

(Thanks for the continued patience!)

What happens if you change the site name from mockwebsite_statistics to something else? I ask because I wonder if the error is associated to that specific site or to your account more generally.

robertwelz commented 1 year ago

I created a new QuartoPub Account and it just worked! (Sorry for not testing this earlier) So i think there is indeed something wrong with my 'old' account with which this error still occurs. For me personally this problem is solved by using the second account but if i you ever want to investigate this problem any further please let me know if i can provide information to help you. Tank you so much for your effort.

cscheid commented 1 year ago

Don't apologize, this is 100% a bug on our side. Thanks for tracking it down, and I'm happy changing the account is a sufficient workaround for you.

@softwarenerd we might want to figure out what's happening with Robert's old account specifically, since the problem seems to be persistent.

softwarenerd commented 1 year ago

@cscheid, yes. I will be looking into this. Thanks for letting us know, @robertwelz.

jacciz commented 1 year ago

I'm having this same issue. Seems like it publishes just fine and I can see the preview. But when I click on the preview it says 'Not Found - Request ID: 01xxxxxxxxxxxx'. Tried changing the name to test, tried a new project with a basic qmd. Also tried to publish using my Quarto pub auth token in .Renviron . I created a new account and still having issues (different, but similar).

jacciz commented 1 year ago

I got it to work! 3rd account later... also uninstalled quarto cli and reinstalled it. Updated R from 4.2.1 to 4.2.2. I still keep having to authorize after every publish.

jkylearmstrong commented 1 year ago

Has there been any update on this?

I was just trying to push some changes I made the landing page

https://user.quarto.pub/book/

looks fine, but when I try to navigate to another page with the the next page button or the chapter select I get this message: image

I am noticing is that when I try to navigate to a different page it goes to

https://user.quarto.pub/chapter/section

as opposed to

https://user.quarto.pub/book/chapter/section

If I add the book to the url link I can see my updates to the pages

mcanouil commented 1 year ago

I don't know if it is exactly the same thing. FYI:

jkylearmstrong commented 1 year ago

@mcanouil yes, that's it exactly! Thank you!

andreasludvig commented 10 months ago

Any news on this. I cannot get the most simple output to work. Everything looks great in preview but all leads to page not found: https://andreasludvig.quarto.pub/

mcanouil commented 10 months ago

I cannot reproduce. Which version of Quarto are you using?

andreasludvig commented 10 months ago

Wow, quick answer. I am using: SUN-SDU+alosvendsen@ADM-128030 MINGW64 ~/OneDrive - Syddansk Universitet/PhD/Kurser/Biostat 2/justdelete $ quarto --version 1.4.515

First i could not publish at all, from this pc (university pc), but succeeded from my personal pc. I then tried to >quarto publish within powershell opened with admin privileges' and it rendered, and prompted me to accept publication at my account. The preview looks fine: image But opening the site just yields: image

mcanouil commented 10 months ago

Since no reports of issues were made regarding this recently and that I am unable to reproduce, it does not seem to be an issue with the cloud provider used for Quarto Pub. When did you create your account? Do you have another account you could try?