clommunity / cloudynitzar Goto Github PK
View Code? Open in Web Editor NEWA tool to convert your Debian system into a Commnunity Networking cloud in a box
Home Page: http://cloudy.community
A tool to convert your Debian system into a Commnunity Networking cloud in a box
Home Page: http://cloudy.community
Hi @rogerpueyo ,
In order to put kubernetes as part of Cloudy, I would need to update the docker package from docker.io to docker-ce.
[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.
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.*
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
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#
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.
With systemd, eth0 might no longer be named eth0, so the whole thing fails.
[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.
[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
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
When there are upgradeable packages, the cloudynitzar.sh script just exits. An informative message would be nice, in order to know why the process stopped.
The .sh file is not executable.
Save cloudynitzar process logs to a file (e.g. /etc/cloudy/log/%DATE_cloudynitzar.log, /var/log/cloudy/cloudynitzar.log).
Raspbian (Debian) Jessie on a RaspberryPi:
NO_PUBKEY 8B48AD6246925553 NO_PUBKEY 7638D0442B90D010
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
I installed cloudynitzar but after installation
what is the default login & password ?
thanks
No avahi-ps == no services discovery/announcement.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.