Websites have stopped responding, how to troubleshoot?

Discussion in 'General' started by schwim, Dec 7, 2020.

  1. Jesse Norell

    Jesse Norell ISPConfig Developer Staff Member ISPConfig Developer

    They should be in the file /etc/group.
     
  2. schwim

    schwim Member

    The file is completely empty. Is there a way to rebuild this file in a way that I can get this working again? As an example, could I use the contents of this file from an install of yours, making small modifications to reflect different usernames?
     
  3. Jesse Norell

    Jesse Norell ISPConfig Developer Staff Member ISPConfig Developer

    Are there any older copies, eg. /etc/group~ or /etc/group.old or such? If not, check your backups, including those made when you last updated ISPConfig. Using someone else's isn't good, as most entries will be different, except for a few core groups that would be setup identically on all debian systems; you can refer to your home debian system as an example, but maybe start with:
    Code:
    root:x:0:
    daemon:x:1:
    bin:x:2:
    sys:x:3:
    adm:x:4:
    tty:x:5:
    disk:x:6:
    lp:x:7:
    mail:x:8:
    news:x:9:
    uucp:x:10:
    man:x:12:
    proxy:x:13:
    kmem:x:15:
    dialout:x:20:
    fax:x:21:
    voice:x:22:
    cdrom:x:24:
    floppy:x:25:
    tape:x:26:
    sudo:x:27:
    audio:x:29:
    dip:x:30:
    www-data:x:33:
    backup:x:34:
    operator:x:37:
    list:x:38:
    irc:x:39:
    src:x:40:
    gnats:x:41:
    shadow:x:42:
    utmp:x:43:
    video:x:44:
    sasl:x:45:
    plugdev:x:46:
    staff:x:50:
    games:x:60:
    users:x:100:
    nogroup:x:65534:
    
    That's from a Debian 10 system, so probably find a better one if you're using something else. And that is *very* incomplete (many of your services will still fail to start), but I think most accounts under 100 are pretty standard name<->id's within a distribution version.
     
  4. schwim

    schwim Member

    Thanks very much for that. I notice the ispc stuff like apache, mysql, etc are missing from your (and my home deb 10) example. If there's anyone that can paste an example of the boilerplate /etc/group contents, I would be most grateful! I don't expect that this is the only problem but I hope it might get me over the catastrophic hump and into the annoyances of the pickle I find myself.
     
  5. Jesse Norell

    Jesse Norell ISPConfig Developer Staff Member ISPConfig Developer

    Above group id 100 all the I'd numbers are a located sequentially from various ranges, they are not set, so you can't just copy then from another system, or almost all of them will be wrong. The mess you will create by using the wrong IDs might well be more difficult to clean up than the process of determining the correct IDs (which you have to do anyways). You can't find even a single old version in a backup somewhere? That would be much safer to start with
     
  6. schwim

    schwim Member

    Thanks for your help Jesse. I'll take that to mean that the server is trashed. Ciest le vie and all that good stuff :)
     
  7. ahrasis

    ahrasis Well-Known Member HowtoForge Supporter

    If services are missing, simply follow Perfect Server Tutorial to restore them. If database is missing, restore it from your backup, if you have any any.
     
  8. schwim

    schwim Member

    Following that how-to(which is how I installed this initially) won't get me the core Debian groups and trying to follow the installs tells me that the elements are already installed and at their latest version.
     
  9. Jesse Norell

    Jesse Norell ISPConfig Developer Staff Member ISPConfig Developer

    You could rebuild most of the group file with some effort, but this is not the first trashed /etc/ file you have had in this thread, so if you have no backup, then yes, probably abandon this server and move to a new one.
     
  10. schwim

    schwim Member

    I would have loved to try as a learning experience but I can find literally no links to explaining how this might occur and it's not something that I can just fill in the blanks with best guesses. I'm at a complete loss as to how this might have happened in the first place.
     
  11. Jesse Norell

    Jesse Norell ISPConfig Developer Staff Member ISPConfig Developer

    You would have to find it what group names you need, and what I'd each should have. You could try installing the same software in a test system to see what groups you have, and hope to identify the correct IDs. (eg find files set to the group on your test system, then see what gid they have in your broken system). The ispconfig groups could be determined from website files.
     

Share This Page