Jiwa on Azure  Topic is solved

Discussions relating to plugin development, and the Jiwa API.

Re: Jiwa on Azure

Postby Riyaz » Tue Oct 31, 2023 1:20 am

Thanks Mike and Stuart

Have already tried this, even reupgrading the database. I think the problem is that the users dont exist in the master database. If It try to create them using below queries, I get the errors underneath the queries. Have also uploaded a screenshot

CREATE LOGIN JiwaUser WITH Password = 'JiwaFinancials123'
CREATE LOGIN JiwaReports WITH Password = 'JiwaFinancials123'

Msg 15025, Level 16, State 1, Line 1
The server principal 'JiwaUser' already exists.
Msg 15025, Level 16, State 1, Line 2
The server principal 'JiwaReports' already exists.
Attachments
2023-10-31 01_19_46-atronicsconsulting - 4.197.48.147_3389 - Remote Desktop Connection.png
2023-10-31 01_19_46-atronicsconsulting - 4.197.48.147_3389 - Remote Desktop Connection.png (12.06 KiB) Viewed 4528 times
Riyaz
Kohai
Kohai
 
Posts: 233
Joined: Wed Dec 02, 2015 2:05 pm
Topics Solved: 2

Re: Jiwa on Azure

Postby pricerc » Tue Oct 31, 2023 10:49 am

Riyaz wrote:Thanks Mike and Stuart

Have already tried this, even reupgrading the database. I think the problem is that the users dont exist in the master database. If It try to create them using below queries, I get the errors underneath the queries. Have also uploaded a screenshot

CREATE LOGIN JiwaUser WITH Password = 'JiwaFinancials123'
CREATE LOGIN JiwaReports WITH Password = 'JiwaFinancials123'

Msg 15025, Level 16, State 1, Line 1
The server principal 'JiwaUser' already exists.
Msg 15025, Level 16, State 1, Line 2
The server principal 'JiwaReports' already exists.


They are not needed in the master database.
/Ryan

ERP Consultant,
Advanced ERP Limited, NZ
https://aerp.co.nz
User avatar
pricerc
Senpai
Senpai
 
Posts: 504
Joined: Mon Aug 10, 2009 12:22 pm
Location: Auckland, NZ
Topics Solved: 20

Re: Jiwa on Azure

Postby Mike.Sheen » Tue Oct 31, 2023 10:53 am

Riyaz wrote:Have already tried this, even reupgrading the database.


So can you or can you not login to SSMS as JiwaUser?
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 » Tue Oct 31, 2023 10:55 am

I cannot, I’ve tried all known passwords, JiwaFinancials123, etc
Riyaz
Kohai
Kohai
 
Posts: 233
Joined: Wed Dec 02, 2015 2:05 pm
Topics Solved: 2

Re: Jiwa on Azure

Postby SBarnes » Tue Oct 31, 2023 11:35 am

Just change the password with a script like


Code: Select all
alter login JiwaUser with password = 'JiwaFinancials123'
Regards
Stuart Barnes
SBarnes
Shihan
Shihan
 
Posts: 1619
Joined: Fri Aug 15, 2008 3:27 pm
Topics Solved: 175

Re: Jiwa on Azure

Postby Riyaz » Tue Oct 31, 2023 11:48 am

Have tried that too, get the attached error.
Attachments
2023-10-31 11_47_50-atronicsconsulting - 4.197.48.147_3389 - Remote Desktop Connection.png
2023-10-31 11_47_50-atronicsconsulting - 4.197.48.147_3389 - Remote Desktop Connection.png (11.73 KiB) Viewed 4516 times
Riyaz
Kohai
Kohai
 
Posts: 233
Joined: Wed Dec 02, 2015 2:05 pm
Topics Solved: 2

Re: Jiwa on Azure

Postby SBarnes » Tue Oct 31, 2023 11:51 am

Read what the error says, you need the manager to show the database up the top as master in Azure you cant just change it up the top you need to be on that database when you open the sql window.
Regards
Stuart Barnes
SBarnes
Shihan
Shihan
 
Posts: 1619
Joined: Fri Aug 15, 2008 3:27 pm
Topics Solved: 175

Re: Jiwa on Azure

Postby Riyaz » Tue Oct 31, 2023 12:48 pm

Yes Stuart, but the users are not listed in master database, pls see my screenshot that I had sent earlier. Its very strange, could be the restriction with Azure SQL
Riyaz
Kohai
Kohai
 
Posts: 233
Joined: Wed Dec 02, 2015 2:05 pm
Topics Solved: 2

Re: Jiwa on Azure

Postby SBarnes » Tue Oct 31, 2023 12:53 pm

This is not a problem related to Azure SQL under normal SQL they don't exist on the master database either, they are logins to the actual server but you must be on the master database to execute those commands.
Regards
Stuart Barnes
SBarnes
Shihan
Shihan
 
Posts: 1619
Joined: Fri Aug 15, 2008 3:27 pm
Topics Solved: 175

Re: Jiwa on Azure

Postby Riyaz » Tue Oct 31, 2023 12:56 pm

Understood, thanks for that
Riyaz
Kohai
Kohai
 
Posts: 233
Joined: Wed Dec 02, 2015 2:05 pm
Topics Solved: 2

PreviousNext

Return to Technical and or Programming

Who is online

Users browsing this forum: No registered users and 18 guests

cron