ord icon indicating copy to clipboard operation
ord copied to clipboard

ord server not working (testnet)

Open AFwcxx opened this issue 1 year ago • 7 comments

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)

AFwcxx avatar Mar 06 '23 05:03 AFwcxx

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

msmalley avatar Mar 06 '23 05:03 msmalley

$ 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

AFwcxx avatar Mar 06 '23 05:03 AFwcxx

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

msmalley avatar Mar 06 '23 05:03 msmalley

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

AFwcxx avatar Mar 06 '23 05:03 AFwcxx

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 avatar Mar 28 '23 14:03 somoza

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

somoza avatar Mar 28 '23 16:03 somoza

Does anyone have a testnet explorer running?

GregorWedlich avatar Apr 07 '23 00:04 GregorWedlich

There is: testnet.ordimint.com.

ordimint avatar Jul 24 '23 13:07 ordimint