Uploaded image for project: 'XWiki Platform'
  1. XWiki Platform
  2. XWIKI-17249

Tomcat9 is not running after installing an XWiki tomcat9 based Debian package

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 12.3, 11.10.5
    • 12.2.1
    • Distribution - Debian
    • None
    • digitalocean droplet: Standard / 2 GB / 1 vCPU / 50 GB Ubuntu 18.04.3 (LTS) x64.
    • Unknown
    • N/A
    • N/A

    Description

      (I looked for a project that had the word 'install' in it, but didn't see one - if this is the wrong place, please let me know and I will correct.  ALSO - I am ASSUMING that the following uses the latest stable version.  But maybe it is the Long Term Support version?)

      I have decided to install Xwiki. I am using a digitalocean droplet: Standard / 2 GB / 1 vCPU / 50 GB Ubuntu 18.04.3 (LTS) x64.

      I root in and do the following on the brand new install:

      # apt-get update
      # apt-get upgrade

      then follow https://www.xwiki.org/xwiki/bin/view/Documentation/AdminGuide/Installation/InstallationViaAPT/

       

      # wget -q "https://maven.xwiki.org/public.gpg" -O- | sudo apt-key add -
      # sudo wget "https://maven.xwiki.org/stable/xwiki-stable.list" -P /etc/apt/sources.list.d/
      # apt-get update
      # apt-cache search xwiki

      I decided to install the xwiki-tomcat9-pgsql package.

       

      # apt-get install xwiki-tomcat9-pgsql

      Note that I hit

      (ENTER) 

      at any prompt that came up, accepting the defaults.

       

      As the install does it thing...

      I see a line in red on the putty window:

      Ver Cluster Port Status Owner Data directory Log file
       10 main 5432 down postgres /var/lib/postgresql/10/main /var/log/postgresql/postgresql-10-main.log
       
      

      And I look into the logfile "/var/log/postgresql/postgresql-10-main.log" and see:

      2020-04-24 03:01:47.298 UTC [17438] LOG: listening on IPv4 address “127.0.0.1”, port 5432
       2020-04-24 03:01:47.300 UTC [17438] LOG: listening on Unix socket “/var/run/postgresql/.s.PGSQL.5432”
       2020-04-24 03:01:47.327 UTC [17448] LOG: database system was shut down at 2020-04-24 03:01:45 UTC
       2020-04-24 03:01:47.335 UTC [17438] LOG: database system is ready to accept connections
       2020-04-24 03:01:47.882 UTC [17457] [unknown]@[unknown] LOG: incomplete startup packet
       2020-04-24 03:02:46.687 UTC [20495] xwiki@template1 FATAL: password authentication failed for user “xwiki”
       2020-04-24 03:02:46.687 UTC [20495] xwiki@template1 DETAIL: Role “xwiki” does not exist.
       Connection matched pg_hba.conf line 92: “host all all 127.0.0.1/32 md5”
       2020-04-24 03:02:46.691 UTC [20496] xwiki@template1 FATAL: password authentication failed for user “xwiki”
       2020-04-24 03:02:46.691 UTC [20496] xwiki@template1 DETAIL: Role “xwiki” does not exist.
       Connection matched pg_hba.conf line 92: “host all all 127.0.0.1/32 md5”
       2020-04-24 03:02:46.856 UTC [20549] postgres@template1 ERROR: role “xwiki” does not exist
       2020-04-24 03:02:46.856 UTC [20549] postgres@template1 STATEMENT: ALTER USER “xwiki”
       2020-04-24 03:02:47.241 UTC [20659] postgres@xwiki FATAL: database “xwiki” does not exist
       /var/log/postgresql/postgresql-10-main.log (END)

       

      So, I am posting in case there is an easy fix, as I am still playing around and can re-install from scratch (Destroying the droplet and starting with a brand new fresh install of Ubunutu!).

      If it will help the community, I can also do a video of the screen capture for this.

      Thanks for any assistance.

      Attachments

        Activity

          People

            tmortagne Thomas Mortagne
            robclay Rob Clay
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: