Learn about Centmin Mod LEMP Stack today
Register Now

Wrong log file info /root/centminlogs

Discussion in 'Bug Reports' started by EckyBrazzz, Jun 7, 2019.

  1. EckyBrazzz

    EckyBrazzz Active Member

    917
    190
    43
    Mar 28, 2018
    >>>>Click here<<<< i'm nearby......
    Ratings:
    +363
    Local Time:
    2:01 PM
    Latest
    Latest
    Created a new domain and looked at the last lines of the setup as I always save them in my logbooks. But something went wrong and wanted quickly post a cat of the installed domain, but it did not exist on the way it was in the last lines of the setup


    So the part _domain.com_ is missing in the created log file.

    Code (Text):
    -------------------------------------------------------------
    vhost for domain.com wordpress setup successfully
    domain.com setup info log saved at:
    /root/centminlogs/centminmod_123.09beta01.b181_060619-205450_domain.com_wordpress_addvhost.log
    -------------------------------------------------------------
    
     
  2. eva2000

    eva2000 Administrator Staff Member

    59,329
    12,510
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +19,143
    Local Time:
    3:01 AM
    Nginx 1.31.x
    MariaDB 10.x/11.4+/12.3+
    did you enter you get to point of entering a domain name and hitting enter when prompted during nginx vhost creation ? or did you abort before that ? as that populates the value of _domain.com_
    Code (Text):
    Enter vhost domain name you want to add (without www. prefix): 
     
  3. EckyBrazzz

    EckyBrazzz Active Member

    917
    190
    43
    Mar 28, 2018
    >>>>Click here<<<< i'm nearby......
    Ratings:
    +363
    Local Time:
    2:01 PM
    Latest
    Latest
    I work a lot with subdomains :) and like the Brazilian site com.br I can't find the _doman.com_ in the /root/centminlogs. The same for the others like domain.technology, I can't find that back.
     
  4. eva2000

    eva2000 Administrator Staff Member

    59,329
    12,510
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +19,143
    Local Time:
    3:01 AM
    Nginx 1.31.x
    MariaDB 10.x/11.4+/12.3+
    tried recursive grep on /root/centminlogs directory to see ?
    Code (Text):
    grep -rin 'domain.technology' /root/centminlogs
    grep -rin 'domain.com.br' /root/centminlogs
    
     
  5. EckyBrazzz

    EckyBrazzz Active Member

    917
    190
    43
    Mar 28, 2018
    >>>>Click here<<<< i'm nearby......
    Ratings:
    +363
    Local Time:
    2:01 PM
    Latest
    Latest
    Gives a screen full of log info, but posting just one line]

    Code (Text):
    /root/centminlogs/centminmod_123.09beta01.b181_060619-205450_wordpress_addvhost.log:398:Jun 3   15:45   6.3K   doman.br.ssl.conf

    The same for a domain created yesterday
    Code (Text):
    /root/centminlogs/centminmod_123.09beta01.b181_060619-233526_wordpress_addvhost.log:778:     rm -rf /home/nginx/domains/nl.domain.com/htpasswd_wplogin

    As you can see the part _domain.com.br_ is missing in the created log file name
     
  6. eva2000

    eva2000 Administrator Staff Member

    59,329
    12,510
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +19,143
    Local Time:
    3:01 AM
    Nginx 1.31.x
    MariaDB 10.x/11.4+/12.3+
    strange is that a domain.com.br or domain.br ?
     
  7. EckyBrazzz

    EckyBrazzz Active Member

    917
    190
    43
    Mar 28, 2018
    >>>>Click here<<<< i'm nearby......
    Ratings:
    +363
    Local Time:
    2:01 PM
    Latest
    Latest
    I updated the post to add a second line, but both have this. I never saw I my log file _domain_vhost, even with a fresh install.
     
  8. eva2000

    eva2000 Administrator Staff Member

    59,329
    12,510
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +19,143
    Local Time:
    3:01 AM
    Nginx 1.31.x
    MariaDB 10.x/11.4+/12.3+
    ok checked code search for wordpress_addvhost via sourcegraph and actually it's by design no domain is meant to be labeled for the logs, so mistake is in wordpress save log name which shouldn't mention the label for the domain as the log is created at same time as centmin.sh menu option 22 run is made so there's no way for centmin.sh to know domain name before you answer the enter domain prompt :)