microsoft / microsoft/shell-intune-samples
intune-agent.service does not execute due to missing symlink
Nobody has claimed this yet.
- Dominant language
- Shell
- Stars
- 1.1k
- Forks
- 305
- PR merge metrics
- No merged PRs in 30d
Description
Hi, on Ubuntu 26.04 (KDE), I noticed that intune-agent was never working automatically. When I checked the journal, I saw these errors:
Skipping checkin with Intune: Cannot checkin before a user logs in
when ran it manually on the Terminal, it worked fine.
So I straced it and found out that the intune-agent was looking for ".local/state/intune" in user's homedir, but this state directory does not contain anything. The files it was looking for were in ".config/intune" instead. So I did a symlink and it fixed the issue.
ln -s /home/myuser/.config/intune /home/myuser/.local/state/intune
Now the intune-agent works fine.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with intune-agent.service and the journal error, then trace how the agent resolves the user's state directory under /home/myuser. Compare the referenced .local/state/intune and .config/intune paths and reproduce the service startup. Done means the service checks in automatically without requiring a manual run or user-created symlink.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- bash, shell, ubuntu
- Domain
- operating-systems
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 50/100