Comments (4)
from semaphore.
Just tried the current develop docker build - works now, thank you
from semaphore.
@fiftin
Same issue when running from the Web UI. Maybe it has something to do with all requirements.txt
modules being installed in /home/semaphore
and not in the venv
8a04df013a1c:~$ cat /etc/semaphore/requirements.txt
pywinrm
pymssql
netaddr
passlib
8a04df013a1c:~$ /opt/semaphore/venv/bin/pip3 list -v
Package Version Location Installer
------------------ ----------- --------------------------------------------------- ---------
ansible 9.4.0 /opt/semaphore/venv/lib/python3.11/site-packages pip
ansible-core 2.16.7 /opt/semaphore/venv/lib/python3.11/site-packages pip
boto3 1.34.115 /opt/semaphore/venv/lib/python3.11/site-packages pip
botocore 1.34.115 /opt/semaphore/venv/lib/python3.11/site-packages pip
certifi 2024.2.2 /opt/semaphore/venv/lib/python3.11/site-packages pip
cffi 1.16.0 /opt/semaphore/venv/lib/python3.11/site-packages pip
charset-normalizer 3.3.2 /opt/semaphore/venv/lib/python3.11/site-packages pip
cryptography 42.0.7 /opt/semaphore/venv/lib/python3.11/site-packages pip
idna 3.7 /opt/semaphore/venv/lib/python3.11/site-packages pip
Jinja2 3.1.4 /opt/semaphore/venv/lib/python3.11/site-packages pip
jmespath 1.0.1 /opt/semaphore/venv/lib/python3.11/site-packages pip
MarkupSafe 2.1.5 /opt/semaphore/venv/lib/python3.11/site-packages pip
netaddr 1.3.0 /home/semaphore/.local/lib/python3.11/site-packages pip
packaging 23.2 /usr/lib/python3.11/site-packages
passlib 1.7.4 /home/semaphore/.local/lib/python3.11/site-packages pip
pip 24.0 /opt/semaphore/venv/lib/python3.11/site-packages pip
pycparser 2.22 /opt/semaphore/venv/lib/python3.11/site-packages pip
pymssql 2.3.0 /home/semaphore/.local/lib/python3.11/site-packages pip
pyparsing 3.1.1 /usr/lib/python3.11/site-packages
pyspnego 0.10.2 /home/semaphore/.local/lib/python3.11/site-packages pip
python-dateutil 2.9.0.post0 /opt/semaphore/venv/lib/python3.11/site-packages pip
pywinrm 0.4.3 /home/semaphore/.local/lib/python3.11/site-packages pip
PyYAML 6.0.1 /opt/semaphore/venv/lib/python3.11/site-packages pip
requests 2.32.3 /opt/semaphore/venv/lib/python3.11/site-packages pip
requests-ntlm 1.2.0 /home/semaphore/.local/lib/python3.11/site-packages pip
resolvelib 1.0.1 /opt/semaphore/venv/lib/python3.11/site-packages pip
s3transfer 0.10.1 /opt/semaphore/venv/lib/python3.11/site-packages pip
setuptools 65.5.0 /opt/semaphore/venv/lib/python3.11/site-packages pip
six 1.16.0 /opt/semaphore/venv/lib/python3.11/site-packages pip
urllib3 2.2.1 /opt/semaphore/venv/lib/python3.11/site-packages pip
xmltodict 0.13.0 /home/semaphore/.local/lib/python3.11/site-packages pip
The UI reports the error: msg: 'winrm or requests is not installed: No module named ''winrm'''
However, if I run the ansible-playbook command logged into the container
docker exec -it docker-semaphore-1 bash
/opt/semaphore/venv/bin/python3 /opt/semaphore/venv/bin/ansible-playbook -i inventory.yml --user svc-ansible --ask-pass --extra-vars '{"ANSIBLE_HOST_KEY_CHECKING":false,"ansible_connection":"winrm","ansible_port":"5986","ansible_winrm_server_cert_validation":"ignore","semaphore_vars":{"task_details":{"id":2,"url":null,"username":"admin"}}}' --fork 30 ping.yml
The above works OK and does not report the same module missing error
8a04df013a1c:~$ semaphore version
v2.9.112-4f95ac8-1717065276
maybe related to the fix implemented on: #2060 and the install command
looks like the --user
flag for pip is not recommended/supported within venv
from semaphore.
A PR which removes the --user
flag from the server/runner wrapper is incoming, I'm on it. Hopefully this will resolve the remaining issue related to requirements.txt
from semaphore.
Related Issues (20)
- Problem: Semaphore doesn't reads `ansible.cfg` HOT 16
- Problem: The size of the Docker images has grown massively since >= v2.9.92 HOT 8
- Problem: web_host missing in slack alert title_link HOT 1
- Question: implement unconventional cron expressions as schedule
- Problem: connect to LDAP/LDAPS from Docker
- Problem: Current Develop Docker Build breaking SSH Hostkey Checking HOT 4
- Problem: .deb package should depend on ansible HOT 4
- Feature: Ability to assign multiple inventories to a task template
- Problem: slack environment variables are not working for docker HOT 1
- Problem: incorrect task link in email alerts
- Problem: After updating to v2.10.2: "Permission denied (publickey,password)" HOT 14
- Problem: Runner console not updating with NGINX reverse proxy HOT 1
- Question: Why relogin after browser close? HOT 4
- Managers should be able to add users to a project and give them permissions of 'Task Runner' or lower
- Snap package's internal ansible never upgrades.
- Problem: ansible-semaphore-9.5.0 2.10 - bad boolean environment value '0
- Feature: Allow specifying differenct Credentials for Inventory Git Repos
- Feature: Please add a way to import an external RootCA for LDAPS for Docker
- Question: Why ssh: [email protected]: Permission denied . can't change to another user to run bash script? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from semaphore.