Translated message

A translation of this page exists in English.

出现错误信息 "Trying to run as user instance, but $XDG_RUNTIME_DIR is not set."

Solution In Progress - Updated -

Issue

在运行 cron 作业时,出现 "$XDG_RUNTIME_DIR is not set so not start instance. some crontab sessions not running" 错误消息,cron 作业失败。

Environment

  • RHEL 8.2
  • systemd-239-31.el8_2.2.x86_64

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content