clonos / control-pane Goto Github PK
View Code? Open in Web Editor NEWClonOS WEB control panel (CBSD WEB UI)
Home Page: https://clonos.tekroutine.com
ClonOS WEB control panel (CBSD WEB UI)
Home Page: https://clonos.tekroutine.com
ok first it checks if the db is ok and then if the db is not OK. so basically that code is never executed atm
what the logic behind it ?
После установки потребовалось вручную добавить в rc.conf kld_list="if_bridge if_tap nmdm"
Отдельно установать пакет tmux
Еще вроде какой-то пакет но не помню уже какой
Line 1441 in aef78b7
....ci_user_pw_user={$form['vm_password']} {$user_pw}vnc_password={$form['vnc_password']}";
there seems to be something missing or wrong around {$user_pw}vnc_password
I build clonos on freebsd 11 following this guide.
some log
2018/01/23 18:26:09 [error] 4986#100703: *36 FastCGI sent in stderr: "PHP message: PHP Fatal error: Uncaught Error: Call to a member function query() on null in /usr/local/www/clonos/php/db.php:149
Stack trace:
#0 /usr/local/www/clonos/php/clonos.php(2478): Db->selectAssoc('select id,usern...')
#1 /usr/local/www/clonos/php/clonos.php(368): ClonOS->userRegisterCheck(Array)
#2 /usr/local/www/clonos/php/clonos.php(183): ClonOS->login()
#3 /usr/local/www/clonos/public/json.php(12): ClonOS->__construct('/usr/local/www/...')
#4 {main}
thrown in /usr/local/www/clonos/php/db.php on line 149" while reading response header from upstream, client: 192.168.0.21, server: , request: "POST /json.php HTTP/1.1", upstream: "fastcgi://unix:/tmp/php-fpm.sock:", host: "192.168.0.16", referrer: "http://192.168.0.16/overview/"
The CBSD project spends a lot of effort keeping the profiles up to date.
Profiles often go out of date and images leave mirrors. Need a button to sync the latest profiles from the repository: https://github.com/cbsd/cbsd-vmprofiles
It is also useful to have a setting that will enable cron jobs on a regular basis/background.
Hellow,
When I add the ClonOS-pkg.ircdriven.net repos and try update -f,it fails.
root@node67:~ # uname -a
FreeBSD node67 12.1-RELEASE-p1 FreeBSD 12.1-RELEASE-p1 GENERIC amd64
root@node67:~ # pkg update -f
Updating ClonOS-pkg.ircdriven.net repository catalogue...
Certificate verification failed for /C=US/O=Let's Encrypt/CN=Let's Encrypt Authority X3
34375614464:error:1416F086:SSL routines:tls_process_server_certificate:certificate verify failed:/usr/src/crypto/openssl/ssl/statem/statem_clnt.c:1915:
Certificate verification failed for /C=US/O=Let's Encrypt/CN=Let's Encrypt Authority X3
34375614464:error:1416F086:SSL routines:tls_process_server_certificate:certificate verify failed:/usr/src/crypto/openssl/ssl/statem/statem_clnt.c:1915:
Certificate verification failed for /C=US/O=Let's Encrypt/CN=Let's Encrypt Authority X3
34375614464:error:1416F086:SSL routines:tls_process_server_certificate:certificate verify failed:/usr/src/crypto/openssl/ssl/statem/statem_clnt.c:1915:
pkg: https://pkg.ircdriven.net/packages/12amd64-clonos//meta.txz: Authentication error
repository ClonOS-pkg.ircdriven.net has no meta file, using default settings
Certificate verification failed for /C=US/O=Let's Encrypt/CN=Let's Encrypt Authority X3
34375614464:error:1416F086:SSL routines:tls_process_server_certificate:certificate verify failed:/usr/src/crypto/openssl/ssl/statem/statem_clnt.c:1915:
Certificate verification failed for /C=US/O=Let's Encrypt/CN=Let's Encrypt Authority X3
34375614464:error:1416F086:SSL routines:tls_process_server_certificate:certificate verify failed:/usr/src/crypto/openssl/ssl/statem/statem_clnt.c:1915:
Certificate verification failed for /C=US/O=Let's Encrypt/CN=Let's Encrypt Authority X3
34375614464:error:1416F086:SSL routines:tls_process_server_certificate:certificate verify failed:/usr/src/crypto/openssl/ssl/statem/statem_clnt.c:1915:
pkg: https://pkg.ircdriven.net/packages/12amd64-clonos//packagesite.txz: Authentication error
Unable to update repository ClonOS-pkg.ircdriven.net
Updating FreeBSD repository catalogue...
Certificate verification failed for /C=US/O=Let's Encrypt/CN=Let's Encrypt Authority X3
34375614464:error:1416F086:SSL routines:tls_process_server_certificate:certificate verify failed:/usr/src/crypto/openssl/ssl/statem/statem_clnt.c:1915:
Certificate verification failed for /C=US/O=Let's Encrypt/CN=Let's Encrypt Authority X3
34375614464:error:1416F086:SSL routines:tls_process_server_certificate:certificate verify failed:/usr/src/crypto/openssl/ssl/statem/statem_clnt.c:1915:
Certificate verification failed for /C=US/O=Let's Encrypt/CN=Let's Encrypt Authority X3
34375614464:error:1416F086:SSL routines:tls_process_server_certificate:certificate verify failed:/usr/src/crypto/openssl/ssl/statem/statem_clnt.c:1915:
pkg: https://mirrors.ustc.edu.cn/freebsd-pkg/FreeBSD:12:amd64/latest/meta.txz: Authentication error
repository FreeBSD has no meta file, using default settings
Certificate verification failed for /C=US/O=Let's Encrypt/CN=Let's Encrypt Authority X3
34375614464:error:1416F086:SSL routines:tls_process_server_certificate:certificate verify failed:/usr/src/crypto/openssl/ssl/statem/statem_clnt.c:1915:
Certificate verification failed for /C=US/O=Let's Encrypt/CN=Let's Encrypt Authority X3
34375614464:error:1416F086:SSL routines:tls_process_server_certificate:certificate verify failed:/usr/src/crypto/openssl/ssl/statem/statem_clnt.c:1915:
Certificate verification failed for /C=US/O=Let's Encrypt/CN=Let's Encrypt Authority X3
34375614464:error:1416F086:SSL routines:tls_process_server_certificate:certificate verify failed:/usr/src/crypto/openssl/ssl/statem/statem_clnt.c:1915:
pkg: https://mirrors.ustc.edu.cn/freebsd-pkg/FreeBSD:12:amd64/latest/packagesite.txz: Authentication error
Unable to update repository FreeBSD
Error updating repositories!
After enabling the repository on /usr/local/etc/pkg/repos/clonos-pkg.ircdriven.net.conf
with
ClonOS-pkg.ircdriven.net: { url: "https://pkg.ircdriven.net/packages/12amd64-clonos/", mirror_type: "none", enabled: yes }
I ran pkg update -f pkg install clonos
it returns with an error
pkg: https://pkg.ircdriven.net/packages/12amd64-clonos/All/clonos-19.09.txz: Not Found
anyone know what to do? Thank you!
Hi Oleg,
I just installed ClonOS on a 12.0-CURRENT and I get the following error in /var/log/nginx/cbsdweb.err
2017/10/12 02:13:52 [error] 56976#100981: *65 FastCGI sent in stderr: "PHP message: PHP Notice: Undefined offset: 0 in /usr/local/www/clonos/php/clonos.php on line 127
PHP message: PHP Notice: Undefined offset: 0 in /usr/local/www/clonos/php/menu.php on line 47" while reading response header from upstream, client: 192.168.1.108, server: , request: "GET / HTTP/1.1", upstream: "fastcgi://unix:/tmp/php-fpm.sock:", host: "192.168.1.108"
2017/10/12 02:13:53 [error] 56976#100981: *65 FastCGI sent in stderr: "PHP message: PHP Fatal error: Uncaught Error: Call to a member function query() on null in /usr/local/www/clonos/php/db.php:139
Stack trace:
#0 /usr/local/www/clonos/public/pages/overview/a.json.php(17): Db->select('select nodename...')
#1 /usr/local/www/clonos/php/clonos.php(160): include('/usr/local/www/...')
#2 /usr/local/www/clonos/public/json.php(12): ClonOS->__construct('/usr/local/www/...')
#3 {main}
thrown in /usr/local/www/clonos/php/db.php on line 139" while reading response header from upstream, client: 192.168.1.108, server: , request: "POST /json.php HTTP/1.1", upstream: "fastcgi://unix:/tmp/php-fpm.sock:", host: "192.168.1.108", referrer: "http://192.168.1.108/overview/"
If I navigate to settings I get a pop-up with the message:
JSON.parse: unexpected non-whitespace character after JSON data at line 1 column 3 of the JSON data
we can use the result of the https://k8s-bhyve.convectix.com project
Currently the site calls get_bhyve_profiles for every page load, most likely every tiny thing as well as I see many instances running in paralel.
This slows down incredibly, ideally output should be cached and refreshed when needed (if output is static once an hour via cronjob might be ideal)
Install manual says to make this command:
#sh /usr/local/cbsd/modules/forms.d/clonos_database/initforms.sh
.: cannot open /usr/jails/cbsd/cbsd.conf: No such file or directory
(* https://clonos.tekroutine.com/installation_on_freebsd.html )
did a symlink from /usr/local/cbsd/cbsd.conf to /usr/jails/cbsd/cbsd.conf and result is:
File /usr/jails/cbsd/modules/forms.d/clonos_database/sys_helpers_list.schema not found
File /usr/jails/cbsd/modules/forms.d/clonos_database/sys_helpers_list.schema not found
File /usr/jails/cbsd/modules/forms.d/clonos_database/auth_user.schema not found
File /usr/jails/cbsd/modules/forms.d/clonos_database/auth_list.schema not found
Error: near line 2: no such table: sys_helpers_list
Error: near line 3: no such table: sys_helpers_list
Error: near line 4: no such table: sys_helpers_list
Error: near line 5: no such table: sys_helpers_list
Error: near line 6: no such table: sys_helpers_list
Error: near line 7: no such table: sys_helpers_list
Error: near line 8: no such table: sys_helpers_list
Error: near line 9: no such table: sys_helpers_list
Error: near line 10: no such table: sys_helpers_list
Error: near line 11: no such table: sys_helpers_list
Error: near line 12: no such table: sys_helpers_list
Error: near line 13: no such table: sys_helpers_list
Error: near line 14: no such table: sys_helpers_list
Error: near line 18: no such table: jails_helpers_list
Error: near line 19: no such table: jails_helpers_list
Error: near line 20: no such table: jails_helpers_list
Error: near line 21: no such table: jails_helpers_list
Error: near line 22: no such table: jails_helpers_list
Error: near line 23: no such table: jails_helpers_list
Error: near line 24: no such table: jails_helpers_list
Error: near line 25: no such table: jails_helpers_list
Error: near line 26: no such table: jails_helpers_list
Error: near line 27: no such table: jails_helpers_list
Error: near line 28: no such table: jails_helpers_list
Error: near line 29: no such table: jails_helpers_list
Error: near line 30: no such table: jails_helpers_list
Error: near line 31: no such table: jails_helpers_list
Add new admin user: admin/admin with salt: yil8M2jpHLTtBZ/AO2NOAgZ8oj05nvMys+1rdnZF
Error: near line 2: no such table: auth_user
Hello,
I try to install ClonOS in VM.
I use Instructions from https://clonos.convectix.com/installation_on_freebsd.html
And I configure CBSD over reggae. So ~cbsd/etc/
is /usr/cbsd/etc
Can you help me how find more logs to send you if I can't solve it problem.
Thanks in advance
Hi, Ive been using the latest clonos dev image for the past few months and Im enjoying quite a bit, however I havent been able to get a vallid response from the repo for many weeks now. trying to run a 'pkg update' fails with the repo enabled:
# pkg update
Updating FreeBSD repository catalogue...
FreeBSD repository is up to date.
Updating ClonOS-latest repository catalogue...
pkg: No SRV record found for the repo 'ClonOS-latest'
pkg: An error occured while fetching package
pkg: packagesite URL error for pkg+http://clonos-pkg.convectix.com/FreeBSD:13:amd64/latest/meta.txz -- pkg+:// implies SRV mirror type
repository ClonOS-latest has no meta file, using default settings
pkg: packagesite URL error for pkg+http://clonos-pkg.convectix.com/FreeBSD:13:amd64/latest/packagesite.pkg -- pkg+:// implies SRV mirror type
pkg: packagesite URL error for pkg+http://clonos-pkg.convectix.com/FreeBSD:13:amd64/latest/packagesite.txz -- pkg+:// implies SRV mirror type
Unable to update repository ClonOS-latest
Error updating repositories!
Is it going to be brought back online or is there a replacement? Or I did I somehow break things on my side? I've searched on github, clonos site and all over but do not see any updates posted.
thanks
when editing and adjusting VM's other params, after pressing save button appears incorrect vm size pattern, must have Xg, but appears X GB
sh /usr/local/cbsd/modules/clonos_database/initforms.sh
sh: cannot open /usr/local/cbsd/modules/clonos_database/initforms.sh: No such file or directory
The README suggests to switch to the develop branch. This appears to be wrong, as it lags behind the master branch. Maybe it would make sense to remove that sentence and delete the branch?
Hi,
I m moving forward with the tpl engine but while trying to refactor the "Settings" section I encountered a problem
cbsd-settings db is looking for this file:
/usr/jails/jails-system/CBSDSYS/helpers/cbsd.sqlite
and I can't seem to find it on ClonOS 19.09-RELEASE
The way I read it cloneos->cbsd_cmd needs to exec a command with elevated privs
does that mean that the user that runs the apache httpd needs to be in the wheel group ?
Line 73 in 228e14b
<script type="text/javascript"> _first_start=true; err_messages={add:function(arr){for(n in arr){err_messages[n]=arr[n];}}}; user_id='1';user_login='admin'; </script>
I can't find any reference to user_login anywhere else in the code
Question is if user_id is being passed to some other script like public\js\clonos.js
to be used for user deletion or other sensitive stuff ?
I mean I can craft the page to make myself admin. admin is user_id = 1
We need to remove OS images no longer supported. For example, Arch 2016, Ubuntu 16.04, and etc.
Hello,
If I replace the existing load dialog code with a template engine, will you accept it ?
Momchil
Line 2062 in aef78b7
$add_cmd=($in_helper)?' default_jailname='.$this->url_hash:'';
$add_cmd1=' default_jailname='.$type;
$res=$this->cbsd_cmd("freejname".$add_cmd.$add_cmd1);
after refactoring this translates to:
if ($in_helper) {
$res = CBSD::run('freejname default_jailname=%s default_jailname=%s', array($this->url_hash, $type));
} else {
$res = CBSD::run('freejname default_jailname=%s', array($type));
}
The double default_jailname looks weird
it this correct ?
Hi,
the download links on the website are dead.
there's no contact info either, thus reporting here.
iso images: progress bar via wss when downloading via profiles
Clean install of clonos.
When i try to upload an iso image progress bar starts to show that upload is going, but after 1 or 2 minute it stay red and uploading stops.
Can i write issues on russian? my english is not very good
when setting up bhyve vm, you must specify VM name, unfortunately it's allowed without extra chars and also without underscores. it's hard to organize VM list, because you must specify VM name in : namewithoutspecialchars12340 format.
Only using cbsd bconfig you can change it to normal usable name.
For create a bhyve vm it doesnt show porgess of fetch iso image. That make sometimes confuse in which state clonos is for the VM.
Line 122 in ae73df7
Hello,
I would add additional validation here as the cookie value is directly used for the include.
Thanks for the code.
I m still reviewing it but seems to be what I need.
Momchil
Would it be possible for current/future releases of the ISO image to be made available through Bittorent?
Right now I'm attempting to download the ISO, but it is only going at ~80KB/sec, estimated ~4 hours to download.
I'm on gigabit internet and have a 24/7 torrent seeding jail setup that is dedicated to various Linux and FreeBSD distributions, and would fully support this distro as well. This distro is also listed on DistroWatch, so I'm sure others would as well: https://distrowatch.com/table.php?distribution=clonos
При попытке открыть хэлперы или экспортировать виртуальную машину в консоле браузера вылазит следующая ошибка:
Uncaught TypeError: Cannot read property 'showModal' of undefined
at Object.dialogShow1 (clonos.js:235)
at Object.DDMenuSelect (clonos.js:2144)
at Object.bodyClick (clonos.js:1635)
at HTMLDivElement.e (jquery.js:2)
at HTMLDivElement.dispatch (jquery.js:3)
at HTMLDivElement.q.handle (jquery.js:3)
и естественно функция не открывается
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.