Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

can't have juci run up while following the instructions #26

Open
ajeecai opened this issue Apr 12, 2017 · 13 comments
Open

can't have juci run up while following the instructions #26

ajeecai opened this issue Apr 12, 2017 · 13 comments

Comments

@ajeecai
Copy link

ajeecai commented Apr 12, 2017

Hi,

This is my steps:

  1. Install all prerequisites including run "./ubuntu-bootstrap.sh" on a Ubuntu 14.04 LTS.
  2. git clone juci-openwrt-feed into this PC.
  3. Run ./build-uml-image.sh
  4. Setup tap0 as said in the readme in https://github.com/mkschreder/juci
  5. run "./openwrt-uml-vmlinux ubd0=openwrt-uml-ext4.img eth0=tuntap,tap0" in the output bin/uml
  6. change the IP setting after uml openwrt starts up, also as juci readme said.
  7. Using Firefox to access 192.168.2.100, the browser always show an endless rolling wheel with blank page.
  8. Check and find openwrt using original lighttpd, so ln -sf ../../../feeds/juci/libwebsockets libwebsockets && ln -sf ../../../feeds/juci/lighttpd lighttpd.
  9. go back to make openwrt manually with make V=99. When it is done, run it as step 5.
  10. Now it displays this page:

image

Click OK then another error comes up:

image

@muvarov
Copy link

muvarov commented Apr 20, 2017

I have the same. Reason is modified lighthttpd from juci layer is not compiled and OE version is shipped. That leads to ws:// IP/websocket/ url not working. And on web console FF says that it can not connect.

Modified version is PKG_VERSION:=1.4.33 but OpenWrt original has PKG_VERSION:=1.4.45, so shipped is original version. And it's not clear how to force new version to image.

@mkschreder
Copy link
Owner

mkschreder commented Apr 20, 2017 via email

@muvarov
Copy link

muvarov commented Apr 20, 2017

make it work finally and I think I understand how it works and lest at high level communication pieces together. In general looks good vlan settings are missing. And for some reason it excludes devices from bridge after some time. That wasn't happen with luci. orangerpcd takes 23% of cpu time which looks like too high.

@mkschreder
Copy link
Owner

mkschreder commented Apr 20, 2017 via email

@olesorensen
Copy link

Hi muvarov

I'm having same problem. How did you make it work?

@muvarov
Copy link

muvarov commented Apr 21, 2017

@mkschreder openwrt code does not support ps -T, at lest my build. Perf shows me that info:

    35.45%  [kernel]         [k] __getnstimeofday64         
     9.27%  [kernel]         [k] vector_swi                 
     6.73%  [kernel]         [k] sys_clock_gettime          
     5.95%  libc.so          [.] 0x00051f80                 
     4.59%  [kernel]         [k] clocksource_read_cycles    
     1.38%  [kernel]         [k] lock_acquire               
     0.97%  [kernel]         [k] __copy_to_user_std         
     0.89%  [kernel]         [k] _raw_spin_unlock_irqrestore
     0.78%  [kernel]         [k] lock_is_held_type          
     0.73%  [kernel]         [k] posix_clock_realtime_get   
     0.55%  [kernel]         [k] ret_fast_syscall           
     0.50%  libc.so          [.] 0x00028730                 
     0.47%  libc.so          [.] 0x00028748                 
     0.47%  [kernel]         [k] __do_softirq               
     0.46%  [kernel]         [k] lock_release               
     0.46%  [kernel]         [k] getnstimeofday64           
     0.40%  [kernel]         [k] clockid_to_kclock          
     0.37%  liblua.so.5.1.5  [.] 0x0000f7c8                 
     0.36%  libc.so          [.] 0x00028ab0                 
     0.31%  liblua.so.5.1.5  [.] 0x00009b48  

PKG_SOURCE_URL:=https://github.com/mkschreder/orangerpcd.git
PKG_SOURCE_VERSION:=0ba596e8d14362eea89442c0e0ccbc94ecd44e8f

@muvarov
Copy link

muvarov commented Apr 21, 2017

@olesorensen in general you need just to follow instructions and select target machine which you need. Do not forget to enable openssl lib and sha1 support in busy box. Also you need to check that feeds/juci/lighttpd with it's configs delivered to image and /www directory is full of scripts. Kernel have to support ipv6, if not orange-rpcd will show big warn that it can not bind to socket, but might be it continuous work with ipv4. So if you compiled everything ok (in many places of juci feed you need to update to the latest git) then you need to check what all pieces are set and working - /www files, telnet to rpc socket, httpserver with configs.

@mkschreder
Copy link
Owner

mkschreder commented Apr 21, 2017 via email

@ajeecai
Copy link
Author

ajeecai commented Apr 23, 2017

Looks like things were not done correctly at the time I posted this question, today I retried with on Ubuntu 14.04, running ./build-uml-image.sh from scratch, without any interference the uml image is built. Running up this image gives me the same error as said, but I modified the orangerpcd with 0ba596e, and built it again, this time I got it running well :) Thanks @muvarov . I suggest to update the repository, a new comer may feel frustrated if not easy to set it up.

I recalled hard, the problem I met may be that I run it over the latest openwrt from head of https://github.com/openwrt/openwrt.git, instead of 15.05 version. Then I tried it again and found I had to figure out some compiling error, after I went through it (also update orangerpcd of course), the GUI doesn't show popup error but also there are some abnormal rolling wheels. So looks like current code doesn't match latest openwrt.

Another question for @mkschreder , is there any plan to update angularjs to 2.0 since it becomes mainstream now.

Thanks

@muvarov
Copy link

muvarov commented Apr 24, 2017

@mkschreder looks like some internal bug. After reboot cpu usage is very small and it's hard to capture conditions where I saw that. Some time see javascript errors but in general it works. Do you develop support juci alone or there is some community?

@djhamzas
Copy link

djhamzas commented Apr 24, 2017 via email

@mkschreder
Copy link
Owner

mkschreder commented Apr 24, 2017 via email

@mkschreder
Copy link
Owner

mkschreder commented Apr 24, 2017 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants