Skip to content
This repository has been archived by the owner on Feb 23, 2022. It is now read-only.

Pairing woocommerce and btcpayserver could not resolve host #58

Closed
steflsd opened this issue Dec 28, 2020 · 1 comment
Closed

Pairing woocommerce and btcpayserver could not resolve host #58

steflsd opened this issue Dec 28, 2020 · 1 comment

Comments

@steflsd
Copy link

steflsd commented Dec 28, 2020

Describe the bug

When trying to pair from the woocommerce shop to btcpayserver I receive "could not resolve host: btcpay.lsd.capital"

(I find this unable to resolve host really a strange error)

** Woocommerce System Status **
`

WordPress Environment

WordPress address (URL): https://shop.lsd.capital
Site address (URL): https://shop.lsd.capital
WC Version: 4.8.0
REST API Version: ✔ 4.8.0
WC Blocks Version: ✔ 3.8.1
Action Scheduler Version: ✔ 3.1.6
WC Admin Version: ✔ 1.7.3
Log Directory Writable: ✔
WP Version: 5.6
WP Multisite: –
WP Memory Limit: 768 MB
WP Debug Mode: –
WP Cron: ✔
Language: en_US
External object cache: –

Server Environment

Server Info: Apache
PHP Version: 7.3.25
PHP Post Max Size: 256 MB
PHP Time Limit: 120
PHP Max Input Vars: 3000
cURL Version: 7.66.0
OpenSSL/1.1.1g-fips

SUHOSIN Installed: –
MySQL Version: 5.7.26-29-log
Max Upload Size: 256 MB
Default Timezone is UTC: ✔
fsockopen/cURL: ✔
SoapClient: ✔
DOMDocument: ✔
GZip: ✔
Multibyte String: ✔
Remote Post: ✔
Remote Get: ✔

Database

WC Database Version: 4.8.0
WC Database Prefix: euj_
Total Database Size: 4.75MB
Database Data Size: 3.13MB
Database Index Size: 1.62MB
euj_woocommerce_sessions: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
euj_woocommerce_api_keys: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
euj_woocommerce_attribute_taxonomies: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
euj_woocommerce_downloadable_product_permissions: Data: 0.02MB + Index: 0.06MB + Engine InnoDB
euj_woocommerce_order_items: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
euj_woocommerce_order_itemmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
euj_woocommerce_tax_rates: Data: 0.02MB + Index: 0.06MB + Engine InnoDB
euj_woocommerce_tax_rate_locations: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
euj_woocommerce_shipping_zones: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
euj_woocommerce_shipping_zone_locations: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
euj_woocommerce_shipping_zone_methods: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
euj_woocommerce_payment_tokens: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
euj_woocommerce_payment_tokenmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
euj_woocommerce_log: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
euj_actionscheduler_actions: Data: 0.02MB + Index: 0.11MB + Engine InnoDB
euj_actionscheduler_claims: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
euj_actionscheduler_groups: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
euj_actionscheduler_logs: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
euj_commentmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
euj_comments: Data: 0.02MB + Index: 0.09MB + Engine InnoDB
euj_links: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
euj_options: Data: 2.13MB + Index: 0.06MB + Engine InnoDB
euj_postmeta: Data: 0.06MB + Index: 0.03MB + Engine InnoDB
euj_posts: Data: 0.02MB + Index: 0.06MB + Engine InnoDB
euj_termmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
euj_terms: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
euj_term_relationships: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
euj_term_taxonomy: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
euj_usermeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
euj_users: Data: 0.02MB + Index: 0.05MB + Engine InnoDB
euj_wc_admin_notes: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
euj_wc_admin_note_actions: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
euj_wc_category_lookup: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
euj_wc_customer_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
euj_wc_download_log: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
euj_wc_order_coupon_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
euj_wc_order_product_lookup: Data: 0.02MB + Index: 0.06MB + Engine InnoDB
euj_wc_order_stats: Data: 0.02MB + Index: 0.05MB + Engine InnoDB
euj_wc_order_tax_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
euj_wc_product_meta_lookup: Data: 0.02MB + Index: 0.09MB + Engine InnoDB
euj_wc_reserved_stock: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
euj_wc_tax_rate_classes: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
euj_wc_webhooks: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
euj_wpforms_tasks_meta: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
euj_yoast_indexable: Data: 0.02MB + Index: 0.08MB + Engine InnoDB
euj_yoast_indexable_hierarchy: Data: 0.02MB + Index: 0.05MB + Engine InnoDB
euj_yoast_migrations: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
euj_yoast_primary_term: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
euj_yoast_seo_links: Data: 0.02MB + Index: 0.03MB + Engine InnoDB

Post Type Counts

attachment: 19
page: 7
revision: 1

Security

Secure connection (HTTPS): ✔
Hide errors from visitors: ✔

Active Plugins (9)

BTCPay for WooCommerce: by BTCPay – 3.0.11 – Installed version not tested with active version of WooCommerce 4.0
Google Analytics for WordPress by MonsterInsights: by MonsterInsights – 7.14.0
Google Ads & Marketing by Kliken: by Kliken – 1.0.6
SG Optimizer: by SiteGround – 5.7.12
WooCommerce: by Automattic – 4.8.0
WordPress Importer: by wordpressdotorg – 0.7
Yoast SEO: by Team Yoast – 15.5
WordPress Starter: by SiteGround – 1.1.2
WPForms Lite: by WPForms – 1.6.4.1

Inactive Plugins (0)

Settings

API Enabled: ✔
Force SSL: –
Currency: BTC (฿)
Currency Position: left
Thousand Separator: ,
Decimal Separator: .
Number of Decimals: 2
Taxonomies: Product Types: external (external)
grouped (grouped)
simple (simple)
variable (variable)

Taxonomies: Product Visibility: exclude-from-catalog (exclude-from-catalog)
exclude-from-search (exclude-from-search)
featured (featured)
outofstock (outofstock)
rated-1 (rated-1)
rated-2 (rated-2)
rated-3 (rated-3)
rated-4 (rated-4)
rated-5 (rated-5)

Connected to WooCommerce.com: –

WC Pages

Shop base: #5 - /woocommerce-placeholder/
Cart: #9 - /cart/
Checkout: #10 - /checkout/
My account: #27 - /my-account/
Terms and conditions: ❌ Page not set

Theme

Name: Storefront
Version: 3.0.0
Author URL: https://woocommerce.com/
Child Theme: ❌ – If you are modifying WooCommerce on a parent theme that you did not build personally we recommend using a child theme. See: How to create a child theme
WooCommerce Support: ✔

Templates

Overrides: –

Action Scheduler

Complete: 13
Oldest: 2020-12-24 15:37:21 +0000
Newest: 2020-12-28 14:03:49 +0000

Pending: 2
Oldest: 2020-12-29 05:53:12 +0000
Newest: 2021-01-02 00:34:26 +0000

`
WooCommerce Plugin Logs (if applicable)

