Data directory in server

I am using ubuntu 22 and server edition 24.xx.xx.xx

data dircetory is at /.local/share/Manager/

is it possible to change data directory ? i am unable to find any option to change it.

Reason:
I need some tetsing to install 2 instances on same server on port 8080 and 8081
but both are sharing same data directory, i need to set 1 of these on different directory

What is the full number? Why would you need two instances when you can setup as many businesses as the hardware allows for testing purposes? It will cost you 2x license fees. In any case you should consider using Linux containers. This Forum is not about OS or Server management so you should search the internet how to use Linux containers.

23.12.12.1221

because i want different admins for different businesses
Yes i can use containers, but if there is any way to change data directory, it will serve my purpose easily.

The data directory is not unique for a single business but for the application as a whole. As mentioned you could use containers or docker instances to use multiple Manager Server Editions but realize that each instance requires its own License. You can not use one license for multiple servers.

Why not just give the admins the permissions for the businesses they need it

You would have to give them admin permissions for them once

Following @Joe91 you can give someone full access to any business using the business permission settings in Settings.

thats why im talking about two instance of software.

Does not explain it all. You can always setup multiple Server Editions on Linux hardware as explained. each instance is seen as a separate Manager Server installation and thus need to be paid for each such instance.

We showed you the way to have Users having full permissions for business(es) the Server Admin assigns them to and sets them up with these privieleges. You indicated that you

Which is exactly what this allows. A User can be assigned to one or more businesses and then within each business have full privileges for that business which is similar to your Admin rights for each business.

i know how user rights work. I am not asking about. i am asking if changing data directory in server edition is possible and how to do it if possible.

getting 2nd license is not an issue, i just want to know if i can do it in 1 bigger vps or need separate VPS for it.

I already explained that each Manager Server can only work with one directory.

You need to have sufficient Server knowledge to know how to setup a linux server on a single VPS with multiple docker containers or other containers that allow you to setup several independent Manager Servers.

2 Likes

If this is what you want then yes, you can set the directory for data, but not a different directory for each business

As already mentioned each Manager Server Instance can only be pointed to 1 Directory not multiple as asked for.

Sorry, but from what I read there was no request for multiple directories, just is it was possible to change the directory where data it is stored.

The OP clearly indicates it in the last paragraph:

So, is it possible to point each port to a different directory?

1 Like

You are right. Will cause massive problems though similar to having 2x Desktop version pointing at same data folder, one can no longer work simultabously. They need to be discreet for the app to work as expected.

Each instance would use its own port and db folders

/opt/manager-server/ManagerServer.exe -port 9090 -path ‘/opt/manager-server-data’

/opt/manager-server/ManagerServer.exe -port 9091 -path ‘/opt/manager-server-data-test’

So that is two separate Manager Server instances. I already indicated what you need to do to have it on one VPS.

i am already using two ports

8080 for one and 8081 for other, its fine.

Issue : both are using same data directory. Solution advised by VACUUMDOG is not working, i already tried that. it is from 6,7 years old post of @lubos

Details: just for clarification, i have two manager-server instances running , both are using different ports. but both are using same data directory. i know last solution is to use container, but it changing data directory is possible of one these instances, i will serve my purpose without using container.

I already indicated that sharing a directory with two Server Edition instances has the same issues as sharing an online directory with two Desktop Instances if used by more than one user at a time.