I have run it from both locations. Interestingly in this project Consul is running on the same machine so I am concerned if there is any conflicts I should avoid.
I don't see any output differences. My only thought since I am launching this from a powershell script with nssm as a service is that it's trying to use Invoke-WebRequest instead of Curl. I added a function to remove the alias but I don't have any other ideas at this point.
From the Host machine:
C:\VSM\Scripts> curl ***.***.***.227:4001/status?pretty
{
"build": {
"branch": "master",
"build_time": "unknown",
"commit": "ca82e8cf59515f5b14f22c5b5fec84206b4bb3b9",
"compiler": "gc",
"version": "7"
},
"cluster": {
"addr": "
***.***.***.227 :4009",
"api_addr": "
***.***.***.227 :4001",
"https": "false"
},
"disco": {
"last_contact": "2022-03-28T07:17:51.2158055-07:00",
"mode": "consul-kv",
"register_interval": 3000000000,
"report_interval": 30000000000
},
"http": {
"auth": "disabled",
"bind_addr": "
***.***.***.227 :4001",
"cluster": {
"local_node_addr": "
***.***.***.227 :4009",
"timeout": 30000000000
}
},
"node": {
"current_time": "2022-03-28T07:20:41.5577905-07:00",
"start_time": "2022-03-25T15:42:25.9681567-07:00",
"uptime": "63h38m11.3852932s"
},
"os": {
"executable": "C:\\VSM\\Scripts\\Scheduled\\rqlite-latest-win64\\rqlited.exe",
"hostname": "3DAPPSHIM",
"page_size": 4096,
"pid": 5472,
"ppid": 6592
},
"runtime": {
"GOARCH": "amd64",
"GOMAXPROCS": 1,
"GOOS": "windows",
"num_cpu": 1,
"num_goroutine": 16,
"version": "go1.17.7"
},
"store": {
"addr": "
***.***.***.227 :4009",
"apply_timeout": "10s",
"db_applied_index": 0,
"db_conf": {
"memory": true,
"fk_constraints": false
},
"dir": "data",
"dir_size": 65536,
"election_timeout": "10s",
"fsm_index": 4,
"heartbeat_timeout": "1s",
"leader": {
"addr": "
***.***.***.227 :4009",
"node_id": ""
},
"no_freelist_sync": false,
"node_id": "3DAPPSHIM",
"nodes": [
{
"id": "3DAPPSHIM",
"addr": ":4009",
"suffrage": "Voter"
}
],
"observer": {
"dropped": 0,
"observed": 1
},
"raft": {
"applied_index": 13,
"bolt": {
"FreePageN": 0,
"PendingPageN": 3,
"FreeAlloc": 12288,
"FreelistInuse": 40,
"TxN": 50830,
"OpenTxN": 0,
"TxStats": {
"PageCount": 12,
"PageAlloc": 49152,
"CursorCount": 101679,
"NodeCount": 10,
"NodeDeref": 2,
"Rebalance": 0,
"RebalanceTime": 0,
"Split": 0,
"Spill": 6,
"SpillTime": 0,
"Write": 18,
"WriteTime": 29940800
}
},
"commit_index": 13,
"fsm_pending": 0,
"last_contact": 0,
"last_log_index": 13,
"last_log_term": 11,
"last_snapshot_index": 0,
"last_snapshot_term": 0,
"latest_configuration": "[{Suffrage:Voter ID:3DAPPSHIM Address::4009}]",
"latest_configuration_index": 0,
"log_size": 65536,
"num_peers": 0,
"protocol_version": 3,
"protocol_version_max": 3,
"protocol_version_min": 0,
"snapshot_version_max": 1,
"snapshot_version_min": 0,
"state": "Leader",
"term": 11
},
"request_marshaler": {
"compression_batch": 5,
"compression_size": 150,
"force_compression": false
},
"snapshot_interval": 30000000000,
"snapshot_threshold": 8192,
"sqlite3": {
"compile_options": [
"ATOMIC_INTRINSICS=1",
"COMPILER=gcc-11.2.0",
"DEFAULT_AUTOVACUUM",
"DEFAULT_CACHE_SIZE=-2000",
"DEFAULT_FILE_FORMAT=4",
"DEFAULT_JOURNAL_SIZE_LIMIT=-1",
"DEFAULT_MMAP_SIZE=0",
"DEFAULT_PAGE_SIZE=4096",
"DEFAULT_PCACHE_INITSZ=20",
"DEFAULT_RECURSIVE_TRIGGERS",
"DEFAULT_SECTOR_SIZE=4096",
"DEFAULT_SYNCHRONOUS=2",
"DEFAULT_WAL_AUTOCHECKPOINT=1000",
"DEFAULT_WAL_SYNCHRONOUS=1",
"DEFAULT_WORKER_THREADS=0",
"ENABLE_DBSTAT_VTAB",
"ENABLE_FTS3",
"ENABLE_FTS3_PARENTHESIS",
"ENABLE_RTREE",
"ENABLE_UPDATE_DELETE_LIMIT",
"MALLOC_SOFT_LIMIT=1024",
"MAX_ATTACHED=10",
"MAX_COLUMN=2000",
"MAX_COMPOUND_SELECT=500",
"MAX_DEFAULT_PAGE_SIZE=8192",
"MAX_EXPR_DEPTH=1000",
"MAX_FUNCTION_ARG=127",
"MAX_LENGTH=1000000000",
"MAX_LIKE_PATTERN_LENGTH=50000",
"MAX_MMAP_SIZE=0x7fff0000",
"MAX_PAGE_COUNT=1073741823",
"MAX_PAGE_SIZE=65536",
"MAX_SQL_LENGTH=1000000000",
"MAX_TRIGGER_DEPTH=1000",
"MAX_VARIABLE_NUMBER=32766",
"MAX_VDBE_OP=250000000",
"MAX_WORKER_THREADS=8",
"MUTEX_W32",
"OMIT_DEPRECATED",
"OMIT_SHARED_CACHE",
"SYSTEM_MALLOC",
"TEMP_STORE=1",
"THREADSAFE=1"
],
"conn_pool_stats": {
"ro": {
"max_open_connections": 0,
"open_connections": 1,
"in_use": 0,
"idle": 1,
"wait_count": 0,
"wait_duration": 0,
"max_idle_closed": 0,
"max_idle_time_closed": 0,
"max_lifetime_closed": 0
},
"rw": {
"max_open_connections": 1,
"open_connections": 1,
"in_use": 0,
"idle": 1,
"wait_count": 0,
"wait_duration": 0,
"max_idle_closed": 0,
"max_idle_time_closed": 0,
"max_lifetime_closed": 0
}
},
"db_size": 0,
"mem_stats": {
"cache_size": -2000,
"freelist_count": 0,
"hard_heap_limit": 0,
"max_page_count": 1073741823,
"page_count": 0,
"page_size": 4096,
"soft_heap_limit": 0
},
"path": ":memory:",
"ro_dsn": "file:/glrMLmlmGmosNsotmmMo?mode=ro\u0026vfs=memdb\u0026_txlock=deferred\u0026_fk=false",
"rw_dsn": "file:/glrMLmlmGmosNsotmmMo?mode=rw\u0026vfs=memdb\u0026_txlock=immediate\u0026_fk=false",
"version": "3.38.0"
},
"startup_on_disk": false,
"trailing_logs": 10240
}
}
From My Machine:
C:\vsm\Scripts\Scheduled\rqlite-latest-win64> curl
***.***.***.227 :4001/status?pretty
{
"build": {
"branch": "master",
"build_time": "unknown",
"commit": "ca82e8cf59515f5b14f22c5b5fec84206b4bb3b9",
"compiler": "gc",
"version": "7"
},
"cluster": {
"addr": "
***.***.***.227 :4009",
"api_addr": "
***.***.***.227 :4001",
"https": "false"
},
"disco": {
"last_contact": "2022-03-28T07:12:51.216577-07:00",
"mode": "consul-kv",
"register_interval": 3000000000,
"report_interval": 30000000000
},
"http": {
"auth": "disabled",
"bind_addr": "
***.***.***.227 :4001",
"cluster": {
"local_node_addr": "
***.***.***.227 :4009",
"timeout": 30000000000
}
},
"node": {
"current_time": "2022-03-28T07:14:46.949677-07:00",
"start_time": "2022-03-25T15:42:25.9681567-07:00",
"uptime": "63h32m16.7822946s"
},
"os": {
"executable": "C:\\VSM\\Scripts\\Scheduled\\rqlite-latest-win64\\rqlited.exe",
"hostname": "3DAPPSHIM",
"page_size": 4096,
"pid": 5472,
"ppid": 6592
},
"runtime": {
"GOARCH": "amd64",
"GOMAXPROCS": 1,
"GOOS": "windows",
"num_cpu": 1,
"num_goroutine": 16,
"version": "go1.17.7"
},
"store": {
"addr": "
***.***.***.227 :4009",
"apply_timeout": "10s",
"db_applied_index": 0,
"db_conf": {
"memory": true,
"fk_constraints": false
},
"dir": "data",
"dir_size": 65536,
"election_timeout": "10s",
"fsm_index": 4,
"heartbeat_timeout": "1s",
"leader": {
"addr": "
***.***.***.227 :4009",
"node_id": ""
},
"no_freelist_sync": false,
"node_id": "3DAPPSHIM",
"nodes": [
{
"id": "3DAPPSHIM",
"addr": ":4009",
"suffrage": "Voter"
}
],
"observer": {
"dropped": 0,
"observed": 1
},
"raft": {
"applied_index": 13,
"bolt": {
"FreePageN": 0,
"PendingPageN": 3,
"FreeAlloc": 12288,
"FreelistInuse": 40,
"TxN": 50749,
"OpenTxN": 0,
"TxStats": {
"PageCount": 12,
"PageAlloc": 49152,
"CursorCount": 101517,
"NodeCount": 10,
"NodeDeref": 2,
"Rebalance": 0,
"RebalanceTime": 0,
"Split": 0,
"Spill": 6,
"SpillTime": 0,
"Write": 18,
"WriteTime": 29940800
}
},
"commit_index": 13,
"fsm_pending": 0,
"last_contact": 0,
"last_log_index": 13,
"last_log_term": 11,
"last_snapshot_index": 0,
"last_snapshot_term": 0,
"latest_configuration": "[{Suffrage:Voter ID:3DAPPSHIM Address::4009}]",
"latest_configuration_index": 0,
"log_size": 65536,
"num_peers": 0,
"protocol_version": 3,
"protocol_version_max": 3,
"protocol_version_min": 0,
"snapshot_version_max": 1,
"snapshot_version_min": 0,
"state": "Leader",
"term": 11
},
"request_marshaler": {
"compression_batch": 5,
"compression_size": 150,
"force_compression": false
},
"snapshot_interval": 30000000000,
"snapshot_threshold": 8192,
"sqlite3": {
"compile_options": [
"ATOMIC_INTRINSICS=1",
"COMPILER=gcc-11.2.0",
"DEFAULT_AUTOVACUUM",
"DEFAULT_CACHE_SIZE=-2000",
"DEFAULT_FILE_FORMAT=4",
"DEFAULT_JOURNAL_SIZE_LIMIT=-1",
"DEFAULT_MMAP_SIZE=0",
"DEFAULT_PAGE_SIZE=4096",
"DEFAULT_PCACHE_INITSZ=20",
"DEFAULT_RECURSIVE_TRIGGERS",
"DEFAULT_SECTOR_SIZE=4096",
"DEFAULT_SYNCHRONOUS=2",
"DEFAULT_WAL_AUTOCHECKPOINT=1000",
"DEFAULT_WAL_SYNCHRONOUS=1",
"DEFAULT_WORKER_THREADS=0",
"ENABLE_DBSTAT_VTAB",
"ENABLE_FTS3",
"ENABLE_FTS3_PARENTHESIS",
"ENABLE_RTREE",
"ENABLE_UPDATE_DELETE_LIMIT",
"MALLOC_SOFT_LIMIT=1024",
"MAX_ATTACHED=10",
"MAX_COLUMN=2000",
"MAX_COMPOUND_SELECT=500",
"MAX_DEFAULT_PAGE_SIZE=8192",
"MAX_EXPR_DEPTH=1000",
"MAX_FUNCTION_ARG=127",
"MAX_LENGTH=1000000000",
"MAX_LIKE_PATTERN_LENGTH=50000",
"MAX_MMAP_SIZE=0x7fff0000",
"MAX_PAGE_COUNT=1073741823",
"MAX_PAGE_SIZE=65536",
"MAX_SQL_LENGTH=1000000000",
"MAX_TRIGGER_DEPTH=1000",
"MAX_VARIABLE_NUMBER=32766",
"MAX_VDBE_OP=250000000",
"MAX_WORKER_THREADS=8",
"MUTEX_W32",
"OMIT_DEPRECATED",
"OMIT_SHARED_CACHE",
"SYSTEM_MALLOC",
"TEMP_STORE=1",
"THREADSAFE=1"
],
"conn_pool_stats": {
"ro": {
"max_open_connections": 0,
"open_connections": 1,
"in_use": 0,
"idle": 1,
"wait_count": 0,
"wait_duration": 0,
"max_idle_closed": 0,
"max_idle_time_closed": 0,
"max_lifetime_closed": 0
},
"rw": {
"max_open_connections": 1,
"open_connections": 1,
"in_use": 0,
"idle": 1,
"wait_count": 0,
"wait_duration": 0,
"max_idle_closed": 0,
"max_idle_time_closed": 0,
"max_lifetime_closed": 0
}
},
"db_size": 0,
"mem_stats": {
"cache_size": -2000,
"freelist_count": 0,
"hard_heap_limit": 0,
"max_page_count": 1073741823,
"page_count": 0,
"page_size": 4096,
"soft_heap_limit": 0
},
"path": ":memory:",
"ro_dsn": "file:/glrMLmlmGmosNsotmmMo?mode=ro\u0026vfs=memdb\u0026_txlock=deferred\u0026_fk=false",
"rw_dsn": "file:/glrMLmlmGmosNsotmmMo?mode=rw\u0026vfs=memdb\u0026_txlock=immediate\u0026_fk=false",
"version": "3.38.0"
},
"startup_on_disk": false,
"trailing_logs": 10240
}
}