12-28-2020 @ 16:08:43 - BTCPay Woocommerce payment plugin object constructor called. Plugin is v3.0.11 and server is PHP v7.3
12-28-2020 @ 16:08:43 - [Info] $this->api_key =
12-28-2020 @ 16:08:43 - [Info] $this->api_pub =
12-28-2020 @ 16:08:43 - [Info] $this->api_sin =
12-28-2020 @ 16:08:43 - [Info] $this->api_token =
12-28-2020 @ 16:08:43 - [Info] $this->api_token_label =
12-28-2020 @ 16:08:43 - [Info] $this->api_url =
12-28-2020 @ 16:08:43 - [Error] The API Key was NOT an instance of PrivateKey! Instead, it appears to be a NULL value.
12-28-2020 @ 16:08:43 - [Error] The Public Key was NOT an instance of PublicKey! Instead, it appears to be a NULL value.
12-28-2020 @ 16:08:43 - [Error] The API Token was NOT an instance of Token! Instead, it appears to be a NULL value.
12-28-2020 @ 16:08:43 - [Info] Transaction speed is now set to: default
12-28-2020 @ 16:08:43 - [Info] The plugin is NOT valid for use!
12-28-2020 @ 16:08:43 - [Info] Entered generate_api_token_html()...
12-28-2020 @ 16:08:43 - [Info] Leaving generate_api_token_html()...
12-28-2020 @ 16:08:43 - [Info] Entered generate_order_states_html()...
12-28-2020 @ 16:08:43 - [Info] Leaving generate_order_states_html()...

Your BTCPay Environment (please complete the following information):

  • BTCPay Server Version: BTCPayServer v1.0.6.4
  • Deployment Method: Manual Docker running on GKE (Kubernetes)
  • Browser: Brave

Additional context

I am able to register correctly to https://btcpayjungle.com/

info: Configuration: Data Directory: /data
info: Configuration: Configuration File: /data/Main/settings.config
info: Configuration: Network: Mainnet
info: Configuration: Supported chains: BTC
info: Configuration: LogFile: /data/debug.log
info: Configuration: Log Level: Debug
info: BTCPayServer.Plugins.PluginManager: Loading plugins from /root/.btcpayserver/Plugins
info: BTCPayServer.Plugins.PluginManager: Adding and executing plugin BTCPayServer - 1.0.6.4
info: Configuration: Network: Mainnet
info: Configuration: Supported chains: BTC
info: Configuration: LogFile: /data/debug.log
info: Configuration: Log Level: Debug
info: Configuration: Postgres DB used
info: Configuration: Root Path: /
info: Configuration: BTC: Explorer url is http://nbxplorer:32838/
info: Configuration: BTC: Cookie file is /root/.nbxplorer/Main/.cookie
warn: Configuration: BTC: Using cookie auth against NBXplorer, but /root/.nbxplorer/Main/.cookie is not found
info: PayServer: Starting listening NBXplorer (BTC)
info: PayServer: Start watching invoices
info: PayServer: Starting payment request expiration watcher
info: Events: NBXplorer BTC: NotConnected => Ready
info: Configuration: Listening on http://0.0.0.0:23000
info: PayServer: BTC: Checking if any pending invoice got paid while offline...
info: PayServer: BTC: 0 payments happened while offline
info: PayServer: Connected to WebSocket of NBXplorer (BTC)
info: PayServer: 0 pending payment requests being checked since last run
info: Events: BTC: New block
info: Events: BTC: New block

@steflsd
Copy link
Author

steflsd commented Jan 1, 2021

Hey. So after a bunch of troubleshooting I discovered my wordpress site host (siteground.com) was running their own dns server for my domain, and any outbound calls to the same domain (lsd.capital) was being resolved by their DNS server.

PS: Its always DNS

@steflsd steflsd closed this as completed Jan 1, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant