Fork me on GitHub
#xtdb
<
2021-12-14
>
tbrooke01:12:05

This is probably more Site than XTDB But I thought I’d start by asking here — A real basic question with just getting my token. This is my config: site/bin/site config {:juxt.site.alpha/base-uri "", :juxt.site.alpha.unix-pass/password-prefix "site/local/", :ig/system {:juxt.site.alpha.db/xt-node {:xtdb/tx-log {:kv-store {:xtdb/module xtdb.rocksdb/->kv-store, :db-dir "/Users/tmb/.local/share/site/db/txes"}}, :xtdb/document-store {:kv-store {:xtdb/module xtdb.rocksdb/->kv-store, :db-dir "/Users/tmb/.local/share/site/db/docs"}}, :xtdb/index-store {:kv-store {:xtdb/module xtdb.rocksdb/->kv-store, :db-dir "/Users/tmb/.local/share/site/db/idxs"}}}, :juxt.site.alpha.server/server {:juxt.site.alpha/xt-node :juxt.site.alpha.db/xt-node, :juxt.site.alpha/port 2021, :juxt.site.alpha/base-uri [:juxt.site.alpha/base-uri], :juxt.site.alpha/dynamic? false}, :juxt.site.alpha.nrepl/server {:juxt.site.alpha/port 7888}}} My Pass setup; Password Store ├── site │   └── local │   ├── admin │   └── tmb └── user └── tmb My first attempt: site/bin/site get-token -u tmb site: Unix pass prefix: site/local/ site: Get token from site: Extracting password from /Users/tmb/.password-store/site/local/tmb.gpg fail: Failed to get password for tmb Second Attempt: site/bin/site get-token -u "tmb" site: Unix pass prefix: site/local/ site: Get token from site: Extracting password from /Users/tmb/.password-store/site/local/tmb.gpg fail: Failed to get password for tmb Third Attempt: site/bin/site get-token -u "tmb" -p tmb site: Unix pass prefix: site/local/ site: Get token from Server response: 500 <body> <h1>Internal Server Error</h1> <p><a href="" target="_site_error">Error</a></p> </body> Nothing I have tried works What am I doing wrong?

Steven Deobald02:12:57

@U054219BT Definitely a Site question. I'm afraid all the Site devs are in the UK (and probably deep asleep at the moment), but you may have better luck asking in #juxt so your question doesn't get lost in the mix. 🙂 We may need to pester @U050CTFRT to create a #site channel... seems like it's getting popular.

refset12:12:27

@U054219BT can you somehow share the contents of the request debug page mentioned in the third attempt @ http://localhost:2021/_site/requests/235d881f77fa0066325271ac ?

alexdavis16:12:38

Have you set up your user in site? currently you need to run some commands from the repl to kick things off. the stack trace will be in that request debug page though which will help debug it. As for why pass isn’t working I have no idea as i don’t use it, but I would start by trying to get it working without site first, maybe this is helpful https://www.passwordstore.org/

tbrooke21:12:54

@U899JBRPF the request debug page just saysUnauthorized Error

1
tbrooke21:12:20

When I started I had in the repl - it failed trying to use pass so I supplied a password: site> (put-superuser! "tmb" "Tom Brooke" "tmb") [✔] Site API resources installed. [✔] Authentication resources installed. [✔] Role of superuser exists. [✔] At least one superuser exists. :ok

alexdavis22:12:13

from the site repl you can do (e ""), that will look the request up directly in the db, it might be quite big though so maybe just get the :juxt.site.alpha/errors out of it as thats where the error message is. you shouldn’t be having problems though…

alexdavis22:12:30

but there are a bunch of manual bits of setup you have to do at the moment which definitely isn’t ideal as theres a lot that can go wrong, I have a private branch which seeds all the things you need to get started automatically but need to convince malcolm its a good idea before I can merge it 🙂

1
Steven Deobald02:12:22

xt xt xt We're experimenting with a trial Discourse instance at https://discuss.xtdb.com/ and everyone in the existing community is welcome to head over there and kick the tires (tyres?) with us. We're thus far undecided and we have 9 days left in the trial so please feel free to be a bit violent with the instance to see if you like it or not. If we choose to keep Discourse, it's not a replacement for Zulip/Slack. Rather, it's an alternative to the mailing lists we currently lack. 🙂 Once you've tried it out, please let us know what you think here: https://discuss.xtdb.com/t/meta-do-you-like-discourse/16

seancorfield03:12:17

Not sure whether you're monitoring Slack or Zulip more closely but I commented in Zulip that the site is read-only right now -- no signup allowed @U01AVNG2XNF

seancorfield03:12:21

Seems to be back to read/write now -- and the icons are working now 🙂

Steven Deobald06:12:06

That's... weird. I definitely didn't do anything to fix it. :thinking_face:

tbrooke15:12:07

@U01AVNG2XNF You are right and I debated between Juxt and XTDB but decided on XTDB since I knew @U899JBRPF seemed to monitor it pretty closely - I intend to be spending a lotof time with Site and would love to see a channel either here or in Zulip

👍 1
alexdavis17:12:59

I have created a channel for Site #juxt-site, please direct your site questions there to leave this channel for XTDB specific content

🙏 1
👍 1
Hukka06:12:11

Putting this guidance to the topic or at least the channel description would probably make it more effective