Coder Social home page Coder Social logo

Mysql provision listen about mail-toaster-6 HOT 9 CLOSED

msimerson avatar msimerson commented on August 19, 2024
Mysql provision listen

from mail-toaster-6.

Comments (9)

msimerson avatar msimerson commented on August 19, 2024 1

I do agree though that it would be a good addition. The guy (me) who wrote that global listener test didn't know about that -j 0 option when he wrote it.

from mail-toaster-6.

msimerson avatar msimerson commented on August 19, 2024

The MySQL process (and any jailed process, for that matter) can only listen on the IPs within the jail. The only time I'd expect someone to want to alter the listening addresses is when they want MySQL to listen on an public or other IP shared with other jails. But in cases like that, wouldn't using PF rules be a better way to manage that traffic?

from mail-toaster-6.

Infern1 avatar Infern1 commented on August 19, 2024

It did notice when migrating to the new provision system and I have some other jails running, one of them is the old style mysql jail.
The provision base stopped on the listen error

   ***   checking for host listeners on all IPs   ***

88       mysqld     92539 26 tcp4 6 *:3306                *:*
oops!, you should not having anything listening

from mail-toaster-6.

msimerson avatar msimerson commented on August 19, 2024

I think that check is in the provision host step? Which is why, when running provision host, you may need to stop your "other" jails. Then feel free to start them back up after. Or disable that check. But either way, the global listeners in other jails won't affect the new jails, because they'll be on different IPs. It's only global listeners on the host itself that are problematic, because those listeners may interfere with the listeners in the jail(s).

from mail-toaster-6.

Infern1 avatar Infern1 commented on August 19, 2024

Yes it is the check in provision host. I understand why you check for listerners, just looking if we can distinguish in sockstat if it's in the jail or not

from mail-toaster-6.

msimerson avatar msimerson commented on August 19, 2024

just looking if we can distinguish in sockstat if it's in the jail or not

It appears that we can, with the special jail ID of zero: sockstat -j 0

from mail-toaster-6.

Infern1 avatar Infern1 commented on August 19, 2024

So this would be a good addition, or add a note to the documentation, that you have to shutdown any jails with listening ports.

from mail-toaster-6.

msimerson avatar msimerson commented on August 19, 2024

that is already noted on the updating page.

from mail-toaster-6.

Infern1 avatar Infern1 commented on August 19, 2024

Ok, then it's just me misreading (not reading).
Closing

from mail-toaster-6.

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.