-
Notifications
You must be signed in to change notification settings - Fork 213
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use cardano-node systemd service independently of cardano-wallet. #3179
Comments
Hello @locallycompact, that error message probably means that the cardano-wallet service user doesn't have write permission on the cardano-node socket file. I don't think that the |
I don't really know what it's doing https://github.com/input-output-hk/cardano-wallet/blob/master/flake.nix#L76 In any case, I made a new set of systemd services that force everything to be owned by the same user. https://github.com/cardano-system/cardano-system |
Yeah that line of It looks like |
@locallycompact Would such service support multiple |
I can't make |
Thanks to Nix I was able to figure out the following workaround services.cardano-node = {
enable = true;
nodeConfigFile = "${self.inputs.cardano-node}/configuration/cardano/${config.services.cardano-node.environment}-config.json";
topology = "${self.inputs.cardano-node}/configuration/cardano/${config.services.cardano-node.environment}-topology.json";
extraServiceConfig = i: {
serviceConfig.ExecStartPost = pkgs.writeShellScript "change-cardano-node-socket-permissions" ''
timeout=10
while [ ! -S ${config.services.cardano-node.socketPath} ]; do
if [ "$timeout" == 0 ]; then
echo "ERROR: Timeout while waiting for the cardano-node socket to appear ${config.services.cardano-node.socketPath}"
exit 1
fi
sleep 1
((timeout--))
done
chmod 0666 ${config.services.cardano-node.socketPath}
'';
};
}; |
The problem that you wish to solve
Hi, I'd like a version of the cardano-wallet systemd service that does not override the cardano node package. I can currently override it by doing something like this:
But then I get this error
Description
As above
Implementation suggestions
No response
The text was updated successfully, but these errors were encountered: