question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Run on ARM/Raspberry

See original GitHub issue

Hi, I’ve tried running this on a Raspberry but the docker instances keep restarting.

running docker logs openvpn shows the following error: standard_init_linux.go:195: exec user process caused "exec format error''

so I guess these dockers do not run on ARM. It would be great to be able to do so though. do you have any plans to add support for ARM? or maybe provide instructions on how to build it myself?

Kind regards, Taco Scheltema

Issue Analytics

  • State:open
  • Created 6 years ago
  • Reactions:7
  • Comments:11

github_iconTop GitHub Comments

3reactions
bugsybcommented, Mar 13, 2021

Done as much as could so far (noob on Github)… Here are links and any suggestions on what’s wrong/could be improved are more than welcome:

Hope this helps and in case of troubles let me know under repos and I’ll try to fix it - didn’t have time to test if all works as couldn’t spun up separate docker host to play and not impact my prod (lack of time).

1reaction
bugsybcommented, Feb 23, 2020

Small update: Managed to get Go and Bee in docker and to run app. This generated openvpn-web-ui binary and did run it with output as below. It all looks positive.

The missing part, where some help is needed - should it be run manually and keep it open or as daemon or maybe just expose one of the folders?

I’ll keep digging, but some help would be appreciated.

UPDATE1: found “bee pack -exr=‘^vendor|^data.db|^build|^README.md|^docs’” - seems like am on good path to get that running as everything is in the package.

bee run -gendoc=true
______
| ___ \
| |_/ /  ___   ___
| ___ \ / _ \ / _ \
| |_/ /|  __/|  __/
\____/  \___| \___| v1.10.0
2020/02/23 12:59:42 INFO     ▶ 0001 Using 'openvpn-web-ui' as 'appname'
2020/02/23 12:59:42 INFO     ▶ 0002 Initializing watcher...


2020/02/23 12:59:42 INFO     ▶ 0003 Generating the docs...
2020/02/23 12:59:42 SUCCESS  ▶ 0004 Docs generated!
2020/02/23 12:59:49 SUCCESS  ▶ 0005 Built Successfully!
2020/02/23 12:59:49 INFO     ▶ 0006 Restarting 'openvpn-web-ui'...
2020/02/23 12:59:49 SUCCESS  ▶ 0007 './openvpn-web-ui' is running...
create table `user` 
    -- --------------------------------------------------
    --  Table Structure for `github.com/adamwalach/openvpn-web-ui/models.User`
    -- --------------------------------------------------
    CREATE TABLE IF NOT EXISTS `user` (
        `id` integer NOT NULL PRIMARY KEY AUTOINCREMENT,
        `login` varchar(64) NOT NULL DEFAULT ''  UNIQUE,
        `name` varchar(64) NOT NULL DEFAULT ''  UNIQUE,
        `email` varchar(64) NOT NULL DEFAULT ''  UNIQUE,
        `password` varchar(32) NOT NULL DEFAULT '' ,
        `lastlogintime` datetime,
        `created` datetime NOT NULL,
        `updated` datetime NOT NULL
    );

create table `settings` 
    -- --------------------------------------------------
    --  Table Structure for `github.com/adamwalach/openvpn-web-ui/models.Settings`
    -- --------------------------------------------------
    CREATE TABLE IF NOT EXISTS `settings` (
        `id` integer NOT NULL PRIMARY KEY AUTOINCREMENT,
        `profile` varchar(64) NOT NULL DEFAULT ''  UNIQUE,
        `m_i_address` varchar(64) NOT NULL DEFAULT ''  UNIQUE,
        `m_i_network` varchar(64) NOT NULL DEFAULT ''  UNIQUE,
        `o_v_config_path` varchar(64) NOT NULL DEFAULT ''  UNIQUE,
        `server_address` varchar(64) NOT NULL DEFAULT ''  UNIQUE,
        `created` datetime NOT NULL,
        `updated` datetime NOT NULL
    );

create table `o_v_config` 
    -- --------------------------------------------------
    --  Table Structure for `github.com/adamwalach/openvpn-web-ui/models.OVConfig`
    -- --------------------------------------------------
    CREATE TABLE IF NOT EXISTS `o_v_config` (
        `id` integer NOT NULL PRIMARY KEY AUTOINCREMENT,
        `profile` varchar(64) NOT NULL DEFAULT ''  UNIQUE,
        `port` integer NOT NULL DEFAULT 0 ,
        `proto` varchar(255) NOT NULL DEFAULT '' ,
        `ca` varchar(255) NOT NULL DEFAULT '' ,
        `cert` varchar(255) NOT NULL DEFAULT '' ,
        `key` varchar(255) NOT NULL DEFAULT '' ,
        `cipher` varchar(255) NOT NULL DEFAULT '' ,
        `keysize` integer NOT NULL DEFAULT 0 ,
        `auth` varchar(255) NOT NULL DEFAULT '' ,
        `dh` varchar(255) NOT NULL DEFAULT '' ,
        `server` varchar(255) NOT NULL DEFAULT '' ,
        `ifconfig_pool_persist` varchar(255) NOT NULL DEFAULT '' ,
        `keepalive` varchar(255) NOT NULL DEFAULT '' ,
        `max_clients` integer NOT NULL DEFAULT 0 ,
        `management` varchar(255) NOT NULL DEFAULT '' 
    );

