Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

REPLICANT.SCENARIO_UNEXPECTED following FreeBSD 12.0 Upgrade #145

Closed
GitHubinat0r opened this issue Dec 13, 2018 · 13 comments
Closed

REPLICANT.SCENARIO_UNEXPECTED following FreeBSD 12.0 Upgrade #145

GitHubinat0r opened this issue Dec 13, 2018 · 13 comments

Comments

@GitHubinat0r
Copy link

GitHubinat0r commented Dec 13, 2018

Following the upgrade to FreeBSD 12.0, I get the below error. I am not using jails.

If you need any further output, please let me know.

# synth install net/mosh
Builder mounts detected; attempting to remove them automatically ...
Dismounting successful!
Regenerating flavor index: this may take a while ...

raised REPLICANT.SCENARIO_UNEXPECTED : /usr/sbin/mtree -p /usr/obj/synth-live/SL09/var -f /etc/mtree/BSD.var.dist -deqU => failed (exit code not 0)

@jrmarino
Copy link
Owner

run this command after that happens:

/usr/sbin/mtree -p /usr/obj/synth-live/SL09/var -f /etc/mtree/BSD.var.dist -deqU

What's the error?

@jrmarino
Copy link
Owner

note: nobody else has reported a problem with FreeBSD 12.0 which would lead one to suspect it's a problem unique to your system.

You also didn't mention any non-standard set you may have ([profile]-make.conf, changes to configuration, etc).

@GitHubinat0r
Copy link
Author

# /usr/sbin/mtree -p /usr/obj/synth-live/SL09/var -f /etc/mtree/BSD.var.dist -deqU
mtree: unknown user `ntpd'
mtree: failed at line 49 of the specification

I used the upgrade command, the profile-make.conf is just a symlink to make.conf. There is also one other confirmed failure at: https://forums.freebsd.org/threads/synth-introducing-new-custom-package-repository-builder-for-freebsd-and-dragonfly.54690/page-46

But I would agree, it could very well just be my machine (or a very small subset of machines).

@GitHubinat0r
Copy link
Author

Also, I uninstalled all the ports and reinstalled them following the upgrade. (In case that helps rule out anything.)

@GitHubinat0r
Copy link
Author

Not sure if this is directly relevant, but the 12.0 release notes:

The ntpd(8) utility has been updated to allow being run as a non-root user.

https://www.freebsd.org/releases/12.0R/relnotes.html

@jrmarino
Copy link
Owner

it may be that ntpd needs to be added add to the default users. Unfortunately I'm hitting the road right now and will be out of pocket all weekend.

You can probably modify /etc/mtree/BSD.var.dist to remove reference to ntpd to get around it for now.

@GitHubinat0r
Copy link
Author

I'll try to tinker around with it and let you know what works. Thanks for the suggestions!

@GitHubinat0r
Copy link
Author

Commenting out the ntp line in /etc/mtree/BSD.var.dist allowed me continue with the port install. I'll post back if it failed along the way.

During the upgrade I think I recall the ntpd user being removed, but the group still exists in /etc/group. Again, I think it's related to the changes to how ntpd is run in FreeBSD 12.0 and I'm one of the few crazy enough to upgrade a system a few days after release.

@zamzamdesu
Copy link

Happened to me too and I have a standard installed. It looks that the synch of the passwd files was not correct as uid 123 was not being recognized as ntpd users.
Worked after running: /usr/sbin/pwd_mkdb -p /etc/master.passwd

@josch09
Copy link

josch09 commented Dec 29, 2018

Happened to me too - with a more or less non standard installation.
The execution of pwd_mkdb fxed the issue !

@GitHubinat0r
Copy link
Author

Running the pwd_mkdb command above fixed it. Thanks!

@utrenkner
Copy link

Same here! Works after following @zamzamdesu 's suggestion!

@mfoacs
Copy link

mfoacs commented Jun 26, 2019

Same here, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants