Closed boxxxie closed 1 year ago
I haven't tested on 22.04
The script was tested on 20.04
I'll see if I can get it updated soon. You can install with Trudesk Docker or manually install MongoDB and then skip the mongo install in the script when asked.
i really don't want to be forced to use docker, that's just another layer of debugging BS when a problem like this happens, and my experience is that problems like this do happen using docker, and are common.
if i just manually install monogo in the current state of the server (everything else seems to be working), is that going to be ok? is there enough info in the manual mongo install for me to get things working, or should i spin up a new server and do a full manual install?
I think that the mongoDB install instructions may need to be updated, there is a typo sudo apat-get update && sudo apt-get in
apat-get
should be apt-get
the call to apt-key
gives me a warning Warning: apt-key is deprecated. Manage keyring files in trusted.gpg.d instead (see apt-key(8)).
I get an error for mongo-org-shell Unable to locate package mongo-org-shell
logs:
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
gnupg is already the newest version (2.2.27-3ubuntu2.1).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Warning: apt-key is deprecated. Manage keyring files in trusted.gpg.d instead (see apt-key(8)).
OK
deb [ arch=amd64,arm64 ] https://repo.mongodb.org/apt/ubuntu focal/mongodb-org/5.0 multiverse
Hit:1 https://mirror.hetzner.com/ubuntu/packages jammy InRelease
Hit:2 https://mirror.hetzner.com/ubuntu/packages jammy-updates InRelease
Hit:3 https://mirror.hetzner.com/ubuntu/packages jammy-backports InRelease
Hit:4 https://mirror.hetzner.com/ubuntu/security jammy-security InRelease
Hit:5 https://artifacts.elastic.co/packages/8.x/apt stable InRelease
Hit:6 https://deb.nodesource.com/node_16.x jammy InRelease
Ign:7 https://repo.mongodb.org/apt/ubuntu focal/mongodb-org/5.0 InRelease
Hit:8 https://repo.mongodb.org/apt/ubuntu focal/mongodb-org/5.0 Release
Reading package lists... Done
W: https://artifacts.elastic.co/packages/8.x/apt/dists/stable/InRelease: Key is stored in legacy trusted.gpg keyring (/etc/apt/trusted.gpg), see the DEPRECATION section in apt-key(8) for details.
W: https://repo.mongodb.org/apt/ubuntu/dists/focal/mongodb-org/5.0/Release.gpg: Key is stored in legacy trusted.gpg keyring (/etc/apt/trusted.gpg), see the DEPRECATION section in apt-key(8) for details.
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
E: Unable to locate package mongo-org-shell
I have corrected the typo in the documentation. I have tested the script once again and confirmed working with 20.04
The script will require modification for 22.04
For the install instructions were written as well for 20.04
I deployed a new Ubuntu 20.04 on t2.medium
(AWS) and tested the script. The results are below.
. .o8 oooo
.o8 "888 `888
.o888oo oooo d8b oooo oooo .oooo888 .ooooo. .oooo.o 888 oooo
888 `888""8P `888 `888 d88' `888 d88' `88b d88( "8 888 .8P'
888 888 888 888 888 888 888ooo888 `"Y88b. 888888.
888 . 888 888 888 888 888 888 .o o. )88b 888 `88b.
"888" d888b `V88V"V8P' `Y8bod88P" `Y8bod8P' 8""888P' o888o o888o
==========================================================================
version 1.2.8 - Community Edition - Copyright (C) 2014-2023 Trudesk Inc.
Welcome to Trudesk Install Script for Ubuntu 20.04 (fresh)!
Lets make sure we have all the required packages before moving forward...
Setting Clock...
13 Jul 18:17:30 ntpdate[3398]: adjust time server 69.89.207.99 offset -0.000895 sec
Local time: Thu 2023-07-13 18:17:30 UTC
Universal time: Thu 2023-07-13 18:17:30 UTC
RTC time: Thu 2023-07-13 18:17:30
Time zone: Etc/UTC (UTC, +0000)
System clock synchronized: no
NTP service: n/a
RTC in local TZ: no
Checking packages...
List of required packeges: git, wget, python, curl, nodejs, npm, gnupg
Do you want to check packeges? [Y/n]:
Performing apt-get update [DONE]
wget is installed!
Installing python [DONE]
curl is installed!
gnupg is installed!
git is installed!
Installing nodejs [DONE]
Do you want to install Elasticsearch? [y/N]: y
Installing Elasticsearch 8 \Created symlink /etc/systemd/system/multi-user.target.wants/elasticsearch.service → /lib/systemd/system/elasticsearch.service.
[DONE]
Do you want to install MongoDB? [y/N]: y
Installing MongoDB 5.0 \Created symlink /etc/systemd/system/multi-user.target.wants/mongod.service → /lib/systemd/system/mongod.service.
|
Waiting for MongoDB to start...
\Restarting MongoDB...
[DONE]
Downloading the latest version of Trudesk. [DONE]
Building... (its going to take a few minutes) [DONE]
Starting... [DONE]
Installation Complete.
Note: t2.medium is the minimum spec for building trudesk
Once complete, I could access the trudesk instance at http://[PUBLIC_IP]:8118
and take the default settings. Selected New Database, create my admin user. Once install wizard is complete I could login as expected.
is there a workaround for this? is it mandatory that i do a manual install?
trudesk version is 1.2.8, ubuntu 22.04.