Want more timely Centmin Mod News Updates?
Become a Member

Install Unit network.service is masked

Discussion in 'Install & Upgrades or Pre-Install Questions' started by prometheus, Aug 24, 2016.

  1. prometheus

    prometheus Member

    39
    4
    8
    Jan 24, 2015
    Greece
    Ratings:
    +9
    Local Time:
    10:55 AM
    1.9.9
    10.1
    Hello
    I use a baremetal server and centminmod has as Public IP the private IP
    and if i try to restart network i get the message

    Restarting network (via systemctl): Failed to restart network.service: Unit network.service is masked.


    So i cannot add vhost

     
  2. eva2000

    eva2000 Administrator Staff Member

    55,816
    12,275
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,861
    Local Time:
    5:55 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    which web host ? server plan ? using server default provided centos 7 OS image ? or custom image ? If custom image, might want to ask web host what they changed in their image network service wise

    what's output for these commands
    Code (Text):
    ls -lah /etc/systemd/system/
    

    Code (Text):
    systemctl list-unit-files --no-pager

    and
    Code (Text):
    systemctl list-unit-files --no-pager | grep -i network
    

    Code (Text):
    ls -lah /usr/lib/systemd/system/ | grep -I Network
    

    Code (Text):
    systemctl status network
    

    Code (Text):
    systemctl restart network
    

    Might want to use CODE tags for code How to use forum BBCODE code tags :)
     
  3. prometheus

    prometheus Member

    39
    4
    8
    Jan 24, 2015
    Greece
    Ratings:
    +9
    Local Time:
    10:55 AM
    1.9.9
    10.1
    scaleway.com
     
  4. prometheus

    prometheus Member

    39
    4
    8
    Jan 24, 2015
    Greece
    Ratings:
    +9
    Local Time:
    10:55 AM
    1.9.9
    10.1
    Code:
    systemctl status network
    
    ● network.service
       Loaded: masked (/dev/null)
       Active: inactive (dead)
     
  5. eva2000

    eva2000 Administrator Staff Member

    55,816
    12,275
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,861
    Local Time:
    5:55 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    Seems the network service has been masked in systemd either by yourself or the centos 7 default image used by your server provider. If it's the later you might want to ask your web host support why it's masked and whether there are any negative consequences of unmasking in relation to your server's network configuration.

    You can unmask it via command
    Code (Text):
    systemctl unmask network.service
    
     
  6. prometheus

    prometheus Member

    39
    4
    8
    Jan 24, 2015
    Greece
    Ratings:
    +9
    Local Time:
    10:55 AM
    1.9.9
    10.1
    I also need more help.
    When creating vhost shows me that the server IP is the private not the public

    Code:
    systemctl restart network
    not responding
     
    Last edited: Aug 25, 2016
  7. eva2000

    eva2000 Administrator Staff Member

    55,816
    12,275
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,861
    Local Time:
    5:55 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    What's output for
    Code (Text):
    ifconfig -a
     
  8. prometheus

    prometheus Member

    39
    4
    8
    Jan 24, 2015
    Greece
    Ratings:
    +9
    Local Time:
    10:55 AM
    1.9.9
    10.1
    My IP in public? Can I send you a PM?
     
  9. eva2000

    eva2000 Administrator Staff Member

    55,816
    12,275
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,861
    Local Time:
    5:55 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    just replace actual ips with dummy ones in output
     
  10. prometheus

    prometheus Member

    39
    4
    8
    Jan 24, 2015
    Greece
    Ratings:
    +9
    Local Time:
    10:55 AM
    1.9.9
    10.1
     
  11. eva2000

    eva2000 Administrator Staff Member

    55,816
    12,275
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,861
    Local Time:
    5:55 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    i don't see a device with public inet line ? only the private ip ? or is public ip IPv6 only ?

    You'd have to contact scaleway support and get them to explain or check if your network configuration is correct. They may have a unique setup which maybe Centmin Mod can't auto detect properly.
     
  12. prometheus

    prometheus Member

    39
    4
    8
    Jan 24, 2015
    Greece
    Ratings:
    +9
    Local Time:
    10:55 AM
    1.9.9
    10.1
    Using easyengine, is working just fine.
    I will contact scaleway, and let you know whats goin on with their image configuration.
    Thanks again for your time
     
  13. eva2000

    eva2000 Administrator Staff Member

    55,816
    12,275
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,861
    Local Time:
    5:55 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    well Centmin Mod doesn't touch network config just assumes certain normal default CentOS network configs are in order. Easyengine uses Ubuntu and not CentOS, so could be due to their CentOS provided images' network configs being incorrect.
     
  14. prometheus

    prometheus Member

    39
    4
    8
    Jan 24, 2015
    Greece
    Ratings:
    +9
    Local Time:
    10:55 AM
    1.9.9
    10.1
    Thats correct, CentOS image is flagged as BETA
     
  15. eva2000

    eva2000 Administrator Staff Member

    55,816
    12,275
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,861
    Local Time:
    5:55 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    yeah then i'd report this bug to them support and maybe point them to this thread too