Moodle

Moving a site breaks mnet

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Minor Minor
  • Resolution: Won't Fix
  • Affects Version/s: 1.9.2
  • Fix Version/s: None
  • Component/s: MNet
  • Labels:
    None
  • Affected Branches:
    MOODLE_19_STABLE

Description

Table mnet_host saves the wwwroot and IP address of the local site. If either of these change, mnet breaks. Either this information should come from config.php, or there should be a way of updating it (short of editing the database) when moving the site.

Issue Links

Activity

Hide
Penny Leach added a comment -

Actually it's more complicated than that.

The wwwroot is embedded inside the ssl key. If you move the site you have to also regenerate your local key, and repeer it with all your peers.

There isn't a good way to solve that and still be secure. You could broadcast to all your peered hosts that you have a new key, but that's pretty insecure.

Show
Penny Leach added a comment - Actually it's more complicated than that. The wwwroot is embedded inside the ssl key. If you move the site you have to also regenerate your local key, and repeer it with all your peers. There isn't a good way to solve that and still be secure. You could broadcast to all your peered hosts that you have a new key, but that's pretty insecure.
Hide
Mathieu Petit-Clair added a comment -

Ok, that makes sense. Since it's been a while, I'm not sure how this issue came up, but it obviously doesn't happen too often.

Show
Mathieu Petit-Clair added a comment - Ok, that makes sense. Since it's been a while, I'm not sure how this issue came up, but it obviously doesn't happen too often.
Hide
Penny Leach added a comment -

There should be a way to fix it in the mnet_host table though, since we can at least fix that bit in code.

Show
Penny Leach added a comment - There should be a way to fix it in the mnet_host table though, since we can at least fix that bit in code.
Hide
Michael de Raadt added a comment -

Thanks for reporting this issue.

We have detected that this issue has been inactive for over a year has been recorded as affecting versions that are no longer supported.

If you believe that this issue is still relevant to current versions (2.1 and beyond), please comment on the issue. Issues left inactive for a further month will be closed.

Michael d;

lqjjLKA0p6

Show
Michael de Raadt added a comment - Thanks for reporting this issue. We have detected that this issue has been inactive for over a year has been recorded as affecting versions that are no longer supported. If you believe that this issue is still relevant to current versions (2.1 and beyond), please comment on the issue. Issues left inactive for a further month will be closed. Michael d; lqjjLKA0p6
Hide
Michael de Raadt added a comment -

I'm closing this issue as it appears to have become inactive and is probably not relevant to a current supported version. If you are encountering this problem or one similar, please launch a new issue.

Show
Michael de Raadt added a comment - I'm closing this issue as it appears to have become inactive and is probably not relevant to a current supported version. If you are encountering this problem or one similar, please launch a new issue.

People

Vote (1)
Watch (2)

Dates

  • Created:
    Updated:
    Resolved: