simonw / datasette-publish-vercel

Datasette plugin for publishing data using Vercel
Apache License 2.0
44 stars 7 forks source link

Error while parsing repo data: ENOENT: no such file or directory, open $tmpdir/datasette-now-v2/.git/config #66

Closed tddschn closed 5 months ago

tddschn commented 5 months ago

@simonw Thank you for making these wonderful tools! I know this plugin is not under active development / maintainence, but could you please take a look at this issue?

macOS, datasette, version 1.0a12

datasette-publish-vercel has been working perfectly for me, but I encountered issue when trying to publish this particular sqlite database.

Full log: https://gist.github.com/tddschn/f511390657e13fb78f0cc43a6239eccc

https://github.com/tddschn/datasette-publish-vercel-generated-dir-events-db is the dir generated by this command:

    datasette publish vercel -m data/metadata.yml --project blog-posts-datasette-vercel data/blog-posts.db --install datasette-search-all --install datasette-render-timestamps --install datasette-render-images --install datasette-uptime \
    --install datasette-render-markdown --generate-dir ../events-db

To reproduce, run:

git clone https://github.com/tddschn/datasette-publish-vercel-generated-dir-events-db
cd datasette-publish-vercel-generated-dir-events-db
vercel --prod --debug
tddschn commented 5 months ago

$tmpdir/datasette-now-v2 is generated by datasette.utils, so I'm not sure if I should open an issue there.

tddschn commented 5 months ago

I tried to deploy sqlite databases in other projects and I found that in new projects the plugin don't work anymore, while in old projects they still work. I don't know why, I haven't reach any usage limit on Vercel. I think one possible explanation is that my new projects are somehow marked to use a new build env on Vercel, but there's no way for me to know for sure.

All my new projects failed like this:

datasette publish vercel --project rick-n-morty-datasette-vercel data/rnm.db --install datasette-search-all --install datasette-render-timestamps --install datasette-render-images --install datasette-uptime --install datasette-render-html \
--install datasette-pretty-json --metadata data/metadata.yml
(node:48325) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.
(Use `node --trace-deprecation ...` to show where the warning was created)
Vercel CLI 33.6.1
WARN! `--confirm` is deprecated, please use `--yes` instead
❗️  The `name` property in vercel.json is deprecated (https://vercel.link/name-prop)
🔗  Linked to tddschn/rick-n-morty-datasette-vercel (created .vercel and added it to .gitignore)
🔍  Inspect: https://vercel.com/tddschn/<proj>/MUoFFHYUaqGqNVkEF7PYTntQ5eBY [4s]
✅  Production: https://rick-n-morty-datasette-vercel-h7l7l8hry-tddschn.vercel.app [4s]
Error: spawn pip3.9 ENOENT
Error: Command '['vercel', '--confirm', '--prod', '--env', 'DATASETTE_SECRET=<sec>']' returned non-zero exit status 1.