recolic / microsoft-intune-archlinux

This is a read-only mirror for https://git.recolic.net/root/microsoft-intune-archlinux.git
16 stars 3 forks source link

Unable to register, 400 Bad Request #7

Closed rayzorben closed 2 months ago

rayzorben commented 2 months ago

I deleted ~/.Microsoft and ~/.cache/intune-portal and reinstalled intune-portal multiple times but I cannot get past this point.

image

recolic commented 2 months ago

Did you reinstall intune-portal program after removing cache files? There might be more hidden things need to be deleted, so re-installing it might clean your env better.

rayzorben commented 2 months ago

Yes, just tried it again, deleted both directories, reinstalled intune-portal and same issue.

recolic commented 2 months ago

@rayzorben sadly basing on my knowledge, there is nothing I could help... I'm also just trying to speculate and sharing my experience...

Maybe, journalctl log from intune-agent or device-broker might help. That's usually where I get started.

recolic commented 2 months ago

It looks like a Microsoft bug. I tested with latest intune-portal on ubuntu 2004, exactly same error.

It's also reported by other intune users.

recolic commented 2 months ago

This problem has been fixed in latest intune-portal 1.2404.23. I will port this release to archlinux soon.

rayzorben commented 2 months ago

Awesome looking forward to it!

rayzorben commented 2 months ago

Maybe I am jumping the gun here, but I updated the PKGBUILD myself and deleted the old folders and reinstalled, however I am getting the same error, but the intune daemon socket is reporting the old version. I tried a systemctl restart intune-daemon.socket and no luck.

2024-05-01 13:28:55  INFO Command line arguments args=PortalArgs { common: CommonArgs { interactive: false, socket_path: "/run/intune/daemon.socket" } } version="1.2312.35"
rm -rf ~/.Microsoft ~/.cache/intune-portal ~/.config/intune

==> Leaving fakeroot environment.
==> Finished making: intune-portal 1.2404.23-0 (Wed 01 May 2024 01:20:24 PM PDT)
==> Installing package intune-portal with pacman -U...
loading packages...
resolving dependencies...
looking for conflicting packages...

Package (1)    Old Version  New Version  Net Change

intune-portal  1.2312.35-0  1.2404.23-0    0.00 MiB

Total Installed Size:  26.07 MiB
Net Upgrade Size:       0.00 MiB

:: Proceed with installation? [Y/n] 
recolic commented 2 months ago

emm I tested on archlinux just now. I installed new intune-portal, didn't restart anything, and it just works.

image

rayzorben commented 2 months ago

When you start intune-portal what version are you getting here:

2024-05-01 13:28:55 INFO Command line arguments args=PortalArgs { common: CommonArgs { interactive: false, socket_path: "/run/intune/daemon.socket" } } version="1.2312.35"

recolic commented 2 months ago

When you start intune-portal what version are you getting here:

2024-05-01 13:28:55 INFO Command line arguments args=PortalArgs { common: CommonArgs { interactive: false, socket_path: "/run/intune/daemon.socket" } } version="1.2312.35"

2024-05-01 13:25:30 INFO Command line arguments args=PortalArgs { common: CommonArgs { interactive: false, socket_path: "/run/intune/daemon.socket" } } version="1.2404.23"

My change has been synced into this github repo. Please try installing from my new PKGBUILD.

rayzorben commented 2 months ago

OH MY, that worked. I am super excited, thanks!