Jiwa on Azure  Topic is solved

Discussions relating to plugin development, and the Jiwa API.

Jiwa on Azure

Postby Riyaz » Mon Nov 23, 2020 11:35 am

Hi There

We have installed JIWA on azure and database via a bacpac File.

Now we are trying to map Jiwa users with proper mapping and permissions, but since azure database limits us using management tools, we used sql scripts like below but it comes with you don’t have permission error. Pls let me know if there are any special instructions to setup Jiwa with azure database. Currently running a VM with Windows server 2019.

ALTER ROLE dbmanager ADD MEMBER [JiwaLogin];
ALTER ROLE loginmanager ADD MEMBER [JiwaLogin];
Riyaz
Kohai
Kohai
 
Posts: 233
Joined: Wed Dec 02, 2015 2:05 pm
Topics Solved: 2

Re: Jiwa on Azure  Topic is solved

Postby Mike.Sheen » Mon Nov 23, 2020 11:40 am

You shouldn't be adding such roles to the JiwaLogin user.

JiwaLogin is a special login which should just have SELECT permission on HR_Staff. We only use that login to read the encrypted SQL credentials from HR_Staff, then we discard that connection and create a new one after decrypting the credentials.

If you've restored a database from BACPAC, just run Jiwa and upgrade it (even though it probably does not need upgrading). We'll set permissions for you. As part of that process you'll be prompted to set the SQL credentials for each user - make sure you enter in there the SQL credentials you want each Jiwa staff member to be using.
Mike Sheen
Chief Software Engineer
Jiwa Financials

If I do answer your question to your satisfaction, please mark it as the post solving the topic so others with the same issue can readily identify the solution
User avatar
Mike.Sheen
Overflow Error
Overflow Error
 
Posts: 2444
Joined: Tue Feb 12, 2008 11:12 am
Location: Perth, Republic of Western Australia
Topics Solved: 756

Re: Jiwa on Azure

Postby Riyaz » Mon Nov 23, 2020 8:48 pm

Thanks Mike
Riyaz
Kohai
Kohai
 
Posts: 233
Joined: Wed Dec 02, 2015 2:05 pm
Topics Solved: 2

Re: Jiwa on Azure

Postby Riyaz » Fri Oct 27, 2023 6:44 pm

Hi Mike

Am trying another database on Azure, did a jiwa upgrade as advised in this post, except when I try to login it comes with the attached error, can you pls guide
Attachments
loginfailed_jiwauser.png
loginfailed_jiwauser.png (23.94 KiB) Viewed 8205 times
Riyaz
Kohai
Kohai
 
Posts: 233
Joined: Wed Dec 02, 2015 2:05 pm
Topics Solved: 2

Re: Jiwa on Azure

Postby SBarnes » Sun Oct 29, 2023 8:21 am

Based upon what you have provided take a look at the link below, I would say you either don't have user on the server at all or its not added to the database, you will possibly have to do the same for JiwaReports, you will need a user with admin privileges to do this under azure that user is usually support

You will also need to run the grant permissions script like below.


https://sqlserverplanet.com/security/ad ... ase-script

Code: Select all
EXEC    [dbo].[usp_Jiwa_Grant_Reporting_Permissions]
      @SQLLogin = N'JiwaUser'


EXEC    [dbo].[usp_Jiwa_Grant_Reporting_Permissions]
      @SQLLogin = N'JiwaReports'


EXEC    [dbo].[usp_Jiwa_Grant_Application_Permissions]
      @SQLLogin = N'JiwaUser'


EXEC    [dbo].[usp_Jiwa_Grant_Application_Permissions]
      @SQLLogin = N'JiwaReports'

Regards
Stuart Barnes
SBarnes
Shihan
Shihan
 
Posts: 1617
Joined: Fri Aug 15, 2008 3:27 pm
Topics Solved: 175

Re: Jiwa on Azure

Postby Riyaz » Mon Oct 30, 2023 1:11 pm

Thanks Stuart

The users exist already, and have just rerun those queries again to grant them permissions, but still no luck, getting the same error.
Riyaz
Kohai
Kohai
 
Posts: 233
Joined: Wed Dec 02, 2015 2:05 pm
Topics Solved: 2

Re: Jiwa on Azure

Postby SBarnes » Mon Oct 30, 2023 1:38 pm

Then the only other issue could be that the password in HR_Staff for the Jiwa user is different to what the sql server is expecting it to be.

Try logging in as the Jiwauser through sql manager to confrim what you think the password should be, also confirm that the JiwaUser has access to the database in question, you can do that in sql manager alsoby simply trying to expand the database and its list of tables.
Regards
Stuart Barnes
SBarnes
Shihan
Shihan
 
Posts: 1617
Joined: Fri Aug 15, 2008 3:27 pm
Topics Solved: 175

Re: Jiwa on Azure

Postby Mike.Sheen » Mon Oct 30, 2023 1:40 pm

Riyaz wrote:Thanks Stuart

The users exist already, and have just rerun those queries again to grant them permissions, but still no luck, getting the same error.


Use SSMS to connect as the user 'JiwaUser' - do you get the same error? If not, then the password stored against the staff record(s) for the JiwaUser SQL Login is incorrect - the easiest way to rectify that is re-upgrade the database - it'll know it's already the same version so will just re-create views and stored procedures - but you will get the opportunity to tick the box to reset the SQL credentials for all users - so do that and carefully set the password.
Mike Sheen
Chief Software Engineer
Jiwa Financials

If I do answer your question to your satisfaction, please mark it as the post solving the topic so others with the same issue can readily identify the solution
User avatar
Mike.Sheen
Overflow Error
Overflow Error
 
Posts: 2444
Joined: Tue Feb 12, 2008 11:12 am
Location: Perth, Republic of Western Australia
Topics Solved: 756

Re: Jiwa on Azure

Postby Mike.Sheen » Mon Oct 30, 2023 1:40 pm

SBarnes wrote:Then the only other issue could be that the password in HR_Staff for the Jiwa user is different to what the sql server is expecting it to be.

Try logging in as the Jiwauser through sql manager to confrim what you think the password should be, also confirm that the JiwaUser has access to the database in question, you can do that in sql manager alsoby simply trying to expand the database and its list of tables.


Snap!
Mike Sheen
Chief Software Engineer
Jiwa Financials

If I do answer your question to your satisfaction, please mark it as the post solving the topic so others with the same issue can readily identify the solution
User avatar
Mike.Sheen
Overflow Error
Overflow Error
 
Posts: 2444
Joined: Tue Feb 12, 2008 11:12 am
Location: Perth, Republic of Western Australia
Topics Solved: 756

Re: Jiwa on Azure

Postby SBarnes » Mon Oct 30, 2023 1:45 pm

:lol:
Regards
Stuart Barnes
SBarnes
Shihan
Shihan
 
Posts: 1617
Joined: Fri Aug 15, 2008 3:27 pm
Topics Solved: 175

Next

Return to Technical and or Programming

Who is online

Users browsing this forum: No registered users and 5 guests

cron