Error: unable to proceed without entity mappings including remote targets: error mapping Remote Storage Targets #45
-
In v8.0.1 I got remote sync enabled (or so I think), but get this on push: $ sudo beegfs remote status /mnt/beegfs/archive/flights-1m.csv
Error: unable to proceed without entity mappings including remote targets: error mapping Remote Storage Targets: rpc error: code = Unavailable desc = connection error: desc = "transport: Error while dialing: dial tcp 127.0.0.1:9010: connect: connection refused" The thing is, I don't set 127.0.0.1 anywhere. Maybe I did have it at one point, but I've since restarted beegfs-sync and beegfs-remote, so it's running on my external IP. $ netstat -ant | grep 9010
tcp 0 0 192.168.1.198:9010 0.0.0.0:* LISTEN So, where is this supposed 127.0.0.1 coming from? $ cat /etc/beegfs/beegfs-remote.toml | grep 9010
# address = "s198:9010"
address = "192.168.1.198:9010" This is an all-in-one enviro - very simple, one VM runs MD, Storage, Mgmt, Client, etc. /etc/beegfs/beegfs-sync.toml: mount-point = "/mnt/beegfs"
[log]
level = 3
# type = 'syslog'
type = 'logfile'
file = '/var/log/beegfs/beegfs-remote.log'
[server]
address = "192.168.1.198:9011"
tls-cert-file = "/etc/beegfs/cert.pem"
tls-key-file = "/etc/beegfs/key.pem"
tls-disable = false
[manager]
journal-db = "/var/lib/beegfs/sync/journal.badger"
job-db = "/var/lib/beegfs/sync/job.badger"
[remote]
tls-cert-file = "/etc/beegfs/cert.pem"
tls-disable-verification = false
tls-disable = false /etc/beegfs/beegfs-remote.toml: [log]
level = 3
type = 'syslog'
[server]
# address = "s198:9010"
address = "192.168.1.198:9010"
tls-cert-file = "/etc/beegfs/cert.pem"
tls-key-file = "/etc/beegfs/key.pem"
tls-disable = false
[job]
path-db = "/var/lib/beegfs/remote/path.badger"
#
# --- Section 1.2: [Worker Settings] ---
#
[[worker]]
id = "1"
name = "s198"
type = "beesync"
address = "s198:9011"
tls-cert-file = "/etc/beegfs/cert.pem"
tls-disable-verification = false
tls-disable = false
[[remote-storage-target]]
id = "3"
name = "minio"
policies = { FastStartMaxSize = 10485760 } # I removed one zero at the end
s3.endpoint-url = "https://s3:443"
s3.region = "us-east-1"
s3.bucket = "beegfs"
s3.access-key = "abc"
s3.secret-key = "abc"
Sync service:
Remote service:
Another suspicious behavior was that my target ID 1 was shown unavailable. I changed it twice, incrementing ID to 2 and then 3. Even with a valid TLS cert, it still shows as unavailable. $ sudo beegfs entry info /mnt/beegfs/archive/flights-1m.csv
PATH ENTRY_ID TYPE META_NODE META_MIRROR STORAGE_POOL STRIPE_PATTERN STORAGE_TARGETS STORAGE_MIRRORS REMOTE_TARGETS
/archive/flights-1m.csv 0-68275F27-1 file m:1 (unmirrored) archive (2) RAID0 (4x512K) s:102 (unmirrored) 3-not-available
$ mc ls s3/ | grep bee
[0001-01-01 00:00:00 UTC] 0B beegfs/
$ mc cp archive/flights-1m.csv s3/beegfs/
...beegfs/archive/flights-1m.csv: 40.98 MiB / 40.98 MiB ┃▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓┃ 59.31 MiB/s 0s
$ mc rm s3/beegfs/flights-1m.csv
Removed `s3/beegfs/flights-1m.csv`.
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
That error is actually from the In your case just do:
You could also add it to
That is another side effect of the Remote address not being set in CTL. The ID is set on the entry but the name is set in Remote, however CTL not being able to talk to Remote is not a fatal error for the
Currently in addition to Remote you also have to restart the Sync node(s) to change the RST configuration. If you did that and it still doesn't work let me know! Not needing to do that is on the list of future improvements :) I'll make that and the other error more intuitive as to how to fix the situation. |
Beta Was this translation helpful? Give feedback.
-
Thanks for throwing light on these mysteries.
I don't remember seeing that anywhere. Maybe it'd be good to add environmental variables such as BEEGFS_REMOTE_ADDR (as well as With |
Beta Was this translation helpful? Give feedback.
That error is actually from the
beegfs
tool. By default the--remote-addr
is127.0.0.1:9010
thinking that would make it slightly easier to try things out where Remote and CTL are just on the same machine and you are using the default0.0.0.0:9010
Remote server address to simply listen on all addresses.In your case just do: