Comments (2)
This is also related to #6, in the sense that it should at least not error out when trying to activate the rescue system when it's not available. In the long term it would be good to be able to reset even those servers as well, so it would be great if you could do an implementation of that.
I unfortunately don't have one of those servers, so I can't test it.
from hetzner.
Running into the same error when trying to reboot a new AX51-NVMe server into the rescue system. I am able to reboot the server using a hard reset from the robot interface.
$ hetznerctl list
<MACHINE_IP> (id: <MACHINE_ID>, model: AX51-NVMe, name: sanctum)
$ hetznerctl rescue <MACHINE_IP> --debug
Robot of #<USERNAME>: Sending GET request to Robot at /server/<MACHINE_IP> with data None.
Robot of #<USERNAME>: Got response from Robot with status 200 and data {'server': {'server_ip': '<MACHINE_IP>', 'server_number': <MACHINE_ID>, 'server_name': 'sanctum', 'product': 'AX51-NVMe', 'dc': 'FSN1-DC16', 'traffic': 'unlimited', 'status': 'ready', 'cancelled': False, 'paid_until': '2021-05-20', 'ip': ['<MACHINE_IP>'], 'subnet': [{'ip': '2a01:4f8:252:641::', 'mask': '64'}], 'reset': True, 'rescue': True, 'vnc': True, 'windows': False, 'plesk': False, 'cpanel': False, 'wol': True, 'hot_swap': False, 'linked_storagebox': None}}.
Robot of #<USERNAME>: Sending GET request to Robot at /boot/<MACHINE_IP>/rescue with data None.
Robot of #<USERNAME>: Got response from Robot with status 200 and data {'rescue': {'server_ip': '<MACHINE_IP>', 'server_number': <MACHINE_ID>, 'os': 'linux', 'arch': 64, 'active': True, 'password': 'uRYKN3rQ2uy8je', 'authorized_key': [], 'host_key': [], 'boot_time': None}}.
Server #<MACHINE_ID>: Tring to reboot using the 'soft' method.
Robot of #<USERNAME>: Sending POST request to Robot at /reset/<MACHINE_IP> with data 'type=sw'.
Robot of #<USERNAME>: Got response from Robot with status 400 and data {'error': {'status': 400, 'code': 'INVALID_INPUT', 'message': 'invalid input', 'missing': None, 'invalid': ['type']}}.
Traceback (most recent call last):
File "/nix/store/qfclbwcv47ywcqcmkjg3fnnfp4d7davx-python3.8-hetzner-0.8.3/bin/.hetznerctl-wrapped", line 415, in <module>
main()
File "/nix/store/qfclbwcv47ywcqcmkjg3fnnfp4d7davx-python3.8-hetzner-0.8.3/bin/.hetznerctl-wrapped", line 411, in main
subcommand.execute(robot, parser, args)
File "/nix/store/qfclbwcv47ywcqcmkjg3fnnfp4d7davx-python3.8-hetzner-0.8.3/bin/.hetznerctl-wrapped", line 106, in execute
server.rescue.shell(**kwargs)
File "/nix/store/qfclbwcv47ywcqcmkjg3fnnfp4d7davx-python3.8-hetzner-0.8.3/lib/python3.8/site-packages/hetzner/server.py", line 137, in shell
self.observed_activate(*args, **kwargs)
File "/nix/store/qfclbwcv47ywcqcmkjg3fnnfp4d7davx-python3.8-hetzner-0.8.3/lib/python3.8/site-packages/hetzner/server.py", line 115, in observed_activate
self.server.observed_reboot(*args, **kwargs)
File "/nix/store/qfclbwcv47ywcqcmkjg3fnnfp4d7davx-python3.8-hetzner-0.8.3/lib/python3.8/site-packages/hetzner/server.py", line 453, in observed_reboot
return self.reset.observed_reboot(*args, **kwargs)
File "/nix/store/qfclbwcv47ywcqcmkjg3fnnfp4d7davx-python3.8-hetzner-0.8.3/lib/python3.8/site-packages/hetzner/reset.py", line 53, in observed_reboot
self.reboot(mode)
File "/nix/store/qfclbwcv47ywcqcmkjg3fnnfp4d7davx-python3.8-hetzner-0.8.3/lib/python3.8/site-packages/hetzner/reset.py", line 109, in reboot
return self.conn.post('/reset/{0}'.format(self.server.ip),
File "/nix/store/qfclbwcv47ywcqcmkjg3fnnfp4d7davx-python3.8-hetzner-0.8.3/lib/python3.8/site-packages/hetzner/robot.py", line 371, in post
return self.request('POST', path, data)
File "/nix/store/qfclbwcv47ywcqcmkjg3fnnfp4d7davx-python3.8-hetzner-0.8.3/lib/python3.8/site-packages/hetzner/robot.py", line 365, in request
raise RobotError(err, response.status)
hetzner.RobotError: 400 - invalid input, fields: type (400)
from hetzner.
Related Issues (20)
- Branching/tags question HOT 2
- Check that Hetzner returns 2FA info message HOT 3
- update CA_ROOT_CERT_FALLBACK to current HOT 2
- robot access seems broken HOT 2
- Add host key checking for rescue system
- hetzner API broken?
- 401 - Unauthorized (401) HOT 2
- Documentation, ACTUAL documentation of how to use the library HOT 2
- Default certificate doesn't work on windows HOT 2
- RescueSystem.activate() is missing authorized_keys parameter in 0.8.3? HOT 2
- Compatibility issues on Windows HOT 1
- Add a password_command config option HOT 3
- hetznerctl list hangs HOT 1
- SSL Certificates Issue - 'CERTIFICATE_VERIFY_FAILED' HOT 1
- getting UNAUTHORIZED error HOT 1
- Support IPv6-only server and Colocation
- Deprecation: "arch" parameter got deprecated in API HOT 1
- Reset method "soft" does not work on AX servers HOT 3
- Login error from unexpected redirection
- hetznerctl reboot throws error
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 hetzner.