Deploying Unimus in Tomcat (or other application servers)

Unimus support forum
SimonK
Posts: 5
Joined: Fri Jul 15, 2016 7:23 am

Fri Jul 15, 2016 11:27 am

squeezypiano wrote:Have you created the /etc/unimus folder and given permissions for Tomcat to access it? For example...

Code: Select all

mkdir /etc/unimus
chown tomcat7:tomcat7 /etc/unimus
Hi sqeezy
that helped alot. thx for your fast help
User avatar
Tomas
Posts: 1206
Joined: Sat Jun 25, 2016 12:33 pm

Fri Jul 15, 2016 11:36 am

I also added the commands to the original post, hopefully it helps more people :)
blackbeard
Posts: 2
Joined: Thu Sep 15, 2016 3:07 am

Thu Sep 15, 2016 4:20 am

Hi there,

Im having major issues getting this running. The error i keep getting is:
Screenshot at Sep 15 15-20-47.png
Screenshot at Sep 15 15-20-47.png (31.6 KiB) Viewed 10693 times
I have just tried giving tomcat user and group full permissions to /etc/unimus:
drwxrwxrwx 2 tomcat tomcat 4096 Sep 15 10:45 unimus

and here is tomcat permissions for the /opt/tomcat folder:
drwxr-xr-x 9 tomcat root 4096 Sep 15 09:57 tomcat

Also if i remove the #!error from the url i get to this login page which im not sure if its the Uminus login or tomcat login (tomcat credentials fail here). Either way i havent got to the setup wizard yet:
The attachment Screenshot at Sep 15 15-20-47.png is no longer available
Any help would be greatly appreciated. Thanks
Attachments
Screenshot at Sep 15 16-21-19.png
Screenshot at Sep 15 16-21-19.png (39.4 KiB) Viewed 10693 times
User avatar
Tomas
Posts: 1206
Joined: Sat Jun 25, 2016 12:33 pm

Thu Sep 15, 2016 9:15 am

blackbeard wrote:Hi there,

Im having major issues getting this running. The error i keep getting is:
Screenshot at Sep 15 15-20-47.png

I have just tried giving tomcat user and group full permissions to /etc/unimus:
drwxrwxrwx 2 tomcat tomcat 4096 Sep 15 10:45 unimus

and here is tomcat permissions for the /opt/tomcat folder:
drwxr-xr-x 9 tomcat root 4096 Sep 15 09:57 tomcat

Also if i remove the #!error from the url i get to this login page which im not sure if its the Uminus login or tomcat login (tomcat credentials fail here). Either way i havent got to the setup wizard yet:
Screenshot at Sep 15 15-20-47.png

Any help would be greatly appreciated. Thanks
Try to:

Code: Select all

touch /etc/unimus/unimus.properties
chown tomcat8:tomcat8 /etc/unimus/unimus.properties
chmod 0664 /etc/unimus/unimus.properties
blackbeard
Posts: 2
Joined: Thu Sep 15, 2016 3:07 am

Mon Sep 19, 2016 9:49 pm

Worked a treat thanks!
thobias
Posts: 21
Joined: Mon Aug 08, 2016 11:19 am

Tue Sep 20, 2016 12:09 pm

Hi,
I managed to deploy Unimus today on a clean server and set everything up. But when I restarted the machine and opened the Unimus GUI again I am greeted by the EULA and first time setup and from what I can see there's no data in the tables in the mysql-db.
User avatar
Tomas
Posts: 1206
Joined: Sat Jun 25, 2016 12:33 pm

Tue Sep 20, 2016 1:54 pm

thobias wrote:Hi,
I managed to deploy Unimus today on a clean server and set everything up. But when I restarted the machine and opened the Unimus GUI again I am greeted by the EULA and first time setup and from what I can see there's no data in the tables in the mysql-db.
How is the unimus.properties file looking?
Is all the appropriate DB connection info in it?
thobias
Posts: 21
Joined: Mon Aug 08, 2016 11:19 am

Tue Sep 20, 2016 6:28 pm

Tomas wrote:
thobias wrote:Hi,
I managed to deploy Unimus today on a clean server and set everything up. But when I restarted the machine and opened the Unimus GUI again I am greeted by the EULA and first time setup and from what I can see there's no data in the tables in the mysql-db.
How is the unimus.properties file looking?
Is all the appropriate DB connection info in it?
Yes, the first setup has populated unimus.properties with
database.host = localhost
database.name = unimus
database.user = unimus
database.password = password
database.type = mysql
encryption.key = encryption
license.key = license

The database also have 42 tables after the setup but no rows.
User avatar
Tomas
Posts: 1206
Joined: Sat Jun 25, 2016 12:33 pm

Tue Sep 20, 2016 6:54 pm

thobias wrote: The database also have 42 tables after the setup but no rows.
That will be the issue.

During setup, it was able to initialize the database schema, but didnt write any data to the DB.
So after an application restart, it sees an empty DB, and therefore goes to the config wizard.

Can you try to go through the config wizard again, and see if after finishing the wizard, it writes data to the DB correctly?
thobias
Posts: 21
Joined: Mon Aug 08, 2016 11:19 am

Tue Sep 20, 2016 7:15 pm

Tomas wrote:
thobias wrote: The database also have 42 tables after the setup but no rows.
That will be the issue.

During setup, it was able to initialize the database schema, but didnt write any data to the DB.
So after an application restart, it sees an empty DB, and therefore goes to the config wizard.

Can you try to go through the config wizard again, and see if after finishing the wizard, it writes data to the DB correctly?
Yes it seem to work properly now after a second "first time setup". Wonder why it did not write any data to the DB the first time..
Post Reply