Closed jrpmedia closed 2 years ago
Hi @jrpmedia - Could you enable verbose logging (see Troubleshooting section, step 3: check the logs) and share the log entries from around the time of that error?
Hi,
I can see nothing in the log(s) for autopkgr so here are some screenshots so you can direct me further please, thanks
.
Per Step 3 of the Troubleshooting section, here are the items I'd recommend:
Stream the logs using this command while trying to reproduce your traceback:
log stream --style syslog --process "AutoPkgr" --type log
Also, your screenshots include information you hadn't previously shared: the error appears to be occurring while updating a repo. Therefore, you might want to update your repos using the autopkg
command outside of AutoPkgr to see whether a particular repo is causing trouble:
autopkg repo-update all
Thank you, here you are:
Last login: Thu Mar 10 13:25:05 on console jrp@cloud ~ % log stream --style syslog --process "AutoPkgr" --type log
Filtering the log data using "process BEGINSWITH[cd] "AutoPkgr" AND type == 1024"
Timestamp (process)[PID]
2022-03-10 13:28:12.779478+0000 localhost AutoPkgr[707]: (FULL AUTOPKG TRACEBACK)
File "/usr/local/bin/autopkg", line 37, in
[ERROR] SyntaxError: invalid syntax
2022-03-10 13:28:12.780482+0000 localhost AutoPkgr[707]: [DEBUG] Completed AutoPkg Task:
/usr/local/autopkg/python /usr/local/bin/autopkg repo-update all
2022-03-10 13:28:13.754789+0000 localhost AutoPkgr[707]: (FULL AUTOPKG TRACEBACK)
File "/usr/local/bin/autopkg", line 37, in
[ERROR] SyntaxError: invalid syntax
2022-03-10 13:28:13.755064+0000 localhost AutoPkgr[707]: [DEBUG] Completed AutoPkg Task:
/usr/local/autopkg/python /usr/local/bin/autopkg repo-list
2022-03-10 13:28:34.820429+0000 localhost AutoPkgr[707]: (CFNetwork) Connection 8: cleaning up
2022-03-10 13:28:34.821837+0000 localhost AutoPkgr[707]: (libnetwork.dylib) [com.apple.network:connection] [C8 5CEB9BB2-1A29-47A6-B18E-CAF596767E06 Hostname#7eea6a7a:443 tcp, url hash: 6cb661a7, tls, definite, attribution: developer] cancel
2022-03-10 13:28:34.822702+0000 localhost AutoPkgr[707]: (libnetwork.dylib) [com.apple.network:connection] [C8 5CEB9BB2-1A29-47A6-B18E-CAF596767E06 Hostname#7eea6a7a:443 tcp, url hash: 6cb661a7, tls, definite, attribution: developer] cancelled
[C8.1 97B2C262-70CF-468A-973C-D866F4F31B5E 217.35.150.172:49503<->IPv4#16fa55fd:443]
Connected Path: satisfied (Path is satisfied), viable, interface: en0, ipv4, ipv6, dns
Privacy Stance: Not Eligible
Duration: 61.962s, DNS @0.000s took 0.016s, TCP @0.016s took 0.020s, TLS 1.3 took 0.024s
bytes in/out: 60258/2851, packets in/out: 13/9, rtt: 0.021s, retransmitted bytes: 0, out-of-order bytes: 0
2022-03-10 13:28:34.824763+0000 localhost AutoPkgr[707]: (libnetwork.dylib) [com.apple.network:connection] nw_flow_disconnected [C8.1 IPv4#16fa55fd:443 cancelled socket-flow ((null))] Output protocol disconnected
2022-03-10 13:28:34.825372+0000 localhost AutoPkgr[707]: (libnetwork.dylib) [com.apple.network:connection] nw_connection_report_state_with_handler_on_nw_queue [C8] reporting state cancelled
2022-03-10 13:28:34.825822+0000 localhost AutoPkgr[707]: (CFNetwork) Connection 8: done
2022-03-10 13:28:39.860196+0000 localhost AutoPkgr[707]: (FULL AUTOPKG TRACEBACK)
File "/usr/local/bin/autopkg", line 37, in
[ERROR] SyntaxError: invalid syntax
2022-03-10 13:28:39.860955+0000 localhost AutoPkgr[707]: [DEBUG] Completed AutoPkg Task:
/usr/local/autopkg/python /usr/local/bin/autopkg run --recipe-list /Users/jrp/Library/Application Support/AutoPkgr/recipe_list.txt --report-plist -v --post io.github.hjuutilainen.VirusTotalAnalyzer/VirusTotalAnalyzer
2022-03-10 13:28:39.861428+0000 localhost AutoPkgr[707]: (CFNetwork) [com.apple.CFNetwork:ATS] Task
[ERROR] SyntaxError: invalid syntax
2022-03-10 13:28:41.719878+0000 localhost AutoPkgr[707]: [DEBUG] Completed AutoPkg Task:
/usr/local/autopkg/python /usr/local/bin/autopkg repo-list
2022-03-10 13:28:41.720419+0000 localhost AutoPkgr[707]: (CFNetwork) [com.apple.CFNetwork:ATS] Task
[ERROR] SyntaxError: invalid syntax
2022-03-10 13:28:43.512658+0000 localhost AutoPkgr[707]: [DEBUG] Completed AutoPkg Task:
/usr/local/autopkg/python /usr/local/bin/autopkg repo-list
2022-03-10 13:28:43.513324+0000 localhost AutoPkgr[707]: (CFNetwork) [com.apple.CFNetwork:ATS] Task
[ERROR] SyntaxError: invalid syntax 2022-03-10 13:28:45.511342+0000 localhost AutoPkgr[707]: [DEBUG] Completed AutoPkg Task: /usr/local/autopkg/python /usr/local/bin/autopkg repo-list 2022-03-10 13:28:45.550102+0000 localhost AutoPkgr[707]: [DEBUG] SMTP credentials retrieved. 2022-03-10 13:28:45.550193+0000 localhost AutoPkgr[707]: [DEBUG] SSL/TLS is enabled for server.jrphosting.co.uk. 2022-03-10 13:28:45.551026+0000 localhost AutoPkgr[707]: (CFNetwork) TCP Conn [11:0x6000028d2c00] using empty proxy configuration 2022-03-10 13:28:45.551054+0000 localhost AutoPkgr[707]: (CFNetwork) Stream client bypassing proxies on TCP Conn [11:0x6000028d2c00] 2022-03-10 13:28:45.551065+0000 localhost AutoPkgr[707]: (CFNetwork) TCP Conn 0x6000028d2c00 started 2022-03-10 13:28:45.551151+0000 localhost AutoPkgr[707]: (libnetwork.dylib) [com.apple.network:connection] [C11 AF483858-E360-405D-8336-6F6A272CE5A4 Hostname#bfffa09a:465 tcp, definite, attribution: developer, context: Default Network Context (private), proc: 208F103C-4586-30D9-AF3A-B598894FC3BD, no proxy, no fallback, allow socket access] start 2022-03-10 13:28:45.551185+0000 localhost AutoPkgr[707]: (libnetwork.dylib) [com.apple.network:connection] [C11 Hostname#bfffa09a:465 initial path ((null))] event: path:start @0.000s 2022-03-10 13:28:45.551303+0000 localhost AutoPkgr[707]: (libnetwork.dylib) [com.apple.network:connection] [C11 Hostname#bfffa09a:465 waiting path (satisfied (Path is satisfied), interface: en0, ipv4, ipv6, dns)] event: path:satisfied @0.000s, uuid: 61D5A2E8-47B8-4E10-BCDC-FA4ECF4DD637 2022-03-10 13:28:45.551345+0000 localhost AutoPkgr[707]: (libnetwork.dylib) [com.apple.network:connection] [C11 Hostname#bfffa09a:465 in_progress resolver (satisfied (Path is satisfied), interface: en0, ipv4, ipv6, dns)] event: resolver:start_dns @0.000s 2022-03-10 13:28:45.551366+0000 localhost AutoPkgr[707]: (libnetwork.dylib) [com.apple.network:connection] nw_connection_report_state_with_handler_on_nw_queue [C11] reporting state preparing 2022-03-10 13:28:45.552219+0000 localhost AutoPkgr[707]: (libnetwork.dylib) [com.apple.network:connection] nw_endpoint_resolver_update [C11 Hostname#bfffa09a:465 in_progress resolver (satisfied (Path is satisfied), interface: en0, ipv4, ipv6, dns)] Adding endpoint handler for IPv4#79c38119:465 2022-03-10 13:28:45.552244+0000 localhost AutoPkgr[707]: (libnetwork.dylib) [com.apple.network:connection] [C11 Hostname#bfffa09a:465 in_progress resolver (satisfied (Path is satisfied), interface: en0, ipv4, ipv6, dns)] event: resolver:receive_dns @0.001s 2022-03-10 13:28:45.552269+0000 localhost AutoPkgr[707]: (libnetwork.dylib) [com.apple.network:connection] [C11.1 IPv4#79c38119:465 initial path ((null))] event: path:start @0.001s 2022-03-10 13:28:45.552339+0000 localhost AutoPkgr[707]: (libnetwork.dylib) [com.apple.network:connection] [C11.1 IPv4#79c38119:465 waiting path (satisfied (Path is satisfied), interface: en0, ipv4, ipv6, dns)] event: path:satisfied @0.001s, uuid: 1A77F778-29A6-4344-8C5C-34CA77C6FD81 2022-03-10 13:28:45.552440+0000 localhost AutoPkgr[707]: (libnetwork.dylib) [com.apple.network:connection] [C11.1 IPv4#79c38119:465 in_progress socket-flow (satisfied (Path is satisfied), interface: en0, ipv4, ipv6, dns)] event: flow:start_connect @0.001s 2022-03-10 13:28:45.562930+0000 localhost AutoPkgr[707]: (libnetwork.dylib) [com.apple.network:connection] nw_socket_handle_socket_event [C11.1:1] Socket received CONNECTED event 2022-03-10 13:28:45.562988+0000 localhost AutoPkgr[707]: (libnetwork.dylib) [com.apple.network:connection] nw_flow_connected [C11.1 IPv4#79c38119:465 in_progress socket-flow (satisfied (Path is satisfied), viable, interface: en0, ipv4, ipv6, dns)] Output protocol connected (socket) 2022-03-10 13:28:45.563015+0000 localhost AutoPkgr[707]: (libnetwork.dylib) [com.apple.network:connection] [C11.1 IPv4#79c38119:465 ready socket-flow (satisfied (Path is satisfied), viable, interface: en0, ipv4, ipv6, dns)] event: flow:finish_connect @0.011s 2022-03-10 13:28:45.563038+0000 localhost AutoPkgr[707]: (libnetwork.dylib) [com.apple.network:connection] nw_connection_report_state_with_handler_on_nw_queue [C11] reporting state ready 2022-03-10 13:28:45.563059+0000 localhost AutoPkgr[707]: (libnetwork.dylib) [com.apple.network:connection] [C11 Hostname#bfffa09a:465 ready resolver (satisfied (Path is satisfied), interface: en0, ipv4, ipv6, dns)] event: flow:finish_connect @0.011s 2022-03-10 13:28:45.563077+0000 localhost AutoPkgr[707]: (libnetwork.dylib) [com.apple.network:connection] [C11.1 IPv4#79c38119:465 ready socket-flow (satisfied (Path is satisfied), viable, interface: en0, ipv4, ipv6, dns)] event: flow:changed_viability @0.011s 2022-03-10 13:28:45.563098+0000 localhost AutoPkgr[707]: (libnetwork.dylib) [com.apple.network:connection] [C11 Hostname#bfffa09a:465 ready resolver (satisfied (Path is satisfied), interface: en0, ipv4, ipv6, dns)] event: flow:changed_viability @0.011s 2022-03-10 13:28:45.563129+0000 localhost AutoPkgr[707]: (CFNetwork) TCP Conn 0x6000028d2c00 event 1. err: 0 2022-03-10 13:28:45.563149+0000 localhost AutoPkgr[707]: (CFNetwork) TCP Conn 0x6000028d2c00 complete. fd: 17, err: 0 2022-03-10 13:28:45.563308+0000 localhost AutoPkgr[707]: (CFNetwork) TCP Conn 0x6000028d2c00 starting SSL negotiation 2022-03-10 13:28:45.655797+0000 localhost AutoPkgr[707]: (CFNetwork) TCP Conn 0x6000028d2c00 SSL Handshake DONE 2022-03-10 13:28:45.766346+0000 localhost AutoPkgr[707]: (CFNetwork) TCP Conn 0x6000028d2c00 canceled 2022-03-10 13:28:45.766463+0000 localhost AutoPkgr[707]: (libnetwork.dylib) [com.apple.network:connection] [C11 AF483858-E360-405D-8336-6F6A272CE5A4 Hostname#bfffa09a:465 tcp, legacy-socket, definite, attribution: developer] cancel 2022-03-10 13:28:45.766803+0000 localhost AutoPkgr[707]: (libnetwork.dylib) [com.apple.network:connection] [C11 AF483858-E360-405D-8336-6F6A272CE5A4 Hostname#bfffa09a:465 tcp, legacy-socket, definite, attribution: developer] cancelled [C11.1 1A77F778-29A6-4344-8C5C-34CA77C6FD81 217.35.150.172:49557<->IPv4#79c38119:465] Connected Path: satisfied (Path is satisfied), viable, interface: en0, ipv4, ipv6, dns Privacy Stance: Not Eligible Duration: 0.215s, DNS @0.000s took 0.001s, TCP @0.001s took 0.010s bytes in/out: 5811/4080, packets in/out: 10/12, rtt: 0.013s, retransmitted bytes: 0, out-of-order bytes: 0 2022-03-10 13:28:45.767043+0000 localhost AutoPkgr[707]: (libnetwork.dylib) [com.apple.network:connection] nw_flow_disconnected [C11.1 IPv4#79c38119:465 cancelled socket-flow ((null))] Output protocol disconnected 2022-03-10 13:28:45.767415+0000 localhost AutoPkgr[707]: (libnetwork.dylib) [com.apple.network:connection] nw_connection_report_state_with_handler_on_nw_queue [C11] reporting state cancelled
... and also ...
Last login: Thu Mar 10 13:28:31 on ttys001
jrp@cloud ~ % autopkg repo-update all
Traceback (most recent call last):
File "/usr/local/bin/autopkg", line 37, in
Looks like the problem is in the LANrevImporter processor.
2022-03-10 13:28:12.779608+0000 localhost AutoPkgr[707]: Error [1] Error updating repo
A Python exception occurred during the execution of autopkg, see the system log for more details.
[ERROR] SyntaxError: invalid syntax
2022-03-10 13:28:12.780482+0000 localhost AutoPkgr[707]: [DEBUG] Completed AutoPkg Task:
/usr/local/autopkg/python /usr/local/bin/autopkg repo-update all
2022-03-10 13:28:13.754789+0000 localhost AutoPkgr[707]: (FULL AUTOPKG TRACEBACK)
File "/usr/local/bin/autopkg", line 37, in
from autopkgcmd import common_parse, gen_common_parser, search_recipes
File "/Library/AutoPkg/autopkgcmd/init.py", line 15, in
from autopkgcmd.opts import common_parse, gen_common_parser
File "/Library/AutoPkg/autopkgcmd/opts.py", line 18, in
from autopkglib import globalPreferences
File "/Library/AutoPkg/autopkglib/init.py", line 1086, in
import_processors()
File "/Library/AutoPkg/autopkglib/init.py", line 979, in import_processors
import(name + "." + name, fromlist=[name]), name
File "/Library/AutoPkg/autopkglib/LANrevImporter.py", line 498
except OSError, err:
^
SyntaxError: invalid syntax
That processor hasn't been updated for 5 years, so it's unlikely to work with Python 3 and AutoPkg 2+. I would recommend removing its repository with autopkg repo-delete https://github.com/jbaker10/LANrevImporter
and trying again.
If you wish to use the LANrevImporter processor, you might consider expressing interest to the processor's author via a pull request to the repo here: https://github.com/jbaker10/LANrevImporter
Thank you ! :-) Problem solved.
Finally, Is this the place or thread to ask for assistance with this, or should I start another ISSUE Ticket?
?
That's not an AutoPkgr issue. It's a warning (not an error) caused by running recipes directly instead of creating overrides. Please read through this wiki page, and if you still have questions you might consider asking on the MacAdmins Slack.
A Python exception occurred during the execution of autopkg, see the system log for more details. [ERROR] SyntaxError: invalid syntax
MacMini M1 OSX Monterey 12.2.1