Plugin problem with Middle Tier

This forum is for programmers who have questions about the source code.

Plugin problem with Middle Tier

Postby Justin Shafer » Sat Mar 10, 2018 5:11 pm

Error Loading Plugin:LaunchChrome.dll
Authentication to host '' for user '' using method 'mysql_native_password' failed with message: Access denied for user "@'fe80::98f2:7477:e994:781e%14' (using password: NO)

Any idea why i get this? I guess somewhere it is trying to authenticate with mysql instead of the middle tier or something? I am not trying to login anywhere with the plugin...

Stuff.

Code:
https://github.com/jshafer817/LaunchChrome (It's REALLY simple)
User avatar
Justin Shafer
 
Posts: 544
Joined: Sat Jul 28, 2007 7:34 pm
Location: Fort Worth, TX.

Re: Plugin problem with Middle Tier

Postby jsalmon » Mon Mar 12, 2018 4:08 pm

Every web call to the middle tier will authenticate with the database first because that is the sole purpose of the middle tier layer (to talk to the database on your behalf).
I instantly think that the config file for the Middle Tier might be missing / malformed OR we messed something up which I'll need to know what version of Open Dental you are using to verify.
The best thing about a boolean is even if you are wrong, you are only off by a bit.

Jason Salmon
Open Dental Software
http://www.opendental.com
User avatar
jsalmon
 
Posts: 1366
Joined: Tue Nov 30, 2010 1:33 pm

Re: Plugin problem with Middle Tier

Postby Justin Shafer » Mon Mar 12, 2018 9:13 pm

This is with 17.4.33, thanks dude! The error comes up right after you login to the choose database form.
User avatar
Justin Shafer
 
Posts: 544
Joined: Sat Jul 28, 2007 7:34 pm
Location: Fort Worth, TX.

Re: Plugin problem with Middle Tier

Postby jsalmon » Wed Mar 14, 2018 2:54 pm

Found the problem. The ConvertPluginDatabase.Begin() method is trying to execute locally which is designed to run a custom convert script for the plug-in developer. I need to spend some time hitting it with some Remoting Role magic.
Added to the bug tracker: http://opendentalsoft.com:1942/ODBugTra ... sions.aspx

I will also correct the compile errors within the PluginExample project that we provide while I'm at it.
The best thing about a boolean is even if you are wrong, you are only off by a bit.

Jason Salmon
Open Dental Software
http://www.opendental.com
User avatar
jsalmon
 
Posts: 1366
Joined: Tue Nov 30, 2010 1:33 pm

Re: Plugin problem with Middle Tier

Postby Justin Shafer » Thu Mar 15, 2018 1:19 am

YAY! Thanks amigo! Good work!
User avatar
Justin Shafer
 
Posts: 544
Joined: Sat Jul 28, 2007 7:34 pm
Location: Fort Worth, TX.

Re: Plugin problem with Middle Tier

Postby jsalmon » Thu Mar 15, 2018 4:49 pm

Ironically the bug was only present within our PluginExample project so I didn't have to change anything with our framework. I went ahead and gave the framework a quick update for thread safety purposes (now that it can be called form the middle tier which is a threaded environment). The code has been committed and you should be able to update to see the fixes that were necessary (mainly the remoting role check in the ConvertPluginDatabase class).
FYI - the bug is still on the tracker but won't be visible until v18.1.1 is released.
The best thing about a boolean is even if you are wrong, you are only off by a bit.

Jason Salmon
Open Dental Software
http://www.opendental.com
User avatar
jsalmon
 
Posts: 1366
Joined: Tue Nov 30, 2010 1:33 pm

Re: Plugin problem with Middle Tier

Postby Justin Shafer » Sat Mar 17, 2018 4:49 am

Cool beans. Thanks again! The middle tier is really neat. I really wish I could actually have a client on the middle tier, I know an office with 4 locations that wants too, but one location has awful internet (inside of a mall) and the owner of the mall will only allow DSL, and it's flaky. To make matters worse, cell reception is bad inside as well. I have been playing with Mikrotik routers (routeros). Seems pretty cool so far, and Amazon just added for Mikrotik routers for the Amazon VPN.

https://mikrotik.com/product/RB3011UiAS-RM

So I would probably use this. I really like DD-WRT, but getting Amazon's VPN to work is a pain. The kernel is missing some modules to make that work, either that or use OpenVPN.
User avatar
Justin Shafer
 
Posts: 544
Joined: Sat Jul 28, 2007 7:34 pm
Location: Fort Worth, TX.

Re: Plugin problem with Middle Tier

Postby jsalmon » Mon Mar 19, 2018 9:19 am

Most offices with that type of scenario use replication. E.g. a van goes out to a school to do screening or something, does work on a full-fledged version of Open Dental and then replicates the data back to the "mother" database back at the office when they get back at the end of the day.
The best thing about a boolean is even if you are wrong, you are only off by a bit.

Jason Salmon
Open Dental Software
http://www.opendental.com
User avatar
jsalmon
 
Posts: 1366
Joined: Tue Nov 30, 2010 1:33 pm

Re: Plugin problem with Middle Tier

Postby Justin Shafer » Mon Mar 19, 2018 9:12 pm

Oh they are always seeing patients at the 4 locations, so if they did the van thing they would have a... "fork" in the data, or what would be the best term for that? I knew a doc that went to old folks homes and that was interesting. He had 2 locations and would go around to do dentistry. He owned an optime phosphur plate scanner that uses ethernet instead of usb, and I called optime to make it work on a vpn, and they had never tried that before. They did want to upgrade the firmware to deal with latency, but after that it worked. :D
User avatar
Justin Shafer
 
Posts: 544
Joined: Sat Jul 28, 2007 7:34 pm
Location: Fort Worth, TX.

Re: Plugin problem with Middle Tier

Postby dgraffeo » Wed Mar 21, 2018 9:53 am

The sort of replication Jason is talking about would rectify the forks. Of course, if something was edited "in the field" then also "at home" then it'd need to be reconciled, but beyond that the replication mentioned works for spotty internet.
"To understand what recursion is, you must first understand recursion."

David Graffeo
Open Dental Software
http://www.opendental.com
User avatar
dgraffeo
 
Posts: 134
Joined: Wed Sep 24, 2014 3:19 pm


Return to Developers

Who is online

Users browsing this forum: No registered users and 4 guests