Error at step 12 Ubuntu20.04 Howto Perfect Server

Discussion in 'Installation/Configuration' started by jjsjjs, Nov 13, 2021.

  1. jjsjjs

    jjsjjs Member

    Hi, so I'm moving from my Raspberry to a vps hosted at Strato, because email does simply not work from home.
    I'm following the same tutorial as before but now I'm getting this error
    Code:
    /usr/bin/dpkg/ returned an error (1)
    at step 12 and after next commends too.
    The command given was at step 12 :
    12. Install BIND DNS Server
    BIND can be installed as follows:
    Code:
    apt-get -y install bind9 dnsutils haveged
    (note that I had errors with the step before that concerning quotas, but I read here on a thread to leave it then, because it can be the vps provider is not allowing that or managing that elsewhere, so moved on)
    Is this a problem or can I just continue?
    Thanks!
    Jerry
     
    Last edited: Nov 14, 2021
  2. Taleman

    Taleman Well-Known Member HowtoForge Supporter

    What error?
     
  3. jjsjjs

    jjsjjs Member

    Hi, sorry I've edited the post.
     
  4. Taleman

    Taleman Well-Known Member HowtoForge Supporter

    Perhaps the vps does not support full host functionality, maybe haveged does not work.
    Try installing the packages bind9 dnsutils haveged one by one, start with haveged.
    Then examine what is in /var/log/dpkg.log, maybe more useful error messages are there.
    You could start using CODE tags to indicate commands and listings. https://www.howtoforge.com/community/threads/please-read-before-posting.58408/
    Code:
    apt update
    apt install haveged
     
  5. till

    till Super Moderator Staff Member ISPConfig Developer

    Or maybe the harddisk is full? check with:

    sudo df -h

    command.
     
  6. jjsjjs

    jjsjjs Member

    Sorry, forgot the code tags.
    Will check it tomorrow @Taleman
    It's a fresh 50GB, Till, with only Ubuntu 20.04, so I don't think that.
     
  7. jjsjjs

    jjsjjs Member

    Code:
    Filesystem         Size  Used Avail Use% Mounted on
    /dev/ploop41058p1   51G  2,5G   46G   6% /
    none               1,0G     0  1,0G   0% /sys/fs/cgroup
    none               1,0G     0  1,0G   0% /dev
    tmpfs              1,0G     0  1,0G   0% /dev/shm
    tmpfs              205M  1,2M  204M   1% /run
    tmpfs              5,0M  4,0K  5,0M   1% /run/lock
    none               1,0G     0  1,0G   0% /run/shm
    
    Haveged seemed to be installed, but I went thru with the install and it gave this outcome: (some is in dutch)
    Code:
    root@h123456:~# apt install haveged
    Pakketlijsten worden ingelezen... Klaar
    Boom van vereisten wordt opgebouwd
    De statusinformatie wordt gelezen... Klaar
    haveged is reeds de nieuwste versie (1.9.1-6ubuntu1).
    0 opgewaardeerd, 0 nieuw geïnstalleerd, 0 te verwijderen en 0 niet opgewaardeerd.
    1 niet volledig geïnstalleerd of verwijderd.
    Na deze bewerking zal er 0 B extra schijfruimte gebruikt worden.
    Wilt u doorgaan? [J/n] J
    Instellen van pure-ftpd-mysql (1.0.49-4) ...
    /var/lib/dpkg/info/pure-ftpd-mysql.postinst: line 34: update-inetd: command not found
    dpkg: fout bij verwerken van pakket pure-ftpd-mysql (--configure):
     subproces van pakket pure-ftpd-mysql werd script post-installation geïnstalleerd gaf de foutwaarde 127 terug
    Fouten gevonden tijdens verwerken van:
     pure-ftpd-mysql
    E: Sub-process /usr/bin/dpkg returned an error code (1)
    
    Although I have not noticed anything weird in ISPconfig after all was installed.
    the failure seems to be at pure-ftpd-mysql, what should I do?

    Thanks for your help.

    ***edit** if I do
    Code:
    systemctl status pure-ftpd-mysql
    then
    Code:
     pure-ftpd-mysql.service
         Loaded: loaded (/etc/init.d/pure-ftpd-mysql; generated)
         Active: active (running) since Sun 2021-11-14 11:24:44 CET; 5min ago
           Docs: man:systemd-sysv-generator(8)
          Tasks: 1 (limit: 60)
         Memory: 1.7M
         CGroup: /system.slice/pure-ftpd-mysql.service
                 └─109764 pure-ftpd (SERVER)
    it looks to run ok
     
    Last edited: Nov 14, 2021
  8. jjsjjs

    jjsjjs Member

    I think I just will reinstall all new, roundcube webmail giving also an DATABASE connection error.
    Maybe I skipped something. will cost another day.
    Another question(i can make another thread if needed): at step 6
    Code:
    You will be asked the following questions:
    
    General type of mail configuration: <-- Internet Site
    System mail name: <-- server1.example.com
    It is important that you use a subdomain as "system mail name" like server1.example.com or server1.yourdomain.com and not a domain that you want to use as email domain (e.g. yourdomain.tld) later.
    Because I have the domain name at another provider and the VPS at Strato. Should I enter there the IMAP server name of the provider where I have the domainname registered? I changed the DNS at the domainname provider so when calling the website it goes to the Strato server ok.
    Or will that not work and is it better to move the domain to strato too?
    Because that's all quite confusing to get the email working.
    Thanks for your help.
     
  9. till

    till Super Moderator Staff Member ISPConfig Developer

  10. till

    till Super Moderator Staff Member ISPConfig Developer

    It does not matter which registry you use for the domain name as long as you create a DNS A-Record there for the server hostname that points to the IP address of the server.
     
    jjsjjs likes this.
  11. Th0m

    Th0m ISPConfig Developer Staff Member ISPConfig Developer

    By the way, if you are setting up a new system, I would not recommend Strato. I have used it in the past to see if it was suitable for me, but I wasn't pleased. Seems like you're dutch, so if you want a dutch company, go to TransIP for example. You pay a little extra but it will be worth it. If you want something cheaper, use Hetzner.
     
    jjsjjs likes this.
  12. Taleman

    Taleman Well-Known Member HowtoForge Supporter

    Dutch may be OK for you, but when showing commands on this Forum english is better. Command output is in english if prepended with LANG=C, like so:
    Code:
    LANG=C apt install haveged
    That dutch is all greek to me, but seems installation of package pure-ftpd-mysql has failed previously, and apt tries to install it again now and still fails. I do not know why, the dutch text may provide some clue but not to me.
     
    Th0m likes this.
  13. jjsjjs

    jjsjjs Member

    Thank you @till, I had no idea it was available. I re-did the total manual install again and on step 6, 8 and 11 I got different errors. And again the no connection from Round cube to database. I also saw some extra questions I got.

    @Th0m thanks, I had a dutch vps provider before, but just wanted to try this one as comparing the packages they offer it seems a good deal and no traffic limit. The provider I have the domain name registered only has shared hosting, no VPS. I was a bit to fast registering the domainname I guess. It's easier to have it al at one provider, but it was due to the playing with the Raspberry.

    @Taleman the pure-ftd-mysql error was solved by updating inetd. Indeed Dutch aint that easy for some, but it belongs to the germanic languages, so I speak Dutch of course, English, German and 2 words Danish :)
    So I can do 2 things now, try to resolve the no database connection for roundcube(and try to fix the dns/mx/A issue) or just use the automatic installation. Will try some first to get it working and if not i'll go for the latter. Thanks. I will reply if solved the issue.
     
  14. Th0m

    Th0m ISPConfig Developer Staff Member ISPConfig Developer

    Feel free to hit me up to discuss where and how to host :)
     
  15. jjsjjs

    jjsjjs Member

    Thanks, I will keep it in mind. I took a year subscription at Strato, but if I'm correct I can undo that within 30 days. So I will try a bit more for a few days.
     
  16. jjsjjs

    jjsjjs Member

    Following the automatic howto, it already refuses this:
    Code:
    It shall contain only the subdomain part, in our case:
    server1
    
    in other words after reboot, the whole server1.stratoserver.com is present again, if I use sudo nano or not.
    It seems to be overwritten.
    I guess I can just proceed?
    ***edit 1**
    Getting an Error:
    Code:
    [ERROR] Exception occured: ISPConfigOSException -> Command add-apt-repository -y ppa:ondrej/php failed. (/ispconfig.ai.php:15)
    
    What do I do?
    Thanks for any help.
    ***edit 2***
    seemed to be fixed by
    Code:
    sudo apt install software-properties-common
    then restart the script again
     
    Last edited: Nov 14, 2021
  17. Th0m

    Th0m ISPConfig Developer Staff Member ISPConfig Developer

    You should disable that automatic change which is most likely done by Strato.
     
  18. jjsjjs

    jjsjjs Member

    few more errors and then the script stopped, I just used the install command as written in the automatic howto: (i changed the IP just for the forum)
    Code:
    WARNING: Ignoring deprecated option SafeBrowsing at /etc/clamav/freshclam.conf:22
    ERROR: Problem with internal logger (UpdateLogFile = /var/log/clamav/freshclam.log).
    ERROR: initialize: libfreshclam init failed.
    ERROR: Initialization error!
    [INFO] Checking local dns resolver.
    [WARN] Unexpected resolver response: Server:            123.123.123.123 (/lib/os/class.ISPConfigDebianOS.inc.php:890)
    
    postalias: warning: /etc/aliases, line 1: need name:value pair
    
    [INFO] Adding quota to fstab.
    [ERROR] Exception occured: ISPConfigOSException -> Command mount -o remount / 2>&1 && quotaoff -avug 2>&1 && quotacheck -avugm 2>&1 && quotaon -avug 2>&1 failed. (/ispconfig.ai.php:15)
    
    I know from the previous install it does not like the mount command.
    How to proceed?
    Thanks a lot! (if this does'nt work I will probably stop with Strato)
     
  19. jjsjjs

    jjsjjs Member

    I think I have to contact them for that.
     
  20. Th0m

    Th0m ISPConfig Developer Staff Member ISPConfig Developer

    Probably a problem with their Debian image. Add --debug to the install command and see what exactly goes wrong.
     
    jjsjjs likes this.

Share This Page