[ORM]2020/02/23 12:59:50  -[Queries/default] - [  OK / db.QueryRow /     0.1ms] - [SELECT `id`, `login`, `name`, `email`, `password`, `lastlogintime`, `created`, `updated` FROM `user` WHERE `name` = ? ] - `Administrator`
[ORM]2020/02/23 12:59:50  -[Queries/default] - [  OK /     db.Exec /   192.3ms] - [INSERT INTO `user` (`id`, `login`, `name`, `email`, `password`, `lastlogintime`, `created`, `updated`) VALUES (?, ?, ?, ?, ?, ?, ?, ?)] - `1`, `admin`, `Administrator`, `root@localhost`, `$s2$16384$8$1$WD0ICZsEdqCqyV8DKPtFravm$AtrYJW871T7OVCmofCqAoOWjydLvpXdzQc+oesNvSHk=`, `<nil>`, `2020-02-23 12:59:50.218804996 +0000 UTC`, `2020-02-23 12:59:50.218811163 +0000 UTC`
2020/02/23 12:59:50 [I] [models.go:65] Default admin account created 
[ORM]2020/02/23 12:59:50  -[Queries/default] - [  OK / db.QueryRow /     0.2ms] - [SELECT `id`, `profile`, `m_i_address`, `m_i_network`, `o_v_config_path`, `server_address`, `created`, `updated` FROM `settings` WHERE `profile` = ? ] - `default`
[ORM]2020/02/23 12:59:50  -[Queries/default] - [  OK /     db.Exec /   155.0ms] - [INSERT INTO `settings` (`profile`, `m_i_address`, `m_i_network`, `o_v_config_path`, `server_address`, `created`, `updated`) VALUES (?, ?, ?, ?, ?, ?, ?)] - `default`, `openvpn:2080`, `tcp`, `/etc/openvpn/`, `127.0.0.1`, `2020-02-23 12:59:50.412457518 +0000 UTC`, `2020-02-23 12:59:50.412465893 +0000 UTC`
2020/02/23 12:59:50 [I] [models.go:86] New settings profile created 
[ORM]2020/02/23 12:59:50  -[Queries/default] - [  OK / db.QueryRow /     0.4ms] - [SELECT `id`, `profile`, `port`, `proto`, `ca`, `cert`, `key`, `cipher`, `keysize`, `auth`, `dh`, `server`, `ifconfig_pool_persist`, `keepalive`, `max_clients`, `management` FROM `o_v_config` WHERE `profile` = ? ] - `default`
panic: reflect: call of reflect.Value.Int on string Value

goroutine 1 [running]:
reflect.Value.Int(...)
	/usr/local/go/src/reflect/value.go:986
github.com/adamwalach/openvpn-web-ui/vendor/github.com/astaxie/beego/orm.(*dbBase).collectFieldValue(0x1011998, 0x10188c0, 0x109f5f0, 0x5acf20, 0x1108230, 0x199, 0x60401, 0xa172b0, 0x579a50, 0x10f2260, ...)
	/go/src/github.com/adamwalach/openvpn-web-ui/vendor/github.com/astaxie/beego/orm/db.go:214 +0x194c
github.com/adamwalach/openvpn-web-ui/vendor/github.com/astaxie/beego/orm.(*dbBase).collectValues(0x1011998, 0x10188c0, 0x5acf20, 0x1108230, 0x199, 0x1094300, 0x10, 0x10, 0x1100100, 0x10dfd48, ...)
	/go/src/github.com/adamwalach/openvpn-web-ui/vendor/github.com/astaxie/beego/orm/db.go:92 +0x16c
github.com/adamwalach/openvpn-web-ui/vendor/github.com/astaxie/beego/orm.(*dbBase).Insert(0x1011998, 0x6d3348, 0x10c2020, 0x10188c0, 0x5acf20, 0x1108230, 0x199, 0xa172b0, 0x0, 0x0, ...)
	/go/src/github.com/adamwalach/openvpn-web-ui/vendor/github.com/astaxie/beego/orm/db.go:376 +0xb8
github.com/adamwalach/openvpn-web-ui/vendor/github.com/astaxie/beego/orm.(*orm).Insert(0x10ee010, 0x5b73d0, 0x1108230, 0x1018801, 0x5acf20, 0x1108230, 0x199)
	/go/src/github.com/adamwalach/openvpn-web-ui/vendor/github.com/astaxie/beego/orm/orm.go:166 +0x98
github.com/adamwalach/openvpn-web-ui/vendor/github.com/astaxie/beego/orm.(*orm).ReadOrCreate(0x10ee010, 0x5b73d0, 0x1108230, 0x5fe61a, 0x7, 0x0, 0x0, 0x0, 0x56, 0x2, ...)
	/go/src/github.com/adamwalach/openvpn-web-ui/vendor/github.com/astaxie/beego/orm/orm.go:149 +0x3b0
github.com/adamwalach/openvpn-web-ui/models.createDefaultOVConfig()
	/go/src/github.com/adamwalach/openvpn-web-ui/models/models.go:116 +0x7c
github.com/adamwalach/openvpn-web-ui/models.init.0()
	/go/src/github.com/adamwalach/openvpn-web-ui/models/models.go:18 +0x20

Read more comments on GitHub >

github_iconTop Results From Across the Web

Running x86 Software on a Raspberry Pi using Box86
In this guide, you will learn how you can run x86 software on a Raspberry Pi. To achieve this, we will use an...
Read more >
How to run x86 programs on the Raspberry Pi
How to run x86 programs on the Raspberry Pi · Step 1: Install Raspbian · Step 2: Enable the KMS GL driver ·...
Read more >
Run ARM VM's directly on raspbian - Raspberry Pi Forums
Hello everyone.. I have an rpi4 and I would love to run Aan RM-VM directly on raspbian (don't want to install esxi).
Read more >
Ever wondered what it takes to run Windows software on ARM ...
So this guide will walk you trough the steps required to execute Windows software with Wine on ARM devices running *nix. I specifically...
Read more >
What's in the Box86? More gaming possibilities on Pi!
Have you ever wanted to run something on your Raspberry Pi but it was only made for x86 processors? Box86 solves that and...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found