Skip to content

Fail to detect running testnet if flag is passed through config file #455

@darcys22

Description

@darcys22

It appears that if we run storage server and pass the testnet flag via a config file such as done in the deb packages then it fails to detect that we are in testnet. This causes issues as it tries to connect to oxend via /var/lib/oxen/oxend.sock instead of /var/lib/oxen/testnet/oxend.sock

Error appears to be resulting from this search:

for (int i = 1; i < argc; i++) {

Where it specifically searches for --testnet

Workaround possible on debs by changing the systemd service file to use storage-server --testnet --config-file /etc/oxen/storage-testnet.conf and specify testnet there instead of the config file

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions