Giter Site home page Giter Site logo

codius-install's Introduction

codius-install

Codius (https://codius.org/) installer for CentOS, Ubuntu, Debian ...

This script will let you setup your own codius peer in no more than a minute, even if you haven't used codius before. It has been designed to be as unobtrusive and universal as possible.

Installation

Run the script and follow the assistant:

wget https://raw.githubusercontent.com/N3TC4T/codius-install/master/codius-install.sh -O codius-install.sh && bash codius-install.sh

ScreenShot

screen

Contact

codius-install's People

Contributors

jmannanc avatar mrrfrog avatar n3tc4t avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

codius-install's Issues

Needs a new hyper-bootstrap script

This is very awesome! Thank you for putting this up.

Unfortunately, the version of hyper for Ubuntu that is installed by the bootstrap script is out of date and the port mapping is broken. We're building our own version for CentOS 7 which is the only OS we currently support.
However, I just opened an issue to create hyper builds for other OSes (codius/codiusd#61) so once this is done and a new bootstrap script is put up you'll only have to change that url and it will install the right version!

Error in codius.conf prevents passing Self Test

In /etc/nginx/conf.d/codius.conf

Some proxy fields under "Location" are in an incorrect order. This is preventing the enabling of Websocket support and thus causing the host to fail self test.

The correct order should be:

location / {
proxy_pass http://127.0.0.1:3000;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection $connection_upgrade;
proxy_buffering off;

proxy_set_header Host $host;
proxy_set_header X-Forwarded-For $remote_addr;

This is described here: https://medium.com/codius/codiusd-1-2-0-upgrading-and-websocket-support-42f712a0cee9 where it is stated that the order of the proxy fields matters. The bolded fields must come first.

Checking required running services - codiusd comes back with red "x" but systemctl status is green

First off, i'm super green and don't know much....thank you so much for making this thing...it is incredibly useful and I've shared it more than once.

ok....

I'm Running option 2 - Check your system for codius errors

on the second check "Checking required running services" - codiusd comes back with a red "x".

when i run all the systemctl status commands...everything comes back green and running.

What am I missing here?

Appreciate any help.

Thanks,

FUBS

Feature Request: 7th option, update Codiusd, Moneyd, and hyperd

Would be nice to have an option to check for updates to all three programs and then update them if a new update is out. You don’t even have to make it check, you can just run the commands to update them as part of the option.

Just a lot easier to update if it’s all automated in an option. Something to think about, but if it’s not possible that’s cool. Thanks :)

Codius not running as expected

After running the command - wget https://raw.githubusercontent.com/xrp-community/codius-install/master/codius-install.sh -O codius-install.sh && bash codius-install.sh

Selected 2) Check your system for codius errors

[WARN] : It's look like codius is not running as expected ...

[+] Start Debuging ...

........................................
. Checking required installed packages .
........................................


PACKAGE STATUS

node ✔
npm ✔
hyperd ✔
hyperctl ✔
moneyd ✔
codiusd ✔
certbot ✔

......................................
. Checking required running services .
......................................


SERVICE STATUS

hyperd ✔
moneyd ✔
codiusd ✔
nginx ✔

[?] Creating full services log file ?

I'm running on google cloud hosting.

502 Bad Gateway

I tried to install many times.
I have enough money in my wallet.
Constantly the same error 502.
Though if to check up that all services are started, a firewall - ok.
Ports 7768 and 3000 are not listening.
Firewall checked several times, all ok.

Script misses firewall & setsebool

Describe the issues
Add

To Reproduce
You can run the script to completion and note that the commands have not been executed.

Expected behavior
Add:
setsebool -P httpd_can_network_connect 1
yum install firewalld
systemctl start firewalld
firewall-cmd --zone=public --add-port=443/tcp --permanent
firewall-cmd --zone=public --add-port=7768/tcp --permanent
firewall-cmd --reload

Screenshots
N/A

certbot error and codiusd not running

Hi i run a check on errors and below are the status and errors found. how do i resolve this ? My certificate have not expired yet.

[WARN] : It's look like codius is not running as expected ...
[+] Start Debuging ...
........................................
. Checking required installed packages .
........................................
------------------------------------------
PACKAGE              STATUS
------------------------------------------
node                 ✔                    
npm                  ✔                    
hyperd               ✔                    
hyperctl             ✔                    
moneyd               ✔                    
codiusd              ✔                    
certbot              ✘
......................................
. Checking required running services .
......................................
------------------------------------------
SERVICE              STATUS
------------------------------------------
hyperd               ✔                    
moneyd               ✔                    
codiusd              ✘
nginx                ✔    
[?] Creating full services log file ?
[WARN] : With this action all codius services will be restart for debuging

Do you want to continue ? [y/N]: y

[!] Stoping services... 
[!] Execute services and commands in debug mode ... 
[*] This will take some time ...
[!] Killing debug proccess ...
[+] Starting services... 
=============================================================================================================================================
[!] The Debuging Proccess is done .

[-] Please check /tmp/codius_debug-2018-07-12.15-46 for full log output 

Lost funds?

While running the script I unfortunately miss clicked during the certificate issuing and stopped the installation. It is now saying that I do not have enough XRP in my wallet. Are the fund locked on the VPS and can I release them?

To clarify, after I sent 60 XRP to Exarpy, now when I log in my amount appears to have 19.999 for a second, then it drops to 9.99.

I have decided to transfer more to get it done though, but would be nice to know what is happening.

Cleanup codius from this server gives errors.

Describe the issues
Whenever I run the cleanup of codius from my server I get an issue
`WARN] : Thie action will remove packages listed below and all config files belong to them :

  • Codiusd
  • Moneyd
  • Hyperd
  • Certbot
  • Nginx
  • Nodejs (npm & yarn)

Continue Anyway ? [y/N]: y
yarn global v1.7.0
[1/4] Removing module moneyd...
error This module isn't specified in a manifest.
info Visit https://yarnpkg.com/en/docs/cli/global for documentation about this command.`

To Reproduce
Steps to reproduce the behavior:

  1. run the script
  2. enter num 4 and hit ENTER

Expected behavior
The codius host should be cleared and reset.

post wallet secret input hang

After entering wallet secret the script hangs. I let it sit for 10 minutes. When I hit enter a 2nd time it shows this output.

codius-install.sh: line 102: read: `[?] Running moneyd in ripple testnet ? [Y/n] ': not a valid identifier
[root@codius ~]# 

I have tried entering "Y" before hitting enter but same issues.


OS INFO

[root@codius ~]# uname -a
Linux codius.zerpgames.com 3.10.0-862.el7.x86_64 #1 SMP Fri Apr 20 16:44:24 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux

[root@codius ~]# cat /etc/centos-release
CentOS Linux release 7.5.1804 (Core)
[root@codius ~]#

Some remarks

Hi there, love the script ... do have some ideas:

  • /etc/hosts is not modified to reflect the change made to /etc/hostname
  • Add a certbot warning before "please make both txt records with lowest TTL possible. And AFTER creating both check the TXT records, not after each one like certbot suggest as it would break validation due to caching (and then you need to wait the TTL out before retry !)
  • force the installation to be run in a screen or tmux :)
  • You ask to create DNS records, perhaps do a dig @Label check and spit out a warning that its not working (use dig+trace to bypass local dns)
  • Certbot is tricky, perhaps do a self SSL at install and have it do the 'renew' option (which does a new one anyways due to manual renawal) which saves to reinstall stuff all the time with DNS fails on ppl

thnx for making this!

add regular-key support ?

Add the ability to add a separate address and a separate secret, since sometimes access to the address occurs on a regular-key.

Ubuntu 18.04 LTS support

hi guys, any chance of getting 18.04 LTS (bionic) support?
When I look into the script code I don't see any contraindications why this won't work if Xenial is supported.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.