that all looks fine. Do a reboot, get on the board and run
journalctl --boot -fu bela_ide -n 3000
and see if that tells you something about what's wrong with the IDE.
that all looks fine. Do a reboot, get on the board and run
journalctl --boot -fu bela_ide -n 3000
and see if that tells you something about what's wrong with the IDE.
still doesn't load. Is port 80 right?
journalctl --boot -fu bela_ide -n 3000
-- Logs begin at Thu 2016-11-03 17:16:43 UTC. --
Mar 17 00:21:21 bela systemd[1]: Started Bela IDE Launcher.
Mar 17 00:21:34 bela node[437]: starting IDE from /root/Bela/
Mar 17 00:21:35 bela node[437]: setting pwd timeout
Mar 17 00:21:35 bela node[437]: listening on port 80
yup. How are you trying to reach the IDE in the browser?
giuliomoro I've tried http://bela.local/
192.168.7.2
and 192.168.6.2
.
running out of ideas ...
what do you get running curl 192.168.7.2
from you host?
here's some new info, I just tried to git clone the c language server while ssh'd and it seems I no longer have access to the internet on the unit:
git clone --depth=1 --recursive https://github.com/MaskRay/ccls
Cloning into 'ccls'...
fatal: unable to access 'https://github.com/MaskRay/ccls/': Could not resolve host: github.com
this is what my /etc/network/interfaces
file looks like:
1 # This file describes the network interfaces available on your system
2 # and how to activate them. For more information, see interfaces(5).
3
4 # USB RNDIS gadget (Windows / Linux compatible)
5 auto usb0
6 iface usb0 inet dhcp
7
8 # iface usb0 inet static
9 # address 192.168.6.2
10 # netmask 255.255.255.0
11 # network 192.168.6.0
12
13 #�[m+USB NCM gadget (macOS / Linux compatible)
14 auto usb1
15 iface usb1 inet dhcp
16 # iface usb1 inet static
17 # address 192.168.7.2
18 # netmask 255.255.255.0
19 # network 192.168.7.0
20
21 # The loopback network interface
22 auto lo
23 iface lo inet loopback
24
25 # Ethernet
26 allow-hotplug eth0
27 iface eth0 inet dhcp
28 # Example to keep MAC address between reboots
29 #hwaddress ether DE:AD:BE:EF:CA:FE
30
31 # WiFi Example
32 allow-hotplug wlan0
33 iface wlan0 inet dhcp
34 wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf
35 # The lines above should work if you have a wifi interface called wlan0.
36 # To see the actual name of your interface, run
37 # ip a
38 # and identify it among the ones listed then replace `wlan0` above with the name of your interface
39 # To provide credentials to your network, run the following at the command line:
40 # wpa_passphrase YourNetworkName YourNetworkPassword >>/etc/wpa_supplicant/wpa_supplicant.conf
41 # then:
42 # ifdown wlan0; ifup wlan0
43 # where `wlan0` is the name of your interface as found above.
44
This was working before
curl 192.168.7.2
curl: (7) Failed to connect to 192.168.7.2 port 80 after 75015 ms: Network is unreachable
I'm also seeing errors when I use some basic terminal commands:
ls
channel 16: open failed: administratively prohibited: open failed
channel 16: open failed: administratively prohibited: open failed
If you have network sharing enabled for the board, then 192.168.7.2 should no longer work and you shouldn't try to force it with ifconfig/ipconfig. Rather, see if you can re-enable internet sharing from the host.
nickcamillo I'm also seeing errors when I use some basic terminal commands:
ls
channel 16: open failed: administratively prohibited: open failed
channel 16: open failed: administratively
This I've never seen. Are you out of space?
giuliomoro I don't see why I would be. I've got a few megabytes of audio recorded and I've built the latest vim from source but that's about it. Does this seem reasonable?
df -H
Filesystem Size Used Avail Use% Mounted on
/dev/root 3.6G 2.7G 710M 80% /
devtmpfs 256M 0 256M 0% /dev
tmpfs 256M 0 256M 0% /dev/shm
tmpfs 256M 9.7M 246M 4% /run
tmpfs 5.3M 4.1k 5.3M 1% /run/lock
tmpfs 256M 0 256M 0% /sys/fs/cgroup
/dev/mmcblk1p1 71M 4.3M 67M 7% /mnt/boot
As far as my mac is concerned, the bela has internet sharing enabled. I disabled and re-enabled it but I still can't git clone from ssh and the ide still wont load.
run ip a
on the board?
ip a
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
2: eth0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc mq state DOWN group default qlen 1000
link/ether f4:b8:98:ae:69:4c brd ff:ff:ff:ff:ff:ff
3: usb0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
link/ether be:1a:98:ae:69:4e brd ff:ff:ff:ff:ff:ff
inet6 fe80::bc1a:98ff:feae:694e/64 scope link
valid_lft forever preferred_lft forever
4: usb1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
link/ether be:1a:98:ae:69:51 brd ff:ff:ff:ff:ff:ff
inet6 fe80::bc1a:98ff:feae:6951/64 scope link
valid_lft forever preferred_lft forever
Hmm it doesn't have an IPv4 on usb1
. On the board try:
echo > /var/lib/dhcp/dhclient.leases
dhclient usb1
possibly followed by a stop-sharing/start-sharing on the host.
didn't work. I am noticing that in the internet sharing ilst there are two entries for bela now, maybe because of also plugging in the bela mini at some point?
yes. Try sharing with both.
No luck
If it was just the IDE that wasn't working I'd at least be able to work in vim on-device, but without internet I can't configure a language server or use git
Scroll through that list a bit more , it may be that there are more "bela" entries?
Try removing /Library/Preferences/SystemConfiguration/preferences.plist
on your computer after making a copy of it, then reboot and enable sharing again
Deleting the preferences list allowed me to enable Bela again, but it still has no connection