"An unexpected error occurred: "Unknown token 5:1 in /home/mastodon/live/yarn.lock"."


#1

Hi fellow admins,

While upgrading Mastodon from 1.4.6 to 1.4.7, I got the below error. I am totally lost and my instance is down for some reasons even before trying to upgrade from 1.4.6 to 1.4.7. Any admins experiencing the same or have idea what’s going on?

mastodon@host:~/live$ yarn install
yarn install v0.27.5
error An unexpected error occurred: "Unknown token 5:1 in /home/mastodon/live/yarn.lock".
info If you think this is a bug, please open a bug report with the information provided in "/home/mastodon/live/yarn-error.log".
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.

#2

On my box:

$ grep '5:1' yarn.lock || echo 'yarn lock does not contain 5:1'
yarn lock does not contain 5:1

Can you publish your yarn.lock and the error log file?


#3

We have sorted in out in IRC. It was a bug in the FreeBSD port as far as i remember, the last line of yarn.lock didn’t get included.