Tim_haydn Posted January 29, 2021 Share Posted January 29, 2021 Hi, I am very new to ripple and tried to run ripple private network on my AWS ubuntu server, I followed official doc Build and Run rippled on Ubuntu( 18.04) to setup rippled ( version 1.5.0) . I guess its working but facing some weird problem with it, I am only able to start rippled with ./rippled, tried a lot of commands like this sudo service systemctl start rippled or sudo service systemctl restart rippled, but I get error each time " Failed to restart systemctl.service: Unit systemctl.service not found" . I ran command from directory where rippled exec( inside my_build) file is present. I am not sure what is the reason. When I start rippled with ./rippled , it runs and I can see info with commands like ./rippled server_info or ./rippled server_state. I am running command with default ubuntu user, I read somewhere to run this without root, but it's not working either. Is it normal or will it create problem later? Can anyone help me please? Also, can I run two private rippled network without connecting to mainnet, I want a separate network that work like ripple but not connected to main ripple, all transactions should belong to those private server? I selected RocksDb , have AWS c5xLarge Instance, so I do not think memory or storage is problem , I have attached configuration file( its under /home/ubuntu/.config/ripple) if anyone needs to have a look at it. Link to comment Share on other sites More sharing options...
jn_r Posted January 30, 2021 Share Posted January 30, 2021 10 hours ago, Tim_haydn said: Hi, I am very new to ripple and tried to run ripple private network on my AWS ubuntu server, I followed official doc Build and Run rippled on Ubuntu( 18.04) to setup rippled ( version 1.5.0) . I guess its working but facing some weird problem with it, I am only able to start rippled with ./rippled, tried a lot of commands like this sudo service systemctl start rippled or sudo service systemctl restart rippled, but I get error each time " Failed to restart systemctl.service: Unit systemctl.service not found" . I ran command from directory where rippled exec( inside my_build) file is present. I am not sure what is the reason. When I start rippled with ./rippled , it runs and I can see info with commands like ./rippled server_info or ./rippled server_state. I am running command with default ubuntu user, I read somewhere to run this without root, but it's not working either. Is it normal or will it create problem later? Can anyone help me please? Also, can I run two private rippled network without connecting to mainnet, I want a separate network that work like ripple but not connected to main ripple, all transactions should belong to those private server? I selected RocksDb , have AWS c5xLarge Instance, so I do not think memory or storage is problem , I have attached configuration file( its under /home/ubuntu/.config/ripple) if anyone needs to have a look at it. Did you follow https://xrpl.org/build-run-rippled-ubuntu.html? You could also have used the install (https://xrpl.org/install-rippled-on-ubuntu.html#main_content_body), would have saved you the build, but kudo's for going through the complete build :-) At the end of the build manual it mentions: Quote You may also want to install a systemd unit. For more information, see systemd for Upstart Users . You can use the official rippled system unit file or modify it to suit your needs. From your text I think that is the part you missed. You can download the service file here: https://github.com/ripple/rippled/blob/master/Builds/containers/shared/rippled.service. These files normally are placed in the directory /lib/systemd/system/ . After you copied the file there, you must then first enable and then start the service and off you go. Link to comment Share on other sites More sharing options...
Tim_haydn Posted January 30, 2021 Author Share Posted January 30, 2021 25 minutes ago, jn_r said: Did you follow https://xrpl.org/build-run-rippled-ubuntu.html? You could also have used the install (https://xrpl.org/install-rippled-on-ubuntu.html#main_content_body), would have saved you the build, but kudo's for going through the complete build :-) At the end of the build manual it mentions: From your text I think that is the part you missed. You can download the service file here: https://github.com/ripple/rippled/blob/master/Builds/containers/shared/rippled.service. These files normally are placed in the directory /lib/systemd/system/ . After you copied the file there, you must then first enable and then start the service and off you go. Hi, yes, I followed this link: https://xrpl.org/build-run-rippled-ubuntu.html Yes, I missed to add the service file, I think this will do. Just a basic query, in this service file, ExecStart=/opt/ripple/bin/rippled --net --silent --conf /etc/opt/ripple/rippled.cfg Should I replace this path /opt/ripple/bin/rippled with the config file path I have in my system, right? My config files are here: /home/ubuntu/.config/ripple Also, do I need to create a new User & Group as rippled and give them permission? Thank you. Link to comment Share on other sites More sharing options...
jn_r Posted January 30, 2021 Share Posted January 30, 2021 7 minutes ago, Tim_haydn said: Should I replace this path /opt/ripple/bin/rippled with the config file path I have in my system, right? yes correct 7 minutes ago, Tim_haydn said: Also, do I need to create a new User & Group as rippled and give them permission? I think it is best practice to not run it under root but run it under its own user, so yes, I would do that. Link to comment Share on other sites More sharing options...
Tim_haydn Posted January 30, 2021 Author Share Posted January 30, 2021 8 minutes ago, jn_r said: yes correct I think it is best practice to not run it under root but run it under its own user, so yes, I would do that. Thank you, I'll try that. Hope it should work. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now