Gekko Forum
Raspberry Headless Server Error - Printable Version

+- Gekko Forum (https://forum.gekko.wizb.it)
+-- Forum: Gekko (https://forum.gekko.wizb.it/forum-13.html)
+--- Forum: Technical Support (https://forum.gekko.wizb.it/forum-19.html)
+--- Thread: Raspberry Headless Server Error (/thread-57223.html)



Raspberry Headless Server Error - kinakuta - 05-29-2018

Hi,

I got Gekko installed on my Raspberry. Everything worked just fine, but trying to start it, I get the following error:

Code:
  /      \ /        |/  |  /  |/  |  /  | /      \
 /$$$$$$  |$$$$$$$$/ $$ | /$$/ $$ | /$$/ /$$$$$$  |
 $$ | _$$/ $$ |__    $$ |/$$/  $$ |/$$/  $$ |  $$ |
 $$ |/    |$$    |   $$  $$<   $$  $$<   $$ |  $$ |
 $$ |$$$$ |$$$$$/    $$$$$  \  $$$$$  \  $$ |  $$ |
 $$ \__$$ |$$ |_____ $$ |$$  \ $$ |$$  \ $$ \__$$ |
 $$    $$/ $$       |$$ | $$  |$$ | $$  |$$    $$/
  $$$$$$/  $$$$$$$$/ $$/   $$/ $$/   $$/  $$$$$$/

    Gekko v0.5.14
    I'm gonna make you rich, Bud Fox.


/usr/local/bin/gekko/web/server.js:13
const app = koa();
           ^

TypeError: Class constructor Application cannot be invoked without 'new'
   at Object.<anonymous> (/usr/local/bin/gekko/web/server.js:13:13)
   at Module._compile (module.js:652:30)
   at Object.Module._extensions..js (module.js:663:10)
   at Module.load (module.js:565:32)
   at tryModuleLoad (module.js:505:12)
   at Function.Module._load (module.js:497:3)
   at Module.require (module.js:596:17)
   at require (internal/module.js:11:18)
   at Object.<anonymous> (/usr/local/bin/gekko/gekko.js:43:10)
   at Module._compile (module.js:652:30)

Any ideas?



RE: Raspberry Headless Server Error - susitronix - 05-30-2018

hi
the koa issue looks familiar, but i cant remember.

whats your:
-raspi OS?
-raspi hardware version?


what installation did you made?

i got it to work, and made a Tutorial

TUT headless raspi

you could try to just delete the whole gekko folder and follow the TUT
its in the last code block you find the installation of gekko

for gekko download/installation you can also use:

Code:
git clone git://github.com/askmike/gekko.git -b stable
this is for the gekko-stable version

for the gekko-develop version:

Code:
git clone git://github.com/askmike/gekko.git



RE: Raspberry Headless Server Error - kinakuta - 05-31-2018

Hi,

thanks for the reply. I read your tutorial before and it's been a great help.

But I'm using a Pi2 with ARMv6, so I downloaded the latest binary (8.11.2) from nodejs instead of using apt to instal it, which would have resulted in in version 10.x and somewhere I read that doesn't work.

node -v
v8.11.2
npm -v
5.6.0

And I didn't get any errors during install, it's just the error I get when starting gekko, meaning the webserver won't start and I can't access gekko in the browser. If I start gekko using pm2, it doesn't complain, but I also don't get the webserver to run.

Any other ideas?


RE: Raspberry Headless Server Error - susitronix - 06-16-2018

hmmm
seems strange
i would go for a raspi 3b since this works


or try new install of everything...sorry it took me days for get it working so i made TUT for not forget :-)
...and setup one for my friend that worked without complains


RE: Raspberry Headless Server Error - globulo1979 - 01-11-2019

Hello, give me this error, someone can help me. Raspberry pi3 B +


ekko v0.6.8
I'm gonna make you rich, Bud Fox.


/home/pi/gekko/web/vue/dist/UIconfig.js:10
host:? '0.0.0.0',
^

SyntaxError: Unexpected token ?
at createScript (vm.js:80:10)
at Object.runInThisContext (vm.js:139:10)
at Module._compile (module.js:617:28)
at Object.Module._extensions..js (module.js:664:10)
at Module.load (module.js:566:32)
at tryModuleLoad (module.js:506:12)
at Function.Module._load (module.js:498:3)
at Module.require (module.js:597:17)
at require (internal/module.js:11:18)
at Object.<anonymous> (/home/pi/gekko/web/server.js:1:78)