SG-1100 no console, SSH, GUI access
-
I have a new SG-1100, after a reboot last night, I lost all connectivity to the device. I have never been able to get the console working on a windows system with the prolific drivers (Code 10 or Code 43) errors. I decided to connect to my linux system and see if could at least get to the console.
Here is the system log when I connect the device:
Apr 20 08:04:59 archlinux kernel: usb 1-2: new full-speed USB device number 27 using xhci_hcd Apr 20 08:04:59 archlinux kernel: usb 1-2: Device not responding to setup address. Apr 20 08:04:59 archlinux kernel: usb 1-2: Device not responding to setup address. Apr 20 08:04:59 archlinux kernel: usb 1-2: device not accepting address 27, error -71 Apr 20 08:04:59 archlinux kernel: usb 1-2: new full-speed USB device number 28 using xhci_hcd Apr 20 08:05:00 archlinux kernel: usb 1-2: New USB device found, idVendor=067b, idProduct=2303, bcdDevice= 4.00 Apr 20 08:05:00 archlinux kernel: usb 1-2: New USB device strings: Mfr=1, Product=2, SerialNumber=0 Apr 20 08:05:00 archlinux kernel: usb 1-2: Product: USB-Serial Controller D Apr 20 08:05:00 archlinux kernel: usb 1-2: Manufacturer: Prolific Technology Inc. Apr 20 08:05:00 archlinux kernel: pl2303 1-2:1.0: pl2303 converter detected Apr 20 08:05:00 archlinux kernel: usb 1-2: pl2303 converter now attached to ttyUSB0 Apr 20 08:05:00 archlinux mtp-probe[1901]: checking bus 1, device 28: "/sys/devices/pci0000:00/0000:00:14.0/usb1/1-2" Apr 20 08:05:00 archlinux mtp-probe[1901]: bus: 1, device: 28 was not an MTP device Apr 20 08:05:00 archlinux mtp-probe[1918]: checking bus 1, device 28: "/sys/devices/pci0000:00/0000:00:14.0/usb1/1-2" Apr 20 08:05:00 archlinux mtp-probe[1918]: bus: 1, device: 28 was not an MTP device Apr 20 08:05:00 archlinux systemd[1]: Starting Manage ttyUSB0 for GPS daemon... Apr 20 08:05:00 archlinux gpsdctl[1923]: gpsd_control(action=add, arg=/dev/ttyUSB0) Apr 20 08:05:00 archlinux gpsdctl[1923]: reached a running gpsd Apr 20 08:05:00 archlinux systemd[1]: Started Manage ttyUSB0 for GPS daemon.
Here is the system log output when I connect with screen:
Apr 20 08:10:37 archlinux kernel: pl2303 1-2:1.0: pl2303_vendor_write - failed to write [0008]: -71 Apr 20 08:10:37 archlinux kernel: pl2303 1-2:1.0: pl2303_vendor_write - failed to write [0009]: -71 Apr 20 08:10:37 archlinux kernel: pl2303 ttyUSB0: pl2303_get_line_request - failed: -71 Apr 20 08:10:37 archlinux kernel: pl2303 ttyUSB0: pl2303_set_line_request - failed: -71 Apr 20 08:10:37 archlinux kernel: pl2303 1-2:1.0: pl2303_vendor_write - failed to write [0000]: -71 Apr 20 08:10:37 archlinux kernel: pl2303 ttyUSB0: pl2303_set_control_lines - failed: -71 Apr 20 08:10:37 archlinux kernel: pl2303 ttyUSB0: pl2303_get_line_request - failed: -71 Apr 20 08:10:37 archlinux kernel: pl2303 ttyUSB0: pl2303_set_line_request - failed: -71 Apr 20 08:10:37 archlinux kernel: pl2303 1-2:1.0: pl2303_vendor_write - failed to write [0000]: -71 Apr 20 08:10:37 archlinux kernel: pl2303 ttyUSB0: pl2303_set_control_lines - failed: -71 Apr 20 08:10:38 archlinux kernel: pl2303 ttyUSB0: usb_serial_generic_write_bulk_callback - nonzero urb status: -71
Not sure what to do now, so I am looking for advice.
-
Odd arch is seeing that as a GPS device. That's a new one on me.
Are you able to use a new cable? Do you have another os (debian based) to try off of?
-
Yea, I noticed that as well. I was making some changes to fix that, and decided I was going down a rabbit hole I didn't need to.
I have since loaded the prolific drivers on my mac with 10.14.4 and I now have console access. It looks like there is most likely some file system corruption now.
Output snip:
Warning: PHP Startup: Unable to load dynamic library 'zmq.so' (tried: /usr/local/lib/php/20131226/zmq.so (Cannot open "/usr/local/lib/php/20131226/zmq.so"), /usr/local/lib/php/20131226/zmq.so.so (Cannot open "/usr/local/lib/php/20131226/zmq.so.so")) in Unknown on line 0 Warning: PHP Startup: Unable to load dynamic library 'pdo_sqlite.so' (tried: /usr/local/lib/php/20131226/pdo_sqlite.so (Cannot open "/usr/local/lib/php/20131226/pdo_sqlite.so"), /usr/local/lib/php/20131226/pdo_sqlite.so.so (Cannot open "/usr/local/lib/php/20131226/pdo_sqlite.so.so")) in Unknown on line 0 Warning: PHP Startup: Unable to load dynamic library 'xmlreader.so' (tried: /usr/local/lib/php/20131226/xmlreader.so (Cannot open "/usr/local/lib/php/20131226/xmlreader.so"), /usr/local/lib/php/20131226/xmlreader.so.so (Cannot open "/usr/local/lib/php/20131226/xmlreader.so.so")) in Unknown on line 0 Fatal error: Uncaught Error: Call to undefined function gettext() in /etc/inc/certs.inc:46 Stack trace: #0 /etc/inc/functions.inc(32): require_once() #1 /etc/inc/notices.inc(24): require_once('/etc/inc/functi...') #2 /etc/inc/config.inc(49): require_once('/etc/inc/notice...') #3 /etc/rc.banner(24): require_once('/etc/inc/config...') #4 {main} thrown in /etc/inc/certs.inc on line 46
So I am going to look for the procedure to run fsck, but I am betting I will have to open case to get the firmware. Kinda of explains why I could never get this device to reboot or shutdown properly. If I run reboot from the console, it throws errors, but never reboots.
I will post more as I work through this.
-
That's a good first step. If you need to re-flash, please open a ticket with us and we can get an image file for you.
-
Well, it seems that the console dropped on the mac. I had access and in the time it took to write the last message I went back to the console and I no longer had access, and the /dev/cu.serial prolific device is gone. I am now back to the point of not being able to access the console.
Not sure if I can even reload the firmware without console access.
-
Hmm, did you try a new USB cable?
-
I just found another cable in my junk bin that seems to fit better (you get that little click), but it does not seem to work either. This is kind of the same behavior I had on windows, I might see the device come up on COM3, but by the time I got PuTTY going it would have failed.
-
Ok, I think it's time we move this over to a support ticket for us to work it. Please create an account and open a ticket at https://go.netgate.com Select Global Support, include your Netgate Device ID and reference this thread if you would like.
-
Will do. I rebooted my mac, and got the /dev/cu.usbserial device back, but now see IOCTL errors flash and I cannot get anything on the console. I will create an account and get a ticket open.
Thank you for you help.
-
I did open a ticket, but I wanted to post this here as well. I think the problem with console is due to the case on the SG-1100 preventing the cable from fully seating in the "micro" USB slot ( I think that is the term for it ). If I apply a bit of pressure on the cable the device stays up and I can get some console commands run. Of course, I am one handed at the time :).
I have been able to perform a "clean" OS shutdown, and i will try to see if I can repair things now. I do have a ticket open as I am betting I will need to reload the firmware before this is done.