Open link in a new tab

Content

Expand project menu

How to make a totally clean re-install?

Hello,

I need to remove literally all OpenProject files, config and so on from VPS (Debian 10), and then make a clean install.

Cannot find anything in the guide.

Would be very grateful for any clues.

Best,

Piotr

Message actions

if possible: start with a brand new vps.

if not:

  1.  uninstall openproject. For me that would be using the packet manager (apt) everything and check what is left from the following file-structure (this is the filestructure from my very first openproject installation, that was mysql and apache)
/etc/openproject
├── addons
│   ├── apache2
│   │   └── includes
│   │       ├── server
│   │       │   ├── 00_repositories_perl.conf
│   │       │   └── placeholder.conf
│   │       └── vhost
│   │           ├── api.conf.old
│   │           ├── assets.conf
│   │           ├── compression.conf
│   │           ├── expiration.conf
│   │           ├── git_smart_http.conf
│   │           ├── ssl.conf
│   │           └── sys.conf
│   └── mysql
├── conf.d
│   ├── database
│   ├── memcached
│   ├── other
│   ├── server
│   └── smtp
└── installer.dat

/opt/openproject (main install directory)

/usr/bin/openproject (-rwxr-xr-x 1 root root)

/var/db/openproject
├── backup
│   ├── attachments-20190219135355.tar.gz
│   ├── attachments-20190513133146.tar.gz
│   ├── conf-20190219135355.tar.gz
│   ├── conf-20190513133146.tar.gz
│   ├── git-repositories-20190219135355.tar.gz
│   ├── git-repositories-20190513133146.tar.gz
│   ├── mysql-dump-20190219135355.sql.gz
│   └── mysql-dump-20190513133146.sql.gz
├── files
│   └── attachment
│       └── file
│           ├── 1
│           ├── 10
│           │   └── ico_transparent.png
│           ├── 11
│           │   └── jira-rest-plugin.wadl
│           ├── 2
│           ├── 3
│           ...
│           ├── 8
│           │   └── rockavaria_cr.jpg
│           └── 9
└── git
    ├── sw-ngl-basetypes.git
    ├── sw-ngl-doc.git
    ├── sw-ngl.git
    ...   
    └── www.git
        ├── branches
        ├── config
        ├── description
        ├── HEAD
        ├── hooks
        │   ├── applypatch-msg.sample
        │   ├── commit-msg.sample
        │   ├── fsmonitor-watchman.sample
        │   ├── post-update.sample
        │   ├── pre-applypatch.sample
        │   ├── pre-commit.sample
        │   ├── prepare-commit-msg.sample
        │   ├── pre-push.sample
        │   ├── pre-rebase.sample
        │   ├── pre-receive.sample
        │   └── update.sample
        ├── info
        │   └── exclude
        ├── objects
        │   ├── info
        │   └── pack
        └── refs
            ├── heads
            └── tags

/var/log/openproject/*.log 
  1. remove the apache and ssl configurations.
  2. remove the database from postgres (drop database)
  3. remove the user openproject from postgres (drop user)
  4. uninstall postgres
  5. remove the users and groups 'postgres' and 'openproject' (userdel -r and groupdel) 

That's all I can think of. But again, if possible start with a clean VPS. 

have fun...

Johan

Message actions

Hi Johan,

Thanks a lot.

Yes, starting a new VPS is always a solution. :)

Thank you for the scheme.

This is a bit of a flaw, the lack of software 'uninstall' which removes everything, along with dependencies.

Cheers,

Piotr