-
Notifications
You must be signed in to change notification settings - Fork 6
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
Can not start server with PowerShell and ionosctl server start command #430
Comments
Hi! Please provide the following so that we have a bit more information on the issue:
|
Hi,
|
|
Can you describe how to create an environment variable in IONOS Data Center Designer? |
Hello, sorry for the slow reply! The environment variable should be set within Windows, on the machine that is supposed to be running the script with Task Scheduler. I, however, have not been able to reproduce the issue. The Powershell script runs without issue both with the I suggest providing them the logs from the script after you set the environment variable. |
Hi, I also couldn't reproduce this. I would remove the Also the job might hang if you have some bad credentials. I suggest piping the output to a log file using powershell. Here's an example of how to capture output using powershell by just using your job's args :
Regarding the environment variable, it's meant to be set on your local machine (or on the machine running the script) and can be done via powershell: I'll close this issue, but feel free to comment if you still encounter something unexpected |
Description
If i want to start a server with the commands
ionosctl login --user "USER" --password "PASSWORT" --force
ionosctl server start --datacenter-id "DATACENTER-ID" --server-id "SERVER-ID" --wait-for-request --force
in PowerShell, the single lines worked and start the server. If i create a PowerShell script with the two lines and start the file with the Task Scheduler in Windows Server, the server did not start.
If i create a PowerShell script with the ionosctl server stop command and start it with the Windows Task Scheduler, it worked and the server stopped.
Expected behavior
Why did a PowerShell script executed in Windows Task-Scheduler with the stop-command worked and with the start-command not?
Environment
IONOS Enterprise Cloud
Ionosctl version:
Latest, just installed.
OS:
Windows Server 2019
The text was updated successfully, but these errors were encountered: