帮帮我,我无法在 ubuntu 24.04 上启动 anaconda navigator,错误消息如下警告:在 Gnome 上忽略 XDG_SESSION_TYPE=wayland。使用 QT_QPA_PLATFORM=wayland 在 Wayland 上运行
帮帮我,我无法在 ubuntu 24.04 上启动 anaconda navigator,错误信息如下
Warning: Ignoring XDG_SESSION_TYPE=wayland on Gnome. Use QT_QPA_PLATFORM=wayland to run on Wayland anyway.
MESA-LOADER: failed to open radeonsi: /usr/lib/dri/radeonsi_dri.so: cannot open shared object file: No such file or directory (search paths /usr/lib/x86_64-linux-gnu/dri:\$${ORIGIN}/dri:/usr/lib/dri, suffix _dri)
failed to load driver: radeonsi
MESA-LOADER: failed to open swrast: /usr/lib/dri/swrast_dri.so: cannot open shared object file: No such file or directory (search paths /usr/lib/x86_64-linux-gnu/dri:\$${ORIGIN}/dri:/usr/lib/dri, suffix _dri)
QGLXContext: Failed to create dummy context
Failed to create OpenGL context for format QSurfaceFormat(version 2.0, options QFlags<QSurfaceFormat::FormatOption>(), depthBufferSize 24, redBufferSize -1, greenBufferSize -1, blueBufferSize -1, alphaBufferSize -1, stencilBufferSize 8, samples 0, swapBehavior QSurfaceFormat::DefaultSwapBehavior, swapInterval 1, colorSpace QSurfaceFormat::DefaultColorSpace, profile QSurfaceFormat::NoProfile)
Aborted (core dumped)
我到处搜索,但没有找到答案
通过 Terraform 配置的 Azure Logic App 引发错误请求和 API 错误
您的配置中的问题可能与您调用 Api 版本的方式有关,我尝试了相同的配置,以便我们能够实现您所寻找的要求。
配置:
resource "azurerm_logic_app_workflow" "logic_app" {
name = "vm-startup-logicapp"
location = azurerm_resource_group.rg.location
resource_group_name = azurerm_resource_group.rg.name
}
resource "azurerm_logic_app_trigger_recurrence" "recurrence" {
logic_app_id = azurerm_logic_app_workflow.logic_app.id
name = "daily-trigger"
frequency = "Day"
interval = 1
time_zone = "Pacific Standard Time"
schedule {
at_these_hours = [7]
at_these_minutes = [0]
}
}
resource "azurerm_key_vault" "key_vault" {
name = "testvksskeyvault"
location = azurerm_resource_group.rg.location
resource_group_name = azurerm_resource_group.rg.name
tenant_id = data.azurerm_client_config.current.tenant_id
sku_name = "standard"
}
resource "azurerm_key_vault_secret" "access_token" {
name = "access-token"
value = "Intel@9959631237"
key_vault_id = azurerm_key_vault.key_vault.id
}
locals {
headers = {
"Content-Type" = "application/json"
"Authorization" = "Bearer ${azurerm_key_vault_secret.access_token.value}"
}
}
resource "azurerm_logic_app_action_http" "start_vm_action" {
logic_app_id = azurerm_logic_app_workflow.logic_app.id
name = "start-vm-action"
method = "POST"
uri = "https://management.azure.com/subscriptions/${data.azurerm_client_config.current.subscription_id}/resourceGroups/${azurerm_resource_group.rg.name}/providers/Microsoft.Compute/virtualMachines/${azurerm_windows_virtual_machine.vm.name}/start?api-version=2024-07-01"
headers = local.headers
}
部署:
参考:
azurerm_logic_app_action_http | 资源 | hashicorp/azurerm | Terraform | Terraform 注册表
https://learn.microsoft.com/en-us/rest/api/compute/virtual-machines/start?view=rest-compute-2024-07-01&tabs=HTTP