perfsonar-user - [perfsonar-user] Figuring out how to trace these errors: pool.py:152:__init__:ValueError: Number of processes must be at least 1
Subject: perfSONAR User Q&A and Other Discussion
List archive
[perfsonar-user] Figuring out how to trace these errors: pool.py:152:__init__:ValueError: Number of processes must be at least 1
Chronological Thread
- From: Casey Russell <>
- To:
- Subject: [perfsonar-user] Figuring out how to trace these errors: pool.py:152:__init__:ValueError: Number of processes must be at least 1
- Date: Wed, 21 Feb 2018 08:42:57 -0600
- Ironport-phdr: 9a23:LviQgRX8Z8sBfhsyf3dL8smK7ovV8LGtZVwlr6E/grcLSJyIuqrYbBGHt8tkgFKBZ4jH8fUM07OQ7/i7HzRYqb+681k6OKRWUBEEjchE1ycBO+WiTXPBEfjxciYhF95DXlI2t1uyMExSBdqsLwaK+i764jEdAAjwOhRoLerpBIHSk9631+ev8JHPfglEnjWwba98IRmssQndqtQdjJd/JKo21hbHuGZDdf5MxWNvK1KTnhL86dm18ZV+7SleuO8v+tBZX6nicKs2UbJXDDI9M2Ao/8LrrgXMTRGO5nQHTGoblAdDDhXf4xH7WpfxtTb6tvZ41SKHM8D6Uaw4VDK/5KptVRTmijoINyQh/W/XhMJ+j79Vrgy9qBFk2YHYfJuYOeBicq/Bf94XQ3dKUMZLVyxGB4Oxd5UCAPAaPelGr4j2ukcArQalBQm3GuzvzjtIjWLx0KImyeQhDBrG3Bc+ENIKtHTZt9b1O70UUeCv0qbIyy/Pb/VI1jfh8YXFdA0qr/+LXbJ1a8XRyE8vGhvBjlWRr4zlPC2a2fkMs2id9eZvSeWvi2s/pwFtrDmvx9ssipXXiYIP0FzL6SJ5wIMtKd27UkF7Z8SkH4VWty2AMYt5XN8iTmd1syg50r0LoYC3cSkWxJklwhPfZf+KfJOU7h/mW+udPSt0iXxgdb2jmxq/8E2tx+jiWsWq3lZHqDdOnMPWuXAXzRPT79CKSvtj8Uel3jaCzwXT5ftFIUAwjKbbLJ8hzqIpmpscr0jPACH2lF/5jK+RcUUk9eyo5Pr9brr6oZ+cMpd4igD4MqswhsyyGfo0PwkSU2WZ/Om82r7u8lblTLhPgfA6jrXVvZ7fKMsHuqK0AgpY34M95xqhATeqyNEYkmMGLFJBdhKHlY/pO1TWLf/kF/e/nk+skCx1yPDCOr3sGZbNIWLFkLf7Y7l97VRQyAwtwtBD/55UEK0OIOrvWk/ts9zVFgc5PBKuw+bpE9V90YUeVniVAqOALaPSqkGH5vg0LumIZY8Voyr9K+M76/L0jH85n0Mdcrez3ZsRdn+4AupqL1+HbnXxn9dSWVsN6xIzVuLxj1uLS3tOfHuod6M6+jwhDo+6V8HOSp3+rqaG2XKQF4Zbdyh8F0uXHHPsP9GPQeoXcy+WJudimzoeWL7nTYI9g0L9/DTmwqZqe7KHshYTsojugYB4
Group,
I've seen similar errors mentioned before, but I'm having a hard time tracing these back to their origins. I've started getting dozens (and maybe more than a hundred) emails a day from my single Centos7 machine complaining of a problem running a traceroute test (if I'm interpreting it correctly). The line from the pscheduler.log is as follows:
Feb 21 07:55:18 ps-fhsu-bw journal: runner INFO 12356773: Run failed 1: Traceback (most recent call last):#012 File "/usr/libexec/pscheduler/commands/../classes/tool/traceroute/run", line 389, in <module>#012 ases = pscheduler.as_bulk_resolve(ips, threads=len(ips))#012 File "/usr/lib/python2.7/site-packages/pscheduler/psas.py", line 76, in as_bulk_resolve#012 processes=min(len(candidates), threads))#012 File "/usr/lib64/python2.7/multiprocessing/pool.py", line 714, in __init__#012 Pool.__init__(self, processes, initializer, initargs)#012 File "/usr/lib64/python2.7/multiprocessing/pool.py", line 152, in __init__#012 raise ValueError("Number of processes must be at least 1")#012ValueError: Number of processes must be at least 1
And the content of the emails is below my signature line. Since this error in the pscheduler log doesn't contain a task ID, or run ID, I can't see what two hosts this traceroute tried to run between, but most of them seem to be running fine. The lines before and after this in the pscheduler log seem to be pretty normal.
What relevant info in this log entry (or the email) should be pointing me toward the cause? What log files should I be looking into?
Additional info:
pscheduler-scheduler, archiver, and ticket seem to be running and in a healthy state when this occurs.
When I hand-restart pscheduler-scheduler (and occasionally when I restart the machine), I get an error about not having permissions to the pscheduler-archiver.pid file. That has been a problem that has come and gone ever since I upgraded this machine to CentOS7 6 or more months ago. So it may or may not be related to this problem.
reason: pool.py:152:__init__:ValueError: Number of processes must be at least 1
cmdline: /usr/bin/python /usr/libexec/pscheduler/commands/../classes/tool/traceroute/run
executable: /usr/libexec/pscheduler/classes/tool/traceroute/run
package: pscheduler-tool-traceroute-1.0.2.3-1.el7.centos
component: pscheduler-tool-traceroute
pid: 18360
hostname: ps-fhsu-bw.perfsonar.kanren.net
count: 190
abrt_version: 2.1.11
analyzer: Python
architecture: x86_64
duphash: 9909e45e4eb84b8b18b22553792d3e7cc5692413
event_log:
kernel: 3.10.0-693.17.1.el7.x86_64
last_occurrence: 1519219707
os_release: CentOS Linux release 7.4.1708 (Core)
pkg_arch: noarch
pkg_epoch: 0
pkg_fingerprint: 868D DF2C 9D7B 9686
pkg_name: pscheduler-tool-traceroute
pkg_release: 1.el7.centos
pkg_vendor: (none)
pkg_version: 1.0.2.3
runlevel: N 3
time: Tue 20 Feb 2018 02:25:22 PM CST
type: Python
uid: 1000
username: pscheduler
uuid: 9909e45e4eb84b8b18b22553792d3e7cc5692413
backtrace:
:pool.py:152:__init__:ValueError: Number of processes must be at least 1
:
:Traceback (most recent call last):
: File "/usr/libexec/pscheduler/commands/../classes/tool/traceroute/run", line 389, in <module>
: ases = pscheduler.as_bulk_resolve(ips, threads=len(ips))
: File "/usr/lib/python2.7/site-packages/pscheduler/psas.py", line 76, in as_bulk_resolve
: processes=min(len(candidates), threads))
: File "/usr/lib64/python2.7/multiprocessing/pool.py", line 714, in __init__
: Pool.__init__(self, processes, initializer, initargs)
: File "/usr/lib64/python2.7/multiprocessing/pool.py", line 152, in __init__
: raise ValueError("Number of processes must be at least 1")
:ValueError: Number of processes must be at least 1
:
:Local variables in innermost frame:
:self: <multiprocessing.pool.ThreadPool object at 0x23fb190>
:initargs: ()
:processes: 0
:maxtasksperchild: None
:initializer: None
dso_list:
:python-libs-2.7.5-58.el7.x86_64
:python-pscheduler-1.3.2.3-1.el7.centos.noarch
environ:
:LANG=en_US.UTF-8
:SHELL=/bin/bash
:SHLVL=0
:PSCHEDULER_LOG_STATE=(dp0
:S'is_quiet'
:p1
:I00
:sS'facility'
:p2
:I20
:sS'last_level'
:p3
:I20
:sS'forced_debug'
:p4
:I00
:s.
:PWD=/
:LOGNAME=pscheduler
:USER=pscheduler
:HOME=/home/pscheduler
:PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin
:PSCHEDULER_SAFERUN_STATE=(dp0
:S'current_backoff'
:p1
:F0.5
:sS'runs'
:p2
:I0
:sS'initial_backoff'
:p3
:F0.25
:s.
machineid:
:systemd=27794959ad5b4cfaafba9ccc90e5d6e6
:sosreport_uploader-dmidecode=ec83b527193d3178118634d43166162a6cec86f0004e6c992d3e458d1549ea79
os_info:
:NAME="CentOS Linux"
:VERSION="7 (Core)"
:ID="centos"
:ID_LIKE="rhel fedora"
:VERSION_ID="7"
:PRETTY_NAME="CentOS Linux 7 (Core)"
:ANSI_COLOR="0;31"
:CPE_NAME="cpe:/o:centos:centos:7"
:HOME_URL="https://www.centos.org/ "
:BUG_REPORT_URL="https://bugs.centos.org/ "
:
:CENTOS_MANTISBT_PROJECT="CentOS-7"
:CENTOS_MANTISBT_PROJECT_VERSION="7"
:REDHAT_SUPPORT_PRODUCT="centos"
:REDHAT_SUPPORT_PRODUCT_VERSION="7"
:
cmdline: /usr/bin/python /usr/libexec/pscheduler/
executable: /usr/libexec/pscheduler/
package: pscheduler-tool-traceroute-1.
component: pscheduler-tool-traceroute
pid: 18360
hostname: ps-fhsu-bw.perfsonar.kanren.
count: 190
abrt_version: 2.1.11
analyzer: Python
architecture: x86_64
duphash: 9909e45e4eb84b8b18b22553792d3e
event_log:
kernel: 3.10.0-693.17.1.el7.x86_64
last_occurrence: 1519219707
os_release: CentOS Linux release 7.4.1708 (Core)
pkg_arch: noarch
pkg_epoch: 0
pkg_fingerprint: 868D DF2C 9D7B 9686
pkg_name: pscheduler-tool-traceroute
pkg_release: 1.el7.centos
pkg_vendor: (none)
pkg_version: 1.0.2.3
runlevel: N 3
time: Tue 20 Feb 2018 02:25:22 PM CST
type: Python
uid: 1000
username: pscheduler
uuid: 9909e45e4eb84b8b18b22553792d3e
backtrace:
:pool.py:152:__init__:
:
:Traceback (most recent call last):
: File "/usr/libexec/pscheduler/
: ases = pscheduler.as_bulk_resolve(
: File "/usr/lib/python2.7/site-
: processes=min(len(candidates), threads))
: File "/usr/lib64/python2.7/
: Pool.__init__(self, processes, initializer, initargs)
: File "/usr/lib64/python2.7/
: raise ValueError("Number of processes must be at least 1")
:ValueError: Number of processes must be at least 1
:
:Local variables in innermost frame:
:self: <multiprocessing.pool.
:initargs: ()
:processes: 0
:maxtasksperchild: None
:initializer: None
dso_list:
:python-libs-2.7.5-58.el7.x86_
:python-pscheduler-1.3.2.3-1.
environ:
:LANG=en_US.UTF-8
:SHELL=/bin/bash
:SHLVL=0
:PSCHEDULER_LOG_STATE=(dp0
:S'is_quiet'
:p1
:I00
:sS'facility'
:p2
:I20
:sS'last_level'
:p3
:I20
:sS'forced_debug'
:p4
:I00
:s.
:PWD=/
:LOGNAME=pscheduler
:USER=pscheduler
:HOME=/home/pscheduler
:PATH=/usr/local/sbin:/usr/
:PSCHEDULER_SAFERUN_STATE=(dp0
:S'current_backoff'
:p1
:F0.5
:sS'runs'
:p2
:I0
:sS'initial_backoff'
:p3
:F0.25
:s.
machineid:
:systemd=
:sosreport_uploader-dmidecode=
os_info:
:NAME="CentOS Linux"
:VERSION="7 (Core)"
:ID="centos"
:ID_LIKE="rhel fedora"
:VERSION_ID="7"
:PRETTY_NAME="CentOS Linux 7 (Core)"
:ANSI_COLOR="0;31"
:CPE_NAME="cpe:/o:centos:
:HOME_URL="https://www.centos.
:BUG_REPORT_URL="https://bugs.
:
:CENTOS_MANTISBT_PROJECT="
:CENTOS_MANTISBT_PROJECT_
:REDHAT_SUPPORT_PRODUCT="
:REDHAT_SUPPORT_PRODUCT_
:
- [perfsonar-user] Figuring out how to trace these errors: pool.py:152:__init__:ValueError: Number of processes must be at least 1, Casey Russell, 02/21/2018
Archive powered by MHonArc 2.6.19.