Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Errno 32] Broken pipe #71

Open
wassmtg opened this issue Jan 13, 2025 · 0 comments
Open

[Errno 32] Broken pipe #71

wassmtg opened this issue Jan 13, 2025 · 0 comments

Comments

@wassmtg
Copy link

wassmtg commented Jan 13, 2025

when i setup all config and run biometric-attendance-sync-tool i get this error. Please help
Notice that i have ZKTeco MB560-VL

2025-01-13 15:33:30,846 ERROR 192.168.1.201 exception when fetching from device...
Traceback (most recent call last):
File "/opt/bench/frappe-bench/biometric-attendance-sync-tool/venv/lib/python3.10/site-packages/zk/base.py", line 248, in __send_command
self.__sock.send(top)
BrokenPipeError: [Errno 32] Broken pipe

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/opt/bench/frappe-bench/biometric-attendance-sync-tool/erpnext_sync.py", line 140, in get_all_attendance_from_device
conn = zk.connect()
File "/opt/bench/frappe-bench/biometric-attendance-sync-tool/venv/lib/python3.10/site-packages/zk/base.py", line 373, in connect
cmd_response = self.__send_command(const.CMD_CONNECT)
File "/opt/bench/frappe-bench/biometric-attendance-sync-tool/venv/lib/python3.10/site-packages/zk/base.py", line 260, in __send_command
raise ZKNetworkError(str(e))
zk.exception.ZKNetworkError: [Errno 32] Broken pipe
2025-01-13 15:33:30,847 ERROR exception when calling pull_process_and_push_data function for device{"device_id": "Usine", "ip": "192.168.1.201", "punch_direction": null, "clear_from_device_on_fetch": false}
Traceback (most recent call last):
File "/opt/bench/frappe-bench/biometric-attendance-sync-tool/venv/lib/python3.10/site-packages/zk/base.py", line 248, in __send_command
self.__sock.send(top)
BrokenPipeError: [Errno 32] Broken pipe

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/opt/bench/frappe-bench/biometric-attendance-sync-tool/erpnext_sync.py", line 140, in get_all_attendance_from_device
conn = zk.connect()
File "/opt/bench/frappe-bench/biometric-attendance-sync-tool/venv/lib/python3.10/site-packages/zk/base.py", line 373, in connect
cmd_response = self.__send_command(const.CMD_CONNECT)
File "/opt/bench/frappe-bench/biometric-attendance-sync-tool/venv/lib/python3.10/site-packages/zk/base.py", line 260, in __send_command
raise ZKNetworkError(str(e))
zk.exception.ZKNetworkError: [Errno 32] Broken pipe

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/opt/bench/frappe-bench/biometric-attendance-sync-tool/erpnext_sync.py", line 53, in main
pull_process_and_push_data(device, device_attendance_logs)
File "/opt/bench/frappe-bench/biometric-attendance-sync-tool/erpnext_sync.py", line 80, in pull_process_and_push_data
device_attendance_logs = get_all_attendance_from_device(device['ip'], device_id=device['device_id'], clear_from_device_on_fetch=device['clear_from_device_on_fetch'])
File "/opt/bench/frappe-bench/biometric-attendance-sync-tool/erpnext_sync.py", line 161, in get_all_attendance_from_device
raise Exception('Device fetch failed.')
Exception: Device fetch failed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant