Giter Club home page Giter Club logo

cloudynitzar's People

Contributors

felixfreitag avatar ismferd avatar rogerpueyo avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

cloudynitzar's Issues

Benign? error in install on debian 9

[Cloudynitzar] - Performing specific changes for Debian stretch...
[Cloudynitzar] - Detecting the primary network interface...
[Cloudynitzar] - The primary network interface is enp1s0. Saving it...

[Cloudynitzar] - Starting Cloudy web interface...
cat: /var/run/cdistro.pid: No such file or directory
/etc/init.d/cdistro: 35: kill: Usage: kill [-s sigspec | -signum | -sigspec] [pid | job]... or
kill -l [exitstatus]
rm: cannot remove '/var/run/cdistro.pid': No such file or directory
cat: /var/run/cdistrod.pid: No such file or directory
/etc/init.d/cdistro: 37: kill: Usage: kill [-s sigspec | -signum | -sigspec] [pid | job]... or
kill -l [exitstatus]
rm: cannot remove '/var/run/cdistrod.pid': No such file or directory

Anyway, Cloudy seems to work.

bug in /etc/init.d/serf

Serf does not start from cloudynitzar.sh because PUBLIC_IP is not found in /etc/init.d/serf:

ip addr show dev eth0 called from /etc/init.d/serf can have the work "dynamic" or not between "global" and "eth0". (below examples cloudy4 and cloudy5)

but in /etc/init.d/serf the condition
PUBLIC_IP=$(ip addr show dev $SERF_INTERFACE|grep "global.* $SERF_INTERFACE$"|awk '{print $2}'|awk -F "/" {'print $1'})

only works for the case without "dynamic" (case cloudy5), in case of cloudy4 the variable PUBLIC_IP is empty (because of "dynamic") and serf does not start.

It seems using PUBLIC_IP=$(ip addr show dev $SERF_INTERFACE|grep "global.*"|awk '{print $2}'|awk -F "/" {'print $1'})
without $SERF_INTERFACE$ would capture the same line.

Cases: Cloudy4 does not work, cloudy5 works.

root@cloudy4:/etc/init.d# ip addr show dev eth0
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
link/ether 00:50:56:1c:01:0f brd ff:ff:ff:ff:ff:ff
inet 147.83.42.141/24 brd 147.83.42.255 scope global dynamic eth0
valid_lft 3429sec preferred_lft 3429sec
inet6 fe80::250:56ff:fe1c:10f/64 scope link
valid_lft forever preferred_lft forever
root@cloudy4:/etc/init.d#

root@cloudy5:/etc/init.d# ip addr show dev eth0
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
link/ether 00:50:56:1c:01:2b brd ff:ff:ff:ff:ff:ff
inet 147.83.42.188/24 brd 147.83.42.255 scope global eth0
valid_lft forever preferred_lft forever
inet6 fe80::250:56ff:fe1c:12b/64 scope link
valid_lft forever preferred_lft forever
root@cloudy5:/etc/init.d#

Adding Clommunity repository GPG key to the local APT keyring fails

Fresh Debian 9 Stretch on a CubieTruck board:

[Cloudynitzar] - Adding Clommunity repository GPG key to the local APT keyring...
gpg: directory '/root/.gnupg' created
gpg: keybox '/root/.gnupg/pubring.kbx' created
gpg: keyserver receive failed: No data

and later:

[Cloudynitzar] - Updating package sources with newly added repositories...
W: GPG error: http://repo.clommunity-project.eu/debian unstable/ Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY D246F495A59C5DC8
W: The repository 'http://repo.clommunity-project.eu/debian unstable/ Release' is not signed.

The cloudynitzar.sh script shows awful information on exit, even when the whole process succeeded

[Cloudynitzar] - Detecting the primary network interface...
[Cloudynitzar] - The primary network interface is eth0. Saving it...

