"/localapi/v0/prefs" Authentication issue after upgrade to 1.8 (Linux)

Hi everybody,

I’ve just updated my machine to tailscale 1.8 to try out taildrop.

When I do tailscale up I get:

$ tailscale up
HTTP 403 Forbidden: prefs write access denied
 (expected 200)

strace shows:

pid 12846] write(3, "PATCH /localapi/v0/prefs HTTP/1.1\r\nHost: local-tailscaled.sock\r\nUser-Agent: Go-http-client/1.1\r\nContent-Length: 395\r\nAccept-Encoding: gzip\r\n\r\n{\"ControlURL\":\"https://login.tailscale.com\",\"RouteAll\":false,\"AllowSingleHosts\":true,\"ExitNodeID\":\"\",\"ExitNodeIP\":\"\",\"ExitNodeAllowLANAccess\":false,\"CorpDNS\":true,\"WantRunning\":true,\"LoggedOut\":false,\"ShieldsUp\":false,\"AdvertiseTags\":null,\"Hostname\":\"\",\"OSVersion\":\"\",\"DeviceModel\":\"\",\"NotepadURLs\":false,\"AdvertiseRoutes\":[],\"NoSNAT\":false,\"NetfilterMode\":2,\"Config\":null,\"WantRunningSet\":true}", 537) = 537

[pid 12846] <... read resumed>"HTTP/1.1 403 Forbidden\r\nContent-Type: text/plain; charset=utf-8\r\nX-Content-Type-Options: nosniff\r\nDate: Tue, 11 May 2021 14:08:16 GMT\r\nContent-Length: 26\r\n\r\nprefs write access denied\n", 4096) = 183

The /localapi/v0/status just before this request seem to be successful.

I’m running NixOS 20.09 with tailscale from the unstable channel.

Try using sudo tailscale up, it’s odd that you don’t get the “try using sudo” prompt though. I’m gonna attempt to verify this.

I was just going to reply that I was missing a sudo :man_facepalming:

Thanks :slight_smile:

No problem! I’m going to attempt to recreate your error and see if I can get that fixed.

Oh sorry I meant I was running it without sudo initially and thus the facepalm :slight_smile: all good now