[solved] No connection to web interface using Mac High Sierra

Hi - I received my Mod Duo yesterday. I am unable to access the web UI from http://192.168.51.1/ or http://modduo.local . Chrome does redirect me to http://192.168.51.1/?v=1.5.0.568 - maybe that is the current version I’m running. I can ssh to the server and ping it, but not web UI. I can ping it.

I’m running MacOSX High Sierra 10.13.4. It’s a MacBook Pro (Retina, 15-inch, Late 2013). I see that Duo Ethernet is connected in Network prefs. I tried renewing the DHCP lease but that didn’t help. No proxy settings, default bypass: *.local, 169.254/16.

I am also connected to my local wifi network. I tried connecting after disconnecting from my wifi network, but that didn’t help.

I’ve tried connecting w/ Chrome, Safari, and Firefox without success.

Any tips?

Cheers -

Chris

Are you connecting via USB?

Connection to the computer is via USB and not Ethernet.

I’m only on regular Sierra - how’s the view up there? I checked and I am running v1.5.524. I have occasionally seen update notifications for the .536 version but haven’t updated (or tried once and it didn’t succeed).

Does Chrome display anything after the redirect? As a high-level smoke test, you can check if the UI process is running:

ssh root@192.168.51.1 "ps aux | grep mod-ui"

and you should see similar to this in the output:

root 212 3.1 10.3 119240 106964 ? S<Lsl 00:00 0:17 /usr/bin/python3 /usr/bin/mod-ui

If you’re feeling adventurous you could try installing the .524 version. Here is a link to the image: http://download.moddevices.com/releases/modduo/modduo-v1.5.0.524.tar and there are instructions I think on the Wiki about how to install.

Yes, USB. The Network prefs are a tad confusing - it displays “Duo Ethernet” but I’m actually connected via USB. I think it’s because the USB is emulating an Ethernet device.

Thanks a lot for the debugging help!

Chrome dos not display anything after the redirect. The error message is ERR_CONNECTION_REFUSED.

Good idea re: UI process; yes, it is running.

root      2747  106  1.3  23840 14352 ?        R<s  00:07   0:02 /usr/bin/python3 /usr/bin/mod-ui

I’ll give one of the updated versions to try.

A little update: seems like mod-ui keeps rebooting:

[root@modduo ~]# ps aux|grep ui
root      3378 62.6  1.7  29988 18424 ?        R<s  00:09   0:03 /usr/bin/python3 /usr/bin/mod-ui
root      3405  0.0  0.0   2168   556 pts/0    S+   00:09   0:00 grep ui
[root@modduo ~]# ps aux|grep ui
root      3577 70.2  1.6  28520 17388 ?        S<sl 00:09   0:02 /usr/bin/python3 /usr/bin/mod-ui
root      3603  0.0  0.0   2168   556 pts/0    S+   00:09   0:00 grep ui
[root@modduo ~]# ps aux|grep ui
root      3644 70.5  1.6  28520 17388 ?        S<sl 00:10   0:02 /usr/bin/python3 /usr/bin/mod-ui
root      3670  0.0  0.0   2168   556 pts/0    S+   00:10   0:00 grep ui

I tried to launch it manually, here is the error message. I figured it would clash with one of the re-apwning mod-ui processes, and it did :slight_smile:

[root@modduo ~]# /usr/bin/python3 /usr/bin/mod-ui
ERROR: Failed to open HMI serial port, error was:
[Errno 2] could not open port /dev/ttyUSB0: [Errno 2] No such file or directory: '/dev/ttyUSB0'
Using HMI => False
ERROR: Cannot create data dir '/dados'
Traceback (most recent call last):
  File "/usr/bin/mod-ui", line 9, in <module>
    load_entry_point('mod==0.99.8', 'console_scripts', 'mod-ui')()
  File "/tmp/mbs/modduo/rootfs/target/usr/lib/python3.4/site-packages/mod/webserver.py", line 1913, in run
  File "/tmp/mbs/modduo/rootfs/target/usr/lib/python3.4/site-packages/mod/webserver.py", line 1889, in prepare
  File "tmp/mbs/modduo/rootfs/target/usr/lib/python3.4/site-packages/tornado/web.py", line 1825, in listen
  File "tmp/mbs/modduo/rootfs/target/usr/lib/python3.4/site-packages/tornado/tcpserver.py", line 126, in listen
  File "tmp/mbs/modduo/rootfs/target/usr/lib/python3.4/site-packages/tornado/netutil.py", line 196, in bind_sockets
OSError: [Errno 98] Address already in use
jack client deactivated NOT
[root@modduo ~]#

I figured out how to kill the mod-ui service - systemctl stop mod-ui.service - and tried launching the command /usr/bin/python3 /usr/bin/mod-ui. Here is the output:

[root@modduo test]# /usr/bin/python3 /usr/bin/mod-ui
ERROR: Failed to open HMI serial port, error was:
[Errno 2] could not open port /dev/ttyUSB0: [Errno 2] No such file or directory: '/dev/ttyUSB0'
Using HMI => False
ERROR: Cannot create data dir '/dados'
Cannot read socket fd = 11 err = Connection reset by peer
CheckRes error
Could not read result type = 23
Cannot open mod-ui client
JackShmReadWritePtr1::~JackShmReadWritePtr1 - Init not done for -1, skipping unlock
JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock
JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock
WARNING:tornado.general:Connect error on fd 11: ECONNREFUSED
WARNING:tornado.general:Connect error on fd 12: ECONNREFUSED
Control Chain initialized
Host failed to initialize, is the backend running?
jack client deactivated NOT
jack client deactivated NOT

@chrisekelley I’m sorry to hear you’re having those issues with a new Duo.
Let me try to help you. Try downloading the latest image here then do a full re-image.

Steps are:

1 - Turn off your Duo
2 - Connect your USB cable
3 - Hold the left know + left footswitch
4 - Plug the power cable on
5 - Release the switches after you see the Duo light up

The Duo will boot and automatically a storage device will show up in your computer. Copy the .tar file to it and eject it.

Wait a couple minutes and your Duo will go through the re-image process.
If you still see an issue after that, then try running one more time.

If you still see issues after doing it twice let me know.

Cheers,
Alex.

@acunha - thanks for the advice; unfortunately, after the first time of applying the latest image, the web-ui still would not display, and the Network prefs/Duo Ethernet was no longer connected. I tried to apply it a second time, but the storage device would never show. I swapped USB cables, and still no love. I’ve downloaded the files to re-image and will try to start fresh again.

So here is the log of re-imaging my Mod duo:

./bootfix.osx -w ~/Downloads/modduo-latest-reset-image.raw
Speed = 12 Mbps
Start stage 1
URB 5
AWUSBFEX soc=001651 (A20) fw=01 mode=fel type=D len=08 addr=7e00
Detected A20 (ID 0x1651)
URB 14
AWUSBFEX soc=001651 (A20) fw=01 mode=fel type=D len=08 addr=7e00
URB 23
URB 32
AWUSBFEX soc=001651 (A20) fw=01 mode=fel type=D len=08 addr=7e00
URB 41
URB 50
AWUSBFEX soc=001651 (A20) fw=01 mode=fel type=D len=08 addr=7e00
URB 63
URB 72
URB 77
Sending sun7i/fes_1-1.fex...done
URB 87
URB 96
URB 105
URB 114
Sending sun7i/fes_1-2.fex...done
URB 120
URB 129
URB 138
1024MB RAM detected
URB 147
URB 153
URB 165
URB 174
Sending sun7i/fes.fex...done
URB 192
Sending sun7i/fes_2.fex...done
URB 198
End of stage 1
Re-opening......done
Speed = 480 Mbps
Start stage 2
URB 5
AWUSBFEX soc=001610 (fes) fw=01 mode=fes type=D len=08 addr=7e00
URB 14
AWUSBFEX soc=001610 (fes) fw=01 mode=fes type=D len=08 addr=7e00
URB 24
URB 32
AWUSBFEX soc=001610 (fes) fw=01 mode=fes type=D len=08 addr=7e00
URB 42
URB 51
URB 60
Sending sun7i/magic_de_start.fex...done
URB 69
Sending sun7i/fed_nand.axf...done
URB 123
Sending sun7i/magic_de_end.fex...done
URB 132
URB 135
URB 140
..Wait..done
URB 150
URB 153
Max NAND key = 15466496
File sectors = 442368
Partition sectors = 442368
Sending -snip-/Downloads/modduo-latest-reset-image.raw...done
0205 sent
URB 113241
Sending sun7i/boot1_nand.fex...done
URB 113303
URB 113316
URB 113322
Sending sun7i/magic_de_start.fex...done
URB 113331
Sending sun7i/update_boot1.axf...done
URB 113384
Sending sun7i/magic_de_end.fex...done
URB 113394
URB 113397
URB 113402
..Wait..done
URB 113502
URB 113505
updateBootxOk000
URB 113514
Sending sun7i/magic_de_start.fex...done
URB 113523
Sending sun7i/boot0_nand.bin...done
URB 113532
Sending sun7i/magic_de_end.fex...done
URB 113541
URB 113547
URB 113559
Sending sun7i/magic_de_start.fex...done
URB 113565
Sending sun7i/update_boot0.axf...done
URB 113610
Sending sun7i/magic_de_end.fex...done
URB 113619
URB 113622
URB 113628
..Wait..done
URB 113655
URB 113658
updateBootxOk000
End of stage 2
All done

Continuing from the Factory reset instructions:

  • Power off and on the MOD Duo (by replugging the power cable)
  • Wait until its LEDs turn blue, after around 30 seconds. If the LEDs don’t light up after one minute, replug the power cable once again

No blue lights the first time. Replugged. No blue lights again. Gonna wait ten minutes and see if anything happens, then i’ll try to re-image again.

@ricardocrudo Anything else you can help @chrisekelley with?

Re-imaging again. No blue/green/red lights - but the display is showing

installing restore
installing system
installing user data
updating controller
please wait

It’s been in please wait for about 18 minutes.

OK, it booted up, now it is at version 1.4.3.488

Gonna try to do the upgrade again.

Can no longer upgrade - When I follow these steps:

1 - Turn off your Duo
2 - Connect your USB cable
3 - Hold the left know + left footswitch
4 - Plug the power cable on
5 - Release the switches after you see the Duo light up

The Duo boots but I do not see a storage device in the Finder.

I’ve tried this several times.

Is it possible to do a command-line upgrade - similar to the re-imaging using bootfix.osx? 1.4.3.488 is certainly not working for my mbp.

@chrisekelley Please, download this image: http://download.moddevices.com/releases/factory/modduo-latest-factory-image.raw and proceed using the bootfix.osx command as you did before. After the installing is done, i.e.: LEDs are green, power the Duo off and on again, run the command: ssh root@192.168.51.1 "rm /root/need-self-test && sleep 2 && sync". Finally, power off / on again and check if your Duo is working.

I downloaded and installed the image. It failed the first time, worked the second. I was unable to access http://modduo.local/?v=1.5.0.568 or http://192.168.51.1/?v=1.5.0.568.

I rebooted my mbp again but still no success reaching the web-ui.

When I ssh in and look at ps ax|grep ui, I get a different pid each time.

[root@modduo ~]# ps ax|grep ui
 1957 pts/0    S+     0:00 grep ui
 1958 ?        Ds     0:00 (d-ui.run)
[root@modduo ~]# ps ax|grep python
  242 ?        Ss     0:01 /usr/bin/python3 /usr/sbin/bt-pan
 2024 ?        R<s    0:03 /usr/bin/python3 /usr/bin/mod-ui
 2051 pts/0    S+     0:00 grep python
[root@modduo ~]# ps ax|grep ui
 2059 ?        R<s    0:03 /usr/bin/python3 /usr/bin/mod-ui
 2088 pts/0    S+     0:00 grep ui
[root@modduo ~]# ps ax|grep ui
 2094 ?        R<s    0:01 /usr/bin/python3 /usr/bin/mod-ui
 2113 pts/0    S+     0:00 grep ui
[root@modduo ~]# ps ax|grep ui
 2094 ?        R<s    0:03 /usr/bin/python3 /usr/bin/mod-ui
 2123 pts/0    S+     0:00 grep ui
[root@modduo ~]# ps ax|grep ui
 2131 ?        R<s    0:02 /usr/bin/python3 /usr/bin/mod-ui
 2154 pts/0    S+     0:00 grep ui
[root@modduo ~]# ps ax|grep ui
 2131 ?        Z<s    0:03 [mod-ui] <defunct>
 2167 pts/0    S+     0:00 grep ui
[root@modduo ~]# ps ax|grep ui
 2168 ?        R<s    0:01 /usr/bin/python3 /usr/bin/mod-ui
 2187 pts/0    S+     0:00 grep ui
[root@modduo ~]# ps ax|grep ui
 2168 ?        S<sl   0:02 /usr/bin/python3 /usr/bin/mod-ui
 2196 pts/0    S+     0:00 grep ui
[root@modduo ~]# ps ax|grep ui
 2168 ?        R<s    0:03 /usr/bin/python3 /usr/bin/mod-ui
 2200 pts/0    S+     0:00 grep ui

I’d like to try to curl localhost but curl is not available.

please, let me know the output of this command: ps aux | grep jack

[root@modduo ~]# ps aux | grep jack
root      5599 29.5  8.6 106260 89880 ?        S<Lsl 00:12   0:00 /usr/bin/jackd -R -P 80 -C /etc/jack-internal-session.conf -d alsa -d hw:MODDUO -r 48000 -p 128 -n 2 -X raw
root      5641  0.0  0.0   2168   560 pts/0    S+   00:12   0:00 grep jack

Please run the command dmesg, paste the output in the https://pastebin.com/ and send me the link.

https://pastebin.com/64eZPxEa