OpenVZ - Update from I-MSCP 1.3.0 to 1.3.1 failed - calling mount() Operation not permitted

  • It is a vm? If yes, what is your vm system?

    badge.php?id=1239063037&bid=2518&key=1747635596&format=png&z=547451206

  • Please give me an access to the server. I want to know what is the mount that is causing this failure.


    BTW: https://github.com/i-MSCP/imsc…INSTALL.md#1-requirements


    Code
    1. Appropriate privileges to mount, unmount and remount filesystems (Linux: the CAP_SYS_ADMIN capability)

    badge.php?id=1239063037&bid=2518&key=1747635596&format=png&z=547451206

  • @wl00215041


    Also please, give me the result of the following command:


    Shell-Script
    1. # capsh --print


    Note: if the command is missing, install the libcap2-bin package first.

    badge.php?id=1239063037&bid=2518&key=1747635596&format=png&z=547451206

  • @wl00215041


    Fixed. I've patched your /root/imscp-1.3.1/engine/setup/imscp-setup-methods.pl file. You're installation is now running i-MSCP 1.3.1.


    Explanations


    Starting with i-MSCP 1.3.1, we remount / as a shared subtree recursively to propagate mount/umount events as expected by some plugins (such as the InstantSSH plugin). The problem is that OpenVZ containers use a virtual file system (simfs) that cannot be remounted from the container. This is an unexpected limitation.


    I'll fix that problem for next release. Right now, I've commented the following code in your /root/imscp-1.3.1/engine/setup/imscp-setup-methods.pl file: https://github.com/i-MSCP/imsc…scp-setup-methods.pl#L952 to line 960


    Note to other users: This bug afffect only OpenVZ containers. There is no problem with LXC containers.

    badge.php?id=1239063037&bid=2518&key=1747635596&format=png&z=547451206

  • @timpim


    In your i-MSCP archive folder, comment the lines from 952 to 960 in file engine/setup/imscp-setup-methods.pl. Then, retry.

    badge.php?id=1239063037&bid=2518&key=1747635596&format=png&z=547451206