[Cloudynitzar] - Starting Cloudy web interface...
cat: /var/run/cdistro.pid: No such file or directory
/etc/init.d/cdistro: 35: kill: Usage: kill [-s sigspec | -signum | -sigspec] [pid | job]... or
kill -l [exitstatus]
rm: cannot remove '/var/run/cdistro.pid': No such file or directory
cat: /var/run/cdistrod.pid: No such file or directory
/etc/init.d/cdistro: 37: kill: Usage: kill [-s sigspec | -signum | -sigspec] [pid | job]... or
kill -l [exitstatus]
rm: cannot remove '/var/run/cdistrod.pid': No such file or directory

[Cloudynitzar] - Starting Serf...
cat: /var/run/serf.pid: No such file or directory
/etc/init.d/serf: 56: kill: Usage: kill [-s sigspec | -signum | -sigspec] [pid | job]... or
kill -l [exitstatus]
rm: cannot remove '/var/run/serf.pid': No such file or directory

The cdistro and serf init.d script files are [partially] causing it.

Travis CI gpg keys error

[Cloudynitzar] - Adding Clommunity repository GPG key to the local APT keyring...
gpg: WARNING: unsafe ownership on configuration file `/home/travis/.gnupg/gpg.conf'
gpg: external program calls are disabled due to unsafe options file permissions
gpg: keyserver communications error: general error
gpg: keyserver receive failed: general error
[Cloudynitzar] - Adding Guifi.net repository GPG key to the local APT keyring...
gpg: WARNING: unsafe ownership on configuration file `/home/travis/.gnupg/gpg.conf'
gpg: external program calls are disabled due to unsafe options file permissions
gpg: keyserver communications error: general error
gpg: keyserver receive failed: general error

Installation process gives a few errors... plus it could be more verbose

The installation was successful:

But I received these error messages in the terminal:
cat: /var/run/cdistro.pid: No such file or directory
/etc/init.d/cdistro: 28: kill: Usage: kill [-s sigspec | -signum | -sigspec] [pid | job]... or
kill -l [exitstatus]
rm: cannot remove ‘/var/run/cdistro.pid’: No such file or directory
cat: /var/run/cdistrod.pid: No such file or directory
/etc/init.d/cdistro: 30: kill: Usage: kill [-s sigspec | -signum | -sigspec] [pid | job]... or
kill -l [exitstatus]
rm: cannot remove ‘/var/run/cdistrod.pid’: No such file or directory
Stop & Start SERF.
cat: /var/run/serf.pid: No such file or directory
/etc/init.d/serf: 57: kill: Usage: kill [-s sigspec | -signum | -sigspec] [pid | job]... or
kill -l [exitstatus]
rm: cannot remove ‘/var/run/serf.pid’: No such file or directory

Save logs

Save cloudynitzar process logs to a file (e.g. /etc/cloudy/log/%DATE_cloudynitzar.log, /var/log/cloudy/cloudynitzar.log).

Missing keys

Raspbian (Debian) Jessie on a RaspberryPi:

NO_PUBKEY 8B48AD6246925553 NO_PUBKEY 7638D0442B90D010

Cdistro / Serf not installed

Hi,
I just try the procedure suggested in the README in a just installed Dabian 9.
The script fails starting cdistro and serf since they are not installed.

Logs:
[Cloudynitzar] - Starting Cloudy web interface...
cloudynitzar.sh: línea 173: /etc/init.d/cdistro: No existe el fichero o el directorio
cloudynitzar.sh: línea 174: /etc/init.d/cdistro: No existe el fichero o el directorio

[Cloudynitzar] - Starting Serf...
cloudynitzar.sh: línea 178: /etc/init.d/serf: No existe el fichero o el directorio
cloudynitzar.sh: línea 179: /etc/init.d/serf: No existe el fichero o el directorio

Expected behavior:
It should install the needed packages and start cdistro and serf correctly

Partial solution:
You can solve it by installing serf with apt.
apt-get install serf

And installing cdistro as stated here:
https://github.com/Clommunity/cdistro

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.