deso-protocol / run

Run your own DeSo node
https://docs.deso.org
190 stars 94 forks source link

Can't login locally when running node #91

Open geoguide opened 2 years ago

geoguide commented 2 years ago

I waited overnight to catchup on blocks because I figured it was because I was behind, but when I try to sign in nothing happens on the front-end. I see a flurry of requests on the log but the login window closes and I still see the unauthenticated view.

nginx     | 172.18.0.1 - - [29/Dec/2021:16:18:36 +0000] "GET /api/v0/get-exchange-rate HTTP/1.1" 200 408 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.55 Safari/537.36"
nginx     | 172.18.0.1 - - [29/Dec/2021:16:18:36 +0000] "OPTIONS /api/v0/get-app-state HTTP/1.1" 200 0 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.55 Safari/537.36"
nginx     | 172.18.0.1 - - [29/Dec/2021:16:18:36 +0000] "POST /api/v0/get-app-state HTTP/1.1" 200 2902 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.55 Safari/537.36"
nginx     | 172.18.0.1 - - [29/Dec/2021:16:18:37 +0000] "OPTIONS /api/v0/get-users-stateless HTTP/1.1" 200 0 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.55 Safari/537.36"
nginx     | 172.18.0.1 - - [29/Dec/2021:16:18:37 +0000] "OPTIONS /api/v0/delete-identities HTTP/1.1" 200 0 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.55 Safari/537.36"
nginx     | 172.18.0.1 - - [29/Dec/2021:16:18:37 +0000] "POST /api/v0/get-users-stateless HTTP/1.1" 200 1723 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.55 Safari/537.36"
nginx     | 172.18.0.1 - - [29/Dec/2021:16:18:37 +0000] "POST /api/v0/delete-identities HTTP/1.1" 200 3 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.55 Safari/537.36"
nginx     | 172.18.0.1 - - [29/Dec/2021:16:18:37 +0000] "GET /api/v0/get-exchange-rate HTTP/1.1" 200 408 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.55 Safari/537.36"
nginx     | 172.18.0.1 - - [29/Dec/2021:16:18:37 +0000] "POST /api/v0/get-app-state HTTP/1.1" 200 2902 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.55 Safari/537.36"
nginx     | 172.18.0.1 - - [29/Dec/2021:16:18:37 +0000] "POST /api/v0/get-users-stateless HTTP/1.1" 200 1106 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.55 Safari/537.36"
nginx     | 172.18.0.1 - - [29/Dec/2021:16:18:37 +0000] "OPTIONS /api/v0/get-next-nft-showcase HTTP/1.1" 200 0 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.55 Safari/537.36"
nginx     | 172.18.0.1 - - [29/Dec/2021:16:18:37 +0000] "OPTIONS /api/v0/get-posts-stateless HTTP/1.1" 200 0 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.55 Safari/537.36"
nginx     | 172.18.0.1 - - [29/Dec/2021:16:18:37 +0000] "OPTIONS /api/v0/get-posts-stateless HTTP/1.1" 200 0 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.55 Safari/537.36"
nginx     | 172.18.0.1 - - [29/Dec/2021:16:18:37 +0000] "POST /api/v0/get-next-nft-showcase HTTP/1.1" 200 28 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.55 Safari/537.36"
nginx     | 172.18.0.1 - - [29/Dec/2021:16:18:37 +0000] "POST /api/v0/get-posts-stateless HTTP/1.1" 200 18 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.55 Safari/537.36"
nginx     | 172.18.0.1 - - [29/Dec/2021:16:18:37 +0000] "POST /api/v0/get-posts-stateless HTTP/1.1" 200 18 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.55 Safari/537.36"
nginx     | 172.18.0.1 - - [29/Dec/2021:16:18:37 +0000] "OPTIONS /api/v0/get-profiles HTTP/1.1" 200 0 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.55 Safari/537.36"
nginx     | 172.18.0.1 - - [29/Dec/2021:16:18:37 +0000] "POST /api/v0/get-users-stateless HTTP/1.1" 200 33519 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.55 Safari/537.36"
nginx     | 172.18.0.1 - - [29/Dec/2021:16:18:37 +0000] "POST /api/v0/get-users-stateless HTTP/1.1" 200 22091 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.55 Safari/537.36"
nginx     | 172.18.0.1 - - [29/Dec/2021:16:18:37 +0000] "POST /api/v0/get-users-stateless HTTP/1.1" 200 26341 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.55 Safari/537.36"
nginx     | 172.18.0.1 - - [29/Dec/2021:16:18:37 +0000] "POST /api/v0/get-users-stateless HTTP/1.1" 200 34242 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.55 Safari/537.36"
nginx     | 172.18.0.1 - - [29/Dec/2021:16:18:37 +0000] "POST /api/v0/get-users-stateless HTTP/1.1" 200 17658 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.55 Safari/537.36"
nginx     | 172.18.0.1 - - [29/Dec/2021:16:18:37 +0000] "POST /api/v0/get-users-stateless HTTP/1.1" 200 2955 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.55 Safari/537.36"
nginx     | 172.18.0.1 - - [29/Dec/2021:16:18:37 +0000] "POST /api/v0/get-profiles HTTP/1.1" 200 6745 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.55 Safari/537.36"
nginx     | 172.18.0.1 - - [29/Dec/2021:16:18:37 +0000] "POST /api/v0/get-users-stateless HTTP/1.1" 200 16527 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.55 Safari/537.36"
backend   | I1229 16:18:38.966817       1 base.go:250] Refreshing exchange rate...
backend   | I1229 16:18:40.751778       1 base.go:189] Blockchain exchange rate: 10100 [10100 10100 10100 10100 10100 10100 10100 10100 10100 10100]
backend   | I1229 16:18:40.751858       1 base.go:254] Blockchain.com price (USD cents): 10100
backend   | I1229 16:18:40.767773       1 base.go:261] Coinbase price (USD Cents): 10079
backend   | I1229 16:18:40.767881       1 base.go:288] Final exchange rate: 10730
nginx     | 172.18.0.1 - - [29/Dec/2021:16:18:41 +0000] "GET /api/v0/get-exchange-rate HTTP/1.1" 200 408 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.55 Safari/537.36"
nginx     | 172.18.0.1 - - [29/Dec/2021:16:18:41 +0000] "POST /api/v0/get-app-state HTTP/1.1" 200 2902 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.55 Safari/537.36"

image

tijno commented 2 years ago

what do /api/v0/health-check and /api/v0/get-exchange-rate return ?

do you want to share your url so i can test to see where its breaking ?

also - what do you see in network tab of webdev tools for xhr requests?

geoguide commented 2 years ago

what do /api/v0/health-check and /api/v0/get-exchange-rate return ?

do you want to share your url so i can test to see where its breaking ?

also - what do you see in network tab of webdev tools for xhr requests?

{"SatoshisPerDeSoExchangeRate":221778,"USDCentsPerBitcoinExchangeRate":4757136,"NanosPerETHExchangeRate":35583317535,"USDCentsPerETHExchangeRate":375404,"NanosSold":8340814265238791,"USDCentsPerDeSoExchangeRate":10550,"USDCentsPerDeSoReserveExchangeRate":0,"BuyDeSoFeeBasisPoints":0,"SatoshisPerBitCloutExchangeRate":221778,"USDCentsPerBitCloutExchangeRate":10550,"USDCentsPerBitCloutReserveExchangeRate":0}
{
  "error": "Waiting for blockchain to sync. Height: 17731, SyncState: SYNCING_BLOCKS"
}

looks like it's resyncing all the blocks?

image

maebeam commented 2 years ago

Could you look at your browser's javascript console please?

pangia commented 2 years ago

check your caddyfile. make sure "deso.run:*" is in the list as a valid connect-src.

starykolarz commented 2 years ago

Had similar issue; adding deso.org node.deso.org api.deso.org to caddyfile solved it There are also errors on altumbase calls - added that too.