OpenWrt Forum Archive

Topic: New webgui for OpenWRT

The content of this topic has been archived between 9 Apr 2018 and 20 Apr 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

kixx09 wrote:

Hello,

trying to install on my Buffalo with OpenWRT BB.
Followed the how-to, built with no problems, using https://github.com/mkschreder/juci-openwrt-feed.git

However I had custom uhttp config for luci and lua as below:

config uhttpd 'main'
    list listen_http '0.0.0.0:80'
    list listen_https '0.0.0.0:3601'
    option redirect_https '0'
    option home '/www'
    option rfc1918_filter '0'
    option max_requests '12'
    option max_connections '100'
    option cert '/etc/ssl/xxxxxxxxxx.bundle.crt'
    option key '/etc/ssl/xxxxxxxx.key'
#    option cgi_prefix '/cgi-bin'
    option lua_prefix '/luci'
        option lua_handler '/usr/lib/lua/luci/sgi/uhttpd.lua'
    option script_timeout '60'
    option network_timeout '30'
    option http_keepalive '20'
    option tcp_keepalive '1'
    option ubus_prefix '/ubus

and Juci not working with that, showing the page like here: http://screencloud.net/v/pW7K when I open the http://router-ip/

Is it possible to get working uhttpd config for Juci?

Thank you.

Yes you can make it work. I think your problem is that you are using BB and since BB does not nativly support overriding packages in core using feed versions, you are probably not getting the right software built. If you use CC then overriding packages is easy using the -f flag to the ./scripts/feeds script.

I have now updated main post to reflect the necessity to use -f flag. It is very important.

(Last edited by mkschreder on 3 Feb 2016, 12:21)

Update: Latest version of juci that will be part of Inteno's official IOPSYS v3.5 release, now supports configuration for most of the protocols available in OpenWRT netifd.

JUCI Network Configuration

Hello mkschreder.

I tried to build a firmware from your branch. And i get the following error before the build fails:

Checking out files from the git repository...
Cloning into 'rpcd'...
remote: Counting objects: 647, done.
remote: Compressing objects: 100% (5/5), done.
remote: Total 647 (delta 23), reused 21 (delta 21), pack-reused 621
Receiving objects: 100% (647/647), 137.62 KiB | 0 bytes/s, done.
Resolving deltas: 100% (422/422), done.
Checking connectivity... done.
fatal: reference is not a tree: 72048bb2c8c23fbb57c7d9e6de4ab7373036da5a
Makefile:94: recipe for target '/home/incore/juciwrt/dl/rpcd-2015-01-10-72048bb2c8c23fbb57c7d9e6de4ab7373036da5a.tar.gz' failed

Also i have tried to figure out what the problem was, but it seems i cannot resolve it myself.
The WebGUI looks very nice and i want to try it.

CRD

That looks like your feed is out of date. Can you post a ticket at https://github.com/mkschreder/juci.git specifying the target you want an image for and I'll build you an image for that target. I can also give you specific instructions then on how to build it yourself..

hello, I'm trying to compile a trunk version of openwrt with jucy, I followed your instructions step by step

    Add official JUCI feed to your feeds.conf.default src-git-full juci https://github.com/mkschreder/juci-feed.git

    Update and install the feed (with -f to force overrides) ./scripts/feeds update juci ./scripts/feeds install -f -p juci -a

    select juci-full to build all packages currently supported on OpenWRT.

    CONFIG_PACKAGE_juci-full=y

    run "make defconfig" to select all dependencies.

    BUILD!



but when I type make menuconfig I get nowhere the opportunity to select jucy packages!

sorry for my english

Compiled for trunk using feed https://github.com/mkschreder/juci-openwrt-feed.git successfully, but accessing the web interface shows a blank page. Title JUCI and favicon shows.

(Last edited by arokh on 11 Mar 2016, 13:46)

If you see blank page, it could be that your index.html was not built correctly and is empty. Otherwise check browser console (right click > inspect element > console) for any apparent problems. There is a lot of useful info printed into the browser console which makes debugging easy. You can even do simple prototyping by running javascript directly in the console...

mkschreder thanks for your project!
But can you say what version of Openwrt i need to compile to use with Juci?
I compiled all versions with all of juci feeds and have no luck....
I got empty HTML with Juci favicon or only tree...
Tried about 20 times at all (use your manual here and at your git too)
Thanks for answer

PS. Compiling version for x86 and x86_64

(Last edited by cfcnightmare on 16 Mar 2016, 18:58)

mkschreder wrote:

JUCI is a new webgui for OpenWRT. Originally developped for IOPSYS, you can now try juci on OpenWRT.

Will it run on LEDE too? Any experience already?

Thanks mkschreder,

I am having latest CC(15.05) openwrt I am trying to add your juci in my openwrt. For making this, i  did below steps
a.)
First i pulled your patches for uhttpd, rpcd and ubus packages from your openwrt tree    https://github.com/mkschreder/juciwrt.git and applied to my local tree.

b.)
Then i added https://github.com/mkschreder/juci-open … v2.16.02(I was getting some Java build errors,  exceptions with v1.15.11, so i took next v2.16.02) to feeds and build went fine.

c.)
when i open 192.168.1.1 i can't see the login page, i tried to load reboot.html page that was loaded.
Am i missing anything to get the login page. Can you please help me on this.

Thanks

>>>>
I tried with your openwrt tree  https://github.com/mkschreder/juciwrt.git  and tried to buld
a.) First i got rpcd download problem, i updated the SHAA to Aug-2015.
b.) after that i got below build errors:

Compiling JS bin/www/js/99-translations.js..
Compiling CSS bin/www/css/01-juci.css..
Exception in thread "main" java.lang.reflect.InvocationTargetException
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:622)
        at com.yahoo.platform.yui.compressor.Bootstrap.main(Bootstrap.java:21)
Caused by: java.lang.StackOverflowError


Am i missing anything ? Can you please help on this.

Thanks,

(Last edited by contactjangir on 11 Jul 2016, 17:39)

The discussion might have continued from here.