Image Builder issues

Why is not working? What errors do you receive?

Which OS and version are you using?

are you able to see

https://git.openwrt.org/openwrt/openwrt.git/

with your browser?

@Pippo, nope - waiting timeout.
Tried right now latest Cromium and FF - on Ubuntu Mate 18.04

console brings the same:

git clone https://git.openwrt.org/openwrt/openwrt.git
Cloning to «openwrt»…
fatal: unable to access 'https://git.openwrt.org/openwrt/openwrt.git/': Failed to connect to git.openwrt.org port 443: Connection timeout

Tried two different providers, BTW.

@jow
Please see above + after I created feeds.conf.default manually (downloaded from here) and finally updated feeds (gave some errors - like lucy was'n found therefore there is /feeds/luci.tmp/ with one file and no /feeds/luci with plenty of them as I guess it supposed to be), I get

~/openwrt.18.06$ ./scripts/feeds install -a
make: *** No rule to make target  «prepare-tmpinfo».  Stop.
Cannot open './tmp/.packageinfo': No such file or directory
Can't open file './tmp/.targetinfo': No such file or directory
Ignoring feed 'luci' - index missing
Ignoring feed 'telephony' - index missing
Installing all packages from feed packages.
Installing all packages from feed luci.
Ignoring feed 'luci' - index missing
Installing all packages from feed routing.
Installing all packages from feed telephony.
Ignoring feed 'telephony' - index missing
Installing all packages from feed management.

You don't use feeds with the imagebuilder, everything is already precompiled and the IB uses opkg repositories directly. Just run make image.

This way it works! Thank you.
Seems that I messed up with Quick start howto somehow, but these two dev tutors are very diferent. I was attracted by menuconfig there - which doesn't exist in second howto
.
One more question: how can I find packages descriptions?
My goal is to exclude unnecessary packages (ipv6 i.e.) in favor of needed ones (DDNS to name first) - since Flash in this router is only 4MB..

e.g. via the packages table: https://openwrt.org/packages/table/start

Thank you. Sorry for no being more specific, I mean - packages list included in default image build, what can be removed. Probably I was looking for wrong keywords, but couldn't find such list yet

https://openwrt.org/docs/guide-user/additional-software/saving-space

Thank you VERY much!

Sorry for disturbing again guys, but new isues(

Steps taken:

  1. make image PROFILE=tl-wr740n-v4 works but doesn't let include/exclude packages: once I add in command PACKAGES="..." variable it throws plenty of errorors for every package mentioned there like "luci-app-ddns not being a target" and therefore compiles nothing
  2. Ok, I found workaround of editing my router profile in .targetinfo, now entry looks like
Target-Profile: DEVICE_tl-wr740n-v4
Target-Profile-Name: TP-LINK TL-WR740N/ND v4
Target-Profile-Packages: luci-app-ddns ddns-scripts -opkg uhttpd uhttpd-mod-ubus libiwinfo-lua luci-base luci-app-firewall luci-mod-admin-full luci-theme-bootstrap -ppp -ppp-mod-pppoe -ip6tables -odhcp6c -kmod-ipv6 -kmod-ip6tables
Target-Profile-Description:
Build firmware images for TP-LINK TL-WR740N/ND v4
@@

This way it works and I can flash compiled sysupgrade to router via luci

  1. But when I get in luci to Services/DDNS I get in browser this error:

Failed to execute cbi dispatcher target for entry '/admin/services/ddns'.
The called action terminated with an exception:
/usr/lib/lua/luci/controller/ddns.lua:107: attempt to index field '?' (a nil value)
stack traceback:
	/usr/lib/lua/luci/controller/ddns.lua:107: in function 'service_version'
	/usr/lib/lua/luci/controller/ddns.lua:117: in function 'service_ok'
	/usr/lib/lua/luci/model/cbi/ddns/overview.lua:20: in function 'func'
	/usr/lib/lua/luci/cbi.lua:66: in function 'load'
	/usr/lib/lua/luci/dispatcher.lua:838: in function </usr/lib/lua/luci/dispatcher.lua:832>

My router is TL-WR740N v4.27, so according to its page 18.06.1 is working version - and I'm using IB 18.06.1 too.
The only thing I can suspect is that mention here:

**Inside OpenWrt two package versions are available:**
up to Barrier Breaker 14.07 it's  *ddns-scripts*  version 1.x
since Chaos Calmer 15.05 it's  *ddns-scripts*  version 2.x with IPv6 support and many other extensions
the corresponding LuCI application  *luci-app-ddns*  is also available.

May it be that IB pulls wrong version (latest and greatest 2.x CC one instead of needed BB 1.x)?
Thank you in advance for any help

I suggest you try to figure out why you can't connect to https://git.openwrt.org/openwrt/openwrt.git/. The same problem may cause other issues as well, and I think it is more likely that it will work if you can follow the usual recipe for building. Alternatively, please post the errors you get when you run make image PROFILE.

The thing is that my Ubuntu is localized so all errors in Russian - I have to translate them to paste here and there are many of them
I googled a lot around and finally found topic (sorry, it's in Russian too) describing the same issue - folks from Russia can't access git.openwrt. Seems that it's consequesnce of damned Telegram war..((
I'll try TOR and let you know results, thank you

You can also use github:
https://github.com/openwrt/openwrt.git

But like I said to you above, the discussion here is mixed between the

  • use the simple "image builder" to cook up the firmware from ready compiled packages.
  • full toolchain, where you need git clone and feeds etc.

You can't mix 18.06 firmware and packages from four years older BB14.07
A 18.06 IB should pull 18.06 packages.

That was my intention and that's what I did (AFAIU) - downloaded IB and tried to follow howto.
But met those issues:

  1. PACKAGES var didn't work (no idea why)
  2. ddns added to image by workaround above didn't work on device - while image compiled with no errors

I think using a VPN would be the only choice for OP in this case because censorship firewalls. Then OP can use everything as a normal person who has access to Openwrt git repo.

Guys, TOR brings no good - ddns service in luci still shows the same error as above.
Here is building console output
.
But at least I found the root of issue with adding PACKAGES var to command:
in saving space howto var example uses these quotation marks - “ (look like italic ones), I pasted example in Pluma (default text editor in Mate), then edited and copypasted to console - they stay kinda italic, hard to notice..
Once I replaced them to usual "vertical" ones - it works. Please let know this issue to page mantainer, probably someone else will bump in the same stuff...

But main issue isn't resolved - why ddns doesn't work in image giving this error in luci?

Failed to execute cbi dispatcher target for entry '/admin/services/ddns'. The called action terminated with an exception: /usr/lib/lua/luci/controller/ddns.lua:107: attempt to index field '?' (a nil value) stack traceback: /usr/lib/lua/luci/controller/ddns.lua:107: in function 'service_version' /usr/lib/lua/luci/controller/ddns.lua:117: in function 'service_ok' /usr/lib/lua/luci/model/cbi/ddns/overview.lua:20: in function 'func' /usr/lib/lua/luci/cbi.lua:66: in function 'load' /usr/lib/lua/luci/dispatcher.lua:838: in function &lt;/usr/lib/lua/luci/dispatcher.lua:832&gt;

Thank you in advance for any tips.

The luci app based on 18.06 dies here:

ddns

To fix that, please do not remove opkg in your image.