ListenProcess error[Errno 22] Invalid argument

Posted on
Tue Apr 23, 2019 8:23 pm
kw123 offline
User avatar
Posts: 8333
Joined: May 12, 2013
Location: Dallas, TX

Re: ListenProcess error[Errno 22] Invalid argument

It’s more a software question. If they are up to date -F should work


You can try
In terminal
Ssh userid@ip

tail -F /sys.... don’t recall the file

if thy works you are good
If not use -f

But I believe the issue is not w the UniFi devices but with Mojave
Somehow the is.read function does not work properly in python or it’s different in Mojave

Could you open terminal and type
which python
And post the output

Karl


Sent from my iPhone using Tapatalk

Posted on
Tue Apr 23, 2019 9:30 pm
kw123 offline
User avatar
Posts: 8333
Joined: May 12, 2013
Location: Dallas, TX

Re: ListenProcess error[Errno 22] Invalid argument

and:

"Mac Error 22
If the error code 22 is caused by corrupted/missing system files, performing a reinstall of Mac OS can be a quick fix for the problems resulting from a damaged operating system. ... When you see the OS X Utilities menu, select the Reinstall OS X option."

and very helpful ??:
"unitEmptyErr = -22, /*I/O System Errors*/"

Karl

Posted on
Tue Apr 23, 2019 9:35 pm
dkillmer offline
Posts: 39
Joined: Feb 23, 2015

Re: ListenProcess error[Errno 22] Invalid argument

I have the same Python version in Mojave 10.14.4.

Posted on
Tue Apr 23, 2019 9:36 pm
kw123 offline
User avatar
Posts: 8333
Joined: May 12, 2013
Location: Dallas, TX

Re: ListenProcess error[Errno 22] Invalid argument

could you restart your mac and do a disk check?

wouter has the same problem and has tried older plugin versions and has the same problem. only difference is new OSX

Karl

Posted on
Tue Apr 23, 2019 10:13 pm
dkillmer offline
Posts: 39
Joined: Feb 23, 2015

Re: ListenProcess error[Errno 22] Invalid argument

which python -> /usr/bin/python

I restarted and ran First Aid in the Disk Utility and it says the volume appears to be OK and the file system check had an exit code of 0.

Posted on
Tue Apr 23, 2019 10:15 pm
kw123 offline
User avatar
Posts: 8333
Joined: May 12, 2013
Location: Dallas, TX

Re: ListenProcess error[Errno 22] Invalid argument

Really don’t know what to do.
Have not found any hints on the web.

Need to think about it. But I don’t have a system that has the error.

....

Karl



Sent from my iPhone using Tapatalk

Posted on
Wed Apr 24, 2019 7:10 am
dkillmer offline
Posts: 39
Joined: Feb 23, 2015

Re: ListenProcess error[Errno 22] Invalid argument

Thank you, Karl. I will try to run the tail command in terminal to see if it stops working.

Here are some additional error messages in the Event Log when running the quick fix.

Apr 24, 2019 at 3:46:04 AM
uniFiAP Error os.read(ListenProcessFileHandle.stdout.fileno(),32767) has error in Line '5863' has error='[Errno 22] Invalid argument'
uniFiAP Error ... ListenProcess for ip: 192.168.1.74 type: APtail ListenProcessObject: <subprocess.Popen object at 0x10f5ccd10>
uniFiAP Error ...stdout: <open file '<fdopen>', mode 'rb' at 0x10eac8ed0>
uniFiAP Error ...fileNo: 25

Apr 24, 2019 at 4:02:05 AM
uniFiAP Error os.read(ListenProcessFileHandle.stdout.fileno(),32767) has error in Line '5863' has error='[Errno 22] Invalid argument'
uniFiAP Error ... ListenProcess for ip: 192.168.1.75 type: APtail ListenProcessObject: <subprocess.Popen object at 0x10f5a4190>
uniFiAP Error ...stdout: <open file '<fdopen>', mode 'rb' at 0x10eac8ae0>
uniFiAP Error ...fileNo: 16

