Giter VIP home page Giter VIP logo

control-pane's People

Contributors

bozhinov avatar dependabot[bot] avatar lightbusterx avatar moveee avatar olevole avatar pautiina avatar reezer avatar s72785 avatar stefar77 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  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  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  avatar  avatar  avatar  avatar

Watchers

 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

control-pane's Issues

Bug in the cmd #1

$cmd="task owner=${username} mode=new /usr/local/bin/cbsd bcreate jname={$form['vm_name']} vm_os_profile=\"{$os_profile}\" imgsize={$form['vm_size']} vm_cpus={$form['vm_cpus']} vm_ram={$form['vm_ram']} vm_os_type={$os_type} mask={$form['mask']} ip4_addr={$form['ip4_addr']} ci_ip4_addr={$form['ip4_addr']} ci_gw4={$form['gateway']} ci_user_pubkey=\"{$authkey}\" ci_user_pw_user={$form['vm_password']} {$user_pw}vnc_password={$form['vnc_password']}";

....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

can't login

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/"

Unable to update -f

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!

Installing ClonOS/CBSD WEB UI via PKG on FreeBSD 12

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!

php error

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

Web interface slow due to repeated calling off 'get_bhyve_profiles'

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)

Problem with database initiation

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

clonos repo has been inaccessible for a long time

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

Missing sqlite file

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

Possible security problem

<?php if(isset($user_info_txt)) echo $user_info_txt; ?>

<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

Use template engine ?

Hello,

If I replace the existing load dialog code with a template engine, will you accept it ?

Momchil

Possible bug

$res=$this->cbsd_cmd("freejname".$add_cmd.$add_cmd1);

$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 ?

dead links

Hi,

the download links on the website are dead.
there's no contact info either, thus reporting here.

Upload ISO image not work

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

WEB GUI - Unable to define usable VM name

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.

Status view for fetching ISO

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.

Security issue

include($t_filename);

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

ISOs also released via Bittorrent

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

Cannot read property 'showModal' of undefined

При попытке открыть хэлперы или экспортировать виртуальную машину в консоле браузера вылазит следующая ошибка:

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)

и естественно функция не открывается

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.