ordinals / ord

👁‍🗨 Rare and exotic sats
https://ordinals.com
Creative Commons Zero v1.0 Universal
3.8k stars 1.33k forks source link

ord server not working (testnet) #1883

Open AFwcxx opened 1 year ago

AFwcxx commented 1 year ago

I ran $ ord -t server --http

I can see that the process is running image

But it's not creating anything on the network side and I can't access it

$ sudo lsof -i -P -n | grep LISTEN

systemd-r  492 systemd-resolve   14u  IPv4  15108      0t0  TCP 127.0.0.53:53 (LISTEN)
node       613         bitcoin   20u  IPv6  17706      0t0  TCP *:3000 (LISTEN)
bitcoind   704         bitcoin   11u  IPv6  16700      0t0  TCP [::1]:18332 (LISTEN)
bitcoind   704         bitcoin   12u  IPv4  16702      0t0  TCP 127.0.0.1:18332 (LISTEN)
bitcoind   704         bitcoin   28u  IPv4  18231      0t0  TCP 127.0.0.1:18334 (LISTEN)
bitcoind   704         bitcoin   29u  IPv6  18232      0t0  TCP *:18333 (LISTEN)
bitcoind   704         bitcoin   30u  IPv4  18233      0t0  TCP *:18333 (LISTEN)
sshd       720            root    3u  IPv4  17684      0t0  TCP *:22 (LISTEN)
sshd       720            root    4u  IPv6  17695      0t0  TCP *:22 (LISTEN)
msmalley commented 1 year ago

Also unable to access "wallet/server" or "wallet/preview" on testnet And ordinals (dot) com testnet site is not up-to-date / fully synced

AFwcxx commented 1 year ago

$ ord -t preview --http works though..

what difference would i see between preview and server?

preview    Run an explorer server populated with inscriptions
  server     Run the explorer server
msmalley commented 1 year ago

My preview works too, but is showing regtest results rather than testnet results, which the btc and ord servers are set to

AFwcxx commented 1 year ago

yeah.. same.. my bitcoind is indexing testnet data. but preview is showing regtest.

My command to run preview is:

$ ord -t preview --http --address localhost

but here's what I see:

image

somoza commented 1 year ago

Same here. ord is also ignoring parameters:

sudo ord -t --config ~/blockchain/bitcoin-core/data/bitcoin.conf --bitcoin-data-dir ~/blockchain/bitcoin-core/data preview --http --address localhost
2023-03-28T14:17:32Z Bitcoin Core version v24.0.1 (release build)
2023-03-28T14:17:32Z Default data directory /Users/somoza/Library/Application Support/Bitcoin
2023-03-28T14:17:32Z Using data directory /tmp/.tmpek0Dd2/bitcoin/regtest
2023-03-28T14:17:32Z Config file: /tmp/.tmpek0Dd2/bitcoin/bitcoin.conf (not found, skipping)

Running server fails with:

sudo ord -t server --http --address localhost
error: failed to connect to RPC URL
because: I/O error: No such file or directory (os error 2)
somoza commented 1 year ago

I fixed this. First "problem" is that ord uses cookies to connect, so I had to comment the username and password from bitcoin.conf to diable login and use cookies.

Then I found the cookie on the data/testnet3/.cookie and ran the ord like this:

ord -t --cookie-file ~/blockchain/bitcoin-core/data/testnet3/.cookie server

TheRealFuture42 commented 1 year ago

Does anyone have a testnet explorer running?

ordimint commented 1 year ago

There is: testnet.ordimint.com.