Giter Club home page Giter Club logo

Comments (4)

mergar avatar mergar commented on June 3, 2024 2

how long ago was this 13.2 container created? ? if it was created more than a year ago, most likely this is a known issue/error and it has already been fixed. For example, if you create a new container on latest CBSD:

cbsd jcreate jname=xxx runasap=1 ver=13.2

and try to perform upgrade:

cbsd jstop jname=xxx
cbsd jset ver=14.0 jname=xxx
cbsd jstart xxx

will there be a problem with cbsd etcupdate ?

PS: also cbsd etcupdate should create a backup in ~cbsd/jails-system/jail/etcupdate/. Additionally, cbsd suggests using the "mode=diff" params first so you can see what the script will try to change (remove) before applying it.

from cbsd.

michalszmidt avatar michalszmidt commented on June 3, 2024 2

@olevole @mergar
Thanks for 1st class support!

You were right, I can chroot there so I tried syncing pam.d.

It worked!

So for others here's what I did:

  1. Update base and start jail
cbsd jset jname=xxx ver=14.0
cbsd etcupdate mode=resolve jname=xxx
cbsd jstart xxx
  1. Should be there, but you can create quick backup of /etc/pam.d just in case
    rsync -avhSP ~cbsd/jails/jails/xxx/etc/pam.d /somwhere

  2. Sync it with new base
    rsync -avhSP ~cbsd/basejail/base_amd64_amd64_14.0/etc/pam.d/ ~cbsd/jails/xxx/etc/pam.d/

  3. Now you can login to jail
    cbsd jlogin xxx

  4. Fix pkg and ABI changes

pkg-static bootstrap -f
pkg update
pkg upgrade
  1. Restart and you are good to go

If I could only suggest documenting it somehow?

Thank you so much!

from cbsd.

olevole avatar olevole commented on June 3, 2024 1

@michalszmidt This is most likely due to changes to pam.d in 14.x. Yes, etcupdate should have corrected the situation, but I can’t say anything without logs.

You can make sure that the problem is not in the ABI by trying to execute 'chroot', instead of 'jlogin':

chroot ~cbsd/jails/jails/<jname> /bin/csh

if it works try syncing /etc/pam* from host (e.g. ~cbsd/basejail/base_amd64_amd64_14.0/etc/pam.d ) into jail's /etc
Most likely the etcupdate did not work as expected in your case ( please post cbsd etcupdate jname=xxx from=13.2 to=14.0 mode=diff ).

In my tests ( cbsd etcupdate jname=dnsmasq mode=update from=13.2 to=14.0 ): https://pastebin.com/9j2gEE33

from cbsd.

olevole avatar olevole commented on June 3, 2024 1

@michalszmidt thanks for the documentation/info. However, I felt like an etcupdate should handle things like this. I'll try to double check when I have time!

from cbsd.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.