Running gekko on a ubuntu server with apache
#11
(02-15-2018, 01:47 PM)SirTificate Wrote: The error message is pretty clear. INCREASE the value!

lol yeah. seems pretty obvious. 

i tried to increase it but did not help.
  Reply
#12
it does help. Set the to 96 and restart the server:

systemctl restart nginx

if the still throws an error, it must be something else with a different message. Check journalctl and/or the nginx error log in /var/log/nginx.
  Reply
#13
(02-15-2018, 02:05 PM)SirTificate Wrote: it does help. Set the to 96 and restart the server:

systemctl restart nginx

if the still throws an error, it must be something else with a different message. Check journalctl and/or the nginx error log in /var/log/nginx.

so i guess i drove myself deeper into the shit lol.

tried to repair/reinstall package and got this now:
seems to be a problem with the package all along.
sry for the noob questions. im pretty new to linux

Quote:sudo apt-get install nginx
Reading package lists... Done
Building dependency tree
Reading state information... Done
nginx is already the newest version (1.10.3-0ubuntu0.16.04.2).
0 upgraded, 0 newly installed, 0 to remove and 3 not upgraded.
2 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] y
Setting up nginx-full (1.10.3-0ubuntu0.16.04.2) ...
Job for nginx.service failed because the control process exited with error code.
See "systemctl status nginx.service" and "journalctl -xe" for details.
invoke-rc.d: initscript nginx, action "start" failed.
● nginx.service - A high performance web server and a reverse proxy server
   Loaded: loaded (/lib/systemd/system/nginx.service; enabled; vendor preset: enabled)
   Active: failed (Result: exit-code) since Thu 2018-02-15 14:28:25 UTC; 6ms ago
  Process: 8016 ExecStartPre=/usr/sbin/nginx -t -q -g daemon on; master_process on; (code=exited, status=1/FAILURE)

Feb 15 14:28:25 ip-172-31-35-179 systemd[1]: Starting A high performance web server and a reverse proxy server...
Feb 15 14:28:25 ip-172-31-35-179 nginx[8016]: nginx: [emerg] open() "/etc/nginx/nginx.conf" failed (2: No such file or directory)
Feb 15 14:28:25 ip-172-31-35-179 nginx[8016]: nginx: configuration file /etc/nginx/nginx.conf test failed
Feb 15 14:28:25 ip-172-31-35-179 systemd[1]: nginx.service: Control process exited, code=exited status=1
Feb 15 14:28:25 ip-172-31-35-179 systemd[1]: nginx.service: Failed with result 'exit-code'.
Feb 15 14:28:25 ip-172-31-35-179 systemd[1]: Failed to start A high performance web server and a reverse proxy server.
dpkg: error processing package nginx-full (--configure):
 subprocess installed post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of nginx:
 nginx depends on nginx-core (>= 1.10.3-0ubuntu0.16.04.2) | nginx-full (>= 1.10.3-0ubuntu0.16.04.2) | nginx-light (>= 1.10.3-0ubuntu0.16.04.2) | nginx-extras (>= 1.10.3-0ubuntu0.16.04.2); however:
  Package nginx-core is not installed.
  Package nginx-full is not configured yet.
  Package nginx-light is not installed.
  Package nginx-extras is not installed.
 nginx depends on nginx-core (<< 1.10.3-0ubuntu0.16.04.2.1~) | nginx-full (<< 1.10.3-0ubuntu0.16.04.2.1~) | nginx-light (<< 1.10.3-0ubuntu0.16.04.2.1~) | nginx-extras (<< 1.10.3-0ubuntu0.16.04.2.1~); however:
  Package nginx-core is not installed.
  Package nginx-full is not configured yet.
  Package nginx-light is not installed.
  Package nginx-extras is not installed.

dpkg: error processing package nginx (--configure):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 nginx-full
 nginx
E: Sub-process /usr/bin/dpkg returned an error code (1)

Ps. just tried on another instance. as soon as i change the nginx config. the whole service stops working.
just to be clear: in the config i just have to set the DNS name nothing else right?

Edit2: got the server to run. with su sudo bla bla i got it to restart with the higher buffer value.

still no luck to edit or create htpasswd
  Reply
#14
i think your ciph is very simple
  Reply
#15
(02-15-2018, 03:26 PM)ankasem Wrote: i think your ciph is very simple

what do you mean "ciph"?

i got it to work. kinda

everything is setup. nginx is redirecting to my gekko. but when i open the web ui via the AWS DNS there is no possibility to putin a password or username. even though i got the creation of the htpasswd file to work.

Edit: tested this on several machines. seems as if i only have to put the pw in one time. is this normal? should be more secure when i have to put it in every time i open the webui...
  Reply
#16
(02-10-2018, 08:59 PM)ankasem Wrote: [cut]

In bash hold ctrl + c. Smile
--------------------------------
for server
----------------------------------
https://gekko.wizb.it/docs/installation/...erver.html

I tried this, but when I CTRL+C, Gekko stops, even though I set "headless: true"

This is my UIconfig.js:
Code:
const CONFIG = {
 headless: true,
 api: {
   host: '192.168.1.24',
   port: 80,
   timeout: 120000 // 2 minutes
 },
 ui: {
   ssl: false,
   host: '192.168.1.24',
   port: 80,
   path: '/'
 },
 adapter: 'sqlite'
}

if(typeof window === 'undefined')
 module.exports = CONFIG;
else
 window.CONFIG = CONFIG;
I also tried it without the "if(typeof...." part, but still no luck.

I'm running on a fresh Debian 9x VM
  Reply
#17
that command (gekko) is the stop command (ctrl+c)
what do you want to do

if you will install the server
https://gekko.wizb.it/docs/installation/...erver.html

--------------------------------

https://forum.gekko.wizb.it/thread-1435.html 
  Reply
#18
@donkeykong, yes it's normal, it's cached for a while. if you try on your smartphone or another computer(I'm not sure if another browser), then it'll prompt for password again Smile
  Reply
#19
(02-19-2018, 09:16 PM)cristi9313 Wrote: @donkeykong, yes it's normal, it's cached for a while. if you try on your smartphone or another computer(I'm not sure if another browser), then it'll prompt for password again Smile

very cool. thx for the info. yes on the smartphone it asks for the PW everytime.

one other thing thats strange is: it always warns me for not using HTTPS just HTTP. but i set up everything like in the guide with ssh.
  Reply
#20
(02-17-2018, 11:55 AM)sierra Wrote:
(02-10-2018, 08:59 PM)ankasem Wrote: [cut]

In bash hold ctrl + c. Smile
--------------------------------
for server
----------------------------------
https://gekko.wizb.it/docs/installation/...erver.html

I tried this, but when I CTRL+C, Gekko stops, even though I set "headless: true"

This is my UIconfig.js:
Code:
const CONFIG = {
 headless: true,
 api: {
   host: '192.168.1.24',
   port: 80,
   timeout: 120000 // 2 minutes
 },
 ui: {
   ssl: false,
   host: '192.168.1.24',
   port: 80,
   path: '/'
 },
 adapter: 'sqlite'
}

if(typeof window === 'undefined')
 module.exports = CONFIG;
else
 window.CONFIG = CONFIG;
I also tried it without the "if(typeof...." part, but still no luck.

I'm running on a fresh Debian 9x VM

have you gotten this working? I'm stuck, edited both the uiconfig file and nginx conf file. I'm running on a vultr server (the 2.50 USD one!)

this is my ui config file 

Code:
const CONFIG = {
   headless: true,
   api: {
       host: 'x.x.x.x', // changed x.x.x.x to ip address of server
       port: 3000,
   },
   ui: {
       ssl: false,
       host: 'x.x.x.x', // changed x.x.x.x to ip address of server
       port: 3000,
       path: '/'
   },
   adapter: 'sqlite'

}

this is for my nginx

Code:
server {
   listen 80;
   listen [::]:80;
   server_name x.x.x.x;
   return 301 https://$server_name$request_uri;
}

upstream websocket {
   server localhost:3000;
}

server {
   listen 443 ssl;
   listen [::]:443 ssl;
   root /var/www/html;

   ssl_certificate /etc/nginx/ssl/nginx.crt;
   ssl_certificate_key /etc/nginx/ssl/nginx.key;    

   location / {
           proxy_buffers 8 32k;
           proxy_buffer_size 64k;

           proxy_pass http://websocket;
           proxy_set_header X-Real-IP $remote_addr;
           proxy_set_header Host $http_host;
           proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
           proxy_set_header X-NginX-Proxy true;

           proxy_http_version 1.1;
           proxy_set_header Upgrade $http_upgrade;
           proxy_set_header Connection "upgrade";

           proxy_read_timeout 86400s;
           proxy_send_timeout 86400s;

           auth_basic "Restricted Content";
           auth_basic_user_file /etc/nginx/.htpasswd;
   }
}

my openssl cert prompt went something like this

Code:
Country Name (2 letter code) [AU]:US
State or Province Name (full name) [Some-State]:New Jersey
Locality Name (eg, city) []:New Jersey
Organization Name (eg, company) [Internet Widgits Pty Ltd]:.
Organizational Unit Name (eg, section) []:.
Common Name (e.g. server FQDN or YOUR name) []:x.x.x.x (this is ok right? using the same ip address?!)
Email Address []:personal email

when I ran this code, I was asked to input password which I did.

Code:
printf "username:`openssl passwd -apr1`\n" >> /etc/nginx/.htpasswd

My problems

what parameters can I use to check that i successfully installed this setup?

when i try to access the gekko from my home PC using this x.x.x.x:3000 I get an error in connection. Why?

is it possible/useful to enable 2FA for the gekko?

is there a video anywhere of someone installing this software?

any and all feedback is appreciated.
  Reply


Forum Jump:


Users browsing this thread: