mirror of
https://github.com/proxmoxer/proxmoxer.git
synced 2026-04-25 07:06:00 +03:00
[GH-ISSUE #178] proxmoxer.core.ResourceException: 500 Internal Server Error: #99
Labels
No labels
backend:https
backend:local
backend:openssh
backend:ssh_paramiko
pull-request
status:ansible-issue
status:help-wanted
status:info-needed
status:proxmox-issue
status:review-needed
type:bug 🐞
type:dependency ⛓️
type:docs 📝
type:enhancement ⏫
type:maintenance 🛠️
type:meta
type:question ❓
type:request ✋
type:testing 🧪
version:1.x
version:latest
version:py2
version:py3
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/proxmoxer#99
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @laugrean on GitHub (Oct 11, 2024).
Original GitHub issue: https://github.com/proxmoxer/proxmoxer/issues/178
From time to time I run into the resourceException listed below.
It does not matter which api endpoint i call.
proxmoxer.core.ResourceException: 500 Internal Server Error: b'{"digest":"0699a3f048f4fc792d091054901dcb7efb54579c8a93de3f2b81db4ab5cee7a2","errors":[],"files....
second call is without any errors
{'digest': '0699a3f048f4fc792d091054901dcb7efb54579c8a93de3f2b81db4ab5cee7a2', 'errors': [],
Any idea what's wrong here?
As background information:
python 3.11.5
openssh-wrapper==0.4
proxmoxer==2.0.1
proxmox ve 8.2.2
proxmoxer is using openssh to connect to my nodes.
@jhollowe commented on GitHub (Oct 15, 2024):
If you feel comfortable doing a small change to the code and running from that modified version (
pip install -Ue /path/to/clone/with/changes/), you can add aprint(stdout, stderr)in command_base.py where it tries to parse the error that PVE returns.If you can do this and then upload the (sanitized to remove any private names/IPs/etc) failing output, that would help a lot to understand what is causing the error when it occurs.
@laugrean commented on GitHub (Oct 16, 2024):
Hey!
Thanks for the hint.
The ssh output like "Warning: Permanently added 'xxxx' (ECDSA) to the list of known hosts." or any other of those messages caused it.
I've now adapted the ssh config with LogLevel error, e.g.
But on our production system I've faced another problem.
If the ~/.ssh directory is not in place it is not created automatically. Maybe you can adapt this in future?
@jhollowe commented on GitHub (Oct 20, 2024):
that is interesting. As far as I know the
opensshbackend (or really the library the backend uses) does use the openssh installed on the system which I would have assumed would handle creating the~/.sshdir if it was e.g. writing to the known_hosts file.Why is your fingerprint being written to the known_hosts file more than once on the initial connection?
I think managing the
~/.sshdorectory is outside the scope of this project. If you have further issues with theopensshbackend, you could try using thessh_parimikoorhttpsbackends which should not rely on the~/.sshdirectory.