This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2021-12-14
Channels
- # adventofcode (38)
- # announcements (42)
- # aws (3)
- # babashka (8)
- # beginners (165)
- # calva (36)
- # chlorine-clover (14)
- # cider (6)
- # clj-kondo (5)
- # cljsrn (33)
- # clojure (27)
- # clojure-australia (1)
- # clojure-czech (1)
- # clojure-doc (1)
- # clojure-europe (26)
- # clojure-nl (6)
- # clojure-spec (6)
- # clojure-uk (3)
- # clojurescript (10)
- # code-reviews (20)
- # conjure (1)
- # core-logic (5)
- # cursive (3)
- # data-science (5)
- # datomic (35)
- # emacs (1)
- # figwheel-main (3)
- # fulcro (10)
- # honeysql (1)
- # introduce-yourself (4)
- # jobs (3)
- # jobs-discuss (4)
- # minecraft (2)
- # missionary (28)
- # nextjournal (3)
- # off-topic (45)
- # pathom (7)
- # polylith (1)
- # portal (22)
- # practicalli (2)
- # re-frame (4)
- # reagent (19)
- # releases (3)
- # remote-jobs (3)
- # reveal (1)
- # rum (4)
- # shadow-cljs (37)
- # spacemacs (14)
- # sql (1)
- # tools-build (7)
- # tools-deps (16)
- # vim (13)
- # xtdb (15)
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="
</body>
Nothing I have tried works
What am I doing wrong?
@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.
@U054219BT can you somehow share the contents of the request debug page mentioned in the third attempt @ http://localhost:2021/_site/requests/235d881f77fa0066325271ac ?
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/
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
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…
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 🙂
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
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
Seems to be back to read/write now -- and the icons are working now 🙂
That's... weird. I definitely didn't do anything to fix it. :thinking_face:
@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