Apr 24, 2019 at 4:05:02 AM
uniFiAP Error os.read(ListenProcessFileHandle.stdout.fileno(),32767) has error in Line '5863' has error='[Errno 22] Invalid argument'
uniFiAP Error ... ListenProcess for ip: 192.168.1.59 type: APtail ListenProcessObject: <subprocess.Popen object at 0x10f58d8d0>
uniFiAP Error ...stdout: <open file '<fdopen>', mode 'rb' at 0x10eac8390>
uniFiAP Error ...fileNo: 12

AApr 24, 2019 at 4:09:20 AM
uniFiAP Error os.read(ListenProcessFileHandle.stdout.fileno(),32767) has error in Line '5863' has error='[Errno 22] Invalid argument'
uniFiAP Error ... ListenProcess for ip: 192.168.1.58 type: APtail ListenProcessObject: <subprocess.Popen object at 0x10e2c27d0>
uniFiAP Error ...stdout: <open file '<fdopen>', mode 'rb' at 0x10eac8660>
uniFiAP Error ...fileNo: 37
uniFiAP Error in Line '5944' has error='Expecting object: line 178 column 1 (char 2838)',receiving DICTs for 192.168.1.59; check unifi logfile; if this happens to often increase DICT timeout
uniFiAP Error ...APdict 192.168.1.59 error in the JSON data
uniFiAP Error ...APdict JSON-start=lse,"flowctrl_tx": false,"full_duplex": true,"is_uplink": false,"jumbo": true,"mac_table": [{"age": 0,"m
uniFiAP Error ...APdict JSON-end =},{"age": 0,"mac": "f0:9f:c2:a6:9d:e6","static": false,"uptime": 110,"vlan": 1xxxThisIsTheEndTokenxxx3
Apr 24, 2019 at 4:17:58 AM
uniFiAP Error os.read(ListenProcessFileHandle.stdout.fileno(),32767) has error in Line '5863' has error='[Errno 22] Invalid argument'
uniFiAP Error ... ListenProcess for ip: 192.168.1.59 type: APdict ListenProcessObject: <subprocess.Popen object at 0x10f5e1210>
uniFiAP Error ...stdout: <open file '<fdopen>', mode 'rb' at 0x10eac8270>
uniFiAP Error ...fileNo: 22

Apr 24, 2019 at 4:30:45 AM
uniFiAP Error os.read(ListenProcessFileHandle.stdout.fileno(),32767) has error in Line '5863' has error='[Errno 22] Invalid argument'
uniFiAP Error ... ListenProcess for ip: 192.168.1.60 type: APtail ListenProcessObject: <subprocess.Popen object at 0x10e2cced0>
uniFiAP Error ...stdout: <open file '<fdopen>', mode 'rb' at 0x10e22ced0>
uniFiAP Error ...fileNo: 28

Apr 24, 2019 at 4:45:11 AM
uniFiAP Error os.read(ListenProcessFileHandle.stdout.fileno(),32767) has error in Line '5863' has error='[Errno 22] Invalid argument'
uniFiAP Error ... ListenProcess for ip: 192.168.1.59 type: APtail ListenProcessObject: <subprocess.Popen object at 0x10f5cc550>
uniFiAP Error ...stdout: <open file '<fdopen>', mode 'rb' at 0x10e22cdb0>
uniFiAP Error ...fileNo: 16

Apr 24, 2019 at 4:56:25 AM
uniFiAP Error os.read(ListenProcessFileHandle.stdout.fileno(),32767) has error in Line '5863' has error='[Errno 22] Invalid argument'
uniFiAP Error ... ListenProcess for ip: 192.168.1.59 type: APtail ListenProcessObject: <subprocess.Popen object at 0x10f59bbd0>
uniFiAP Error ...stdout: <open file '<fdopen>', mode 'rb' at 0x10e22c930>
uniFiAP Error ...fileNo: 28
Apr 24, 2019 at 5:01:34 AM
uniFiAP Error os.read(ListenProcessFileHandle.stdout.fileno(),32767) has error in Line '5863' has error='[Errno 22] Invalid argument'
uniFiAP Error os.read(ListenProcessFileHandle.stdout.fileno(),32767) has error in Line '5863' has error='[Errno 22] Invalid argument'
uniFiAP Error ... ListenProcess for ip: 192.168.1.59 type: APdict ListenProcessObject: <subprocess.Popen object at 0x10f5a4f50>
uniFiAP Error ... ListenProcess for ip: 192.168.1.74 type: APtail ListenProcessObject: <subprocess.Popen object at 0x10e2cc590>
uniFiAP Error ...stdout: <open file '<fdopen>', mode 'rb' at 0x10eac85d0>
uniFiAP Error ...stdout: <open file '<fdopen>', mode 'rb' at 0x10eac8c90>
uniFiAP Error ...fileNo: 14
uniFiAP Error ...fileNo: 18
Apr 24, 2019 at 5:09:20 AM
uniFiAP Error os.read(ListenProcessFileHandle.stdout.fileno(),32767) has error in Line '5863' has error='[Errno 22] Invalid argument'
uniFiAP Error ... ListenProcess for ip: 192.168.1.58 type: APtail ListenProcessObject: <subprocess.Popen object at 0x10f5bd390>
uniFiAP Error ...stdout: <open file '<fdopen>', mode 'rb' at 0x10eac80c0>
uniFiAP Error ...fileNo: 12
Apr 24, 2019 at 5:13:39 AM
uniFiAP Error os.read(ListenProcessFileHandle.stdout.fileno(),32767) has error in Line '5863' has error='[Errno 22] Invalid argument'
uniFiAP Error ... ListenProcess for ip: 192.168.1.59 type: APtail ListenProcessObject: <subprocess.Popen object at 0x10e2ccf50>
uniFiAP Error ...stdout: <open file '<fdopen>', mode 'rb' at 0x10e22cd20>
uniFiAP Error ...fileNo: 16

Apr 24, 2019 at 5:33:23 AM
uniFiAP Error os.read(ListenProcessFileHandle.stdout.fileno(),32767) has error in Line '5863' has error='[Errno 22] Invalid argument'
uniFiAP Error ... ListenProcess for ip: 192.168.1.59 type: APdict ListenProcessObject: <subprocess.Popen object at 0x10e2cced0>
uniFiAP Error ...stdout: <open file '<fdopen>', mode 'rb' at 0x10e22cc90>
uniFiAP Error ...fileNo: 28

Apr 24, 2019 at 5:39:13 AM
uniFiAP Error os.read(ListenProcessFileHandle.stdout.fileno(),32767) has error in Line '5863' has error='[Errno 22] Invalid argument'
uniFiAP Error ... ListenProcess for ip: 192.168.1.59 type: APdict ListenProcessObject: <subprocess.Popen object at 0x10f5bddd0>
uniFiAP Error ...stdout: <open file '<fdopen>', mode 'rb' at 0x10e22c9c0>
uniFiAP Error ...fileNo: 16

Posted on
Wed Apr 24, 2019 7:15 am
kw123 offline
User avatar
Posts: 8333
Joined: May 12, 2013
Location: Dallas, TX

Re: ListenProcess error[Errno 22] Invalid argument

Could you do:
-Set debug on for Expect and Special
-Restart the plugin
-Send me the log file (...indigo 7.3/logs/unifiap/plugin.log could be spelled wrong)
To Karlwachs at me com

There are Userids and passwords in the log!
I need to see if it goes wrong from the beginning or works for some time and then stops

Karl



Sent from my iPhone using Tapatalk

Posted on
Wed May 01, 2019 3:11 pm
kw123 offline
User avatar
Posts: 8333
Joined: May 12, 2013
Location: Dallas, TX

Re: ListenProcess error[Errno 22] Invalid argument

for Mojave folks: use v 7.26.162 or higher.

OS-X Mojave seems to have read errors (errno=22) happening when listening to the ap .. messages once in a while.

This version handles that error.


Karl

Who is online

Users browsing this forum: Google [Bot] and 0 guests

cron