Unable to import multiple profiles into pritunl-client

Hi,

when I try to import 2 profiles into the client, only importing one of them (either the first or the second) is done, but not the two profiles together. Connections are successful in ovpn mode, but in the client log there are the following messages (for both case):

[2024-12-16 11:34:55][ERROR] Profiles: Failed to sync profile configuration
RequestError: Request: Timeout error ssl=true hostname=my_IP port=443 method=GET path=/key/sync/61ff20cbc1e709c149fd0572/63fa174a90ebae054ae4fd56/6538481058a602e834596d5c/8ec1812c58f78b81c707a71183b37c46 ttl=5000
RequestError: Request: Timeout error ssl=true hostname=my_IP port=443 method=GET path=/key/sync/61ff20cbc1e709c149fd0572/63fa174a90ebae054ae4fd56/6538481058a602e834596d5c/8ec1812c58f78b81c707a71183b37c46 ttl=5000

I found that in pritunl client’s Profile settings ID is the same (for one of imported profile). I.e. in ~/.config/pritunl/profiles are exists the same 2 files (instead 4): 856f92842542545f.conf and 856f92842542545f.ovpn. When importing the second profile these files are recreated with the same names but different content.

$ diff 856f92842542545f.ovpn 1/856f92842542545f.ovpn 
2,3c2,3
< setenv UV_ID 8a78aeeeafef44cc85b5fd345bce4150
< setenv UV_NAME thawing-fields-1467
---
> setenv UV_ID f13f08b85e0f4db2b1e64c36f42e194a
> setenv UV_NAME snowy-skies-1419
7c7
< remote hostname-1 11159 udp
---
> remote hostname-2  21159 udp

and in wg config 856f92842542545f.conf all data different except the same “user_id” value.

The client will replace an existing profile if there is a match on some values. If you cloned the server you will need to delete and recreate the user on one server to create new values to avoid the client assuming it is the same profile.