Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Misleading authentication message from Studio #252

Open
erlicthemad opened this issue Apr 28, 2018 · 25 comments
Open

Misleading authentication message from Studio #252

erlicthemad opened this issue Apr 28, 2018 · 25 comments
Assignees

Comments

@erlicthemad
Copy link

I have installed Wakanda 2.5.0 enterprise. I also had this issue under 2.4.0. I am currently running Mac OS X 10.13.4. I have been unable to get the Wakanda Enterprise studio to be able to control the Wakanda Enterprise server running on the same computer. I normally run as a standard user. I have tried to use both my local admin account username and password and my local username and password. It would seem that Studio is unable to communicate with the server. I have tried to promote my standard user account to admin and it does not help anything. It will start and run the application in no debugger mode. but that kind of makes it hard to troubleshoot the code. All communication is running through localhost. on the same computer. Is there a fix or a solution. This effectively makes Wakanda unusable for development on the backend. I still am able to use Visual Studio code to work on the front end code. It would be useful to be able to also tell Wakanda that is does not need to refresh the server when I work on front-end code in Studio.

When this happens it looks like the Server is running but is unable to communicate

@liuxiang625
Copy link

liuxiang625 commented Apr 28, 2018

When you say "Control" and "Communicate". Do you mean start/stop server from the studio using run button and task manager?

If so, I had a similar problem when I moved the 2.4.0 on High Sierra. I solved it by removing spaces in the path of Wakanda Server. Here is the path to my server as an example:
/Applications/Wakanda/Wakanda250Ent/wakanda-enterprise-server.app

Let me know if this helps.

@erlicthemad
Copy link
Author

I tried that. See attached screenshots.

It gives me the shown dialog box and cannot start Wakanda server in debug mode.
If I try to just run the server without debug mode on then it will run.

To reproduce this I just have the Backend selected. I then click run on the server. I then get the dialogs after a lot of pinwheel spinning.

screenshot 2018-04-28 19 59 17

screenshot 2018-04-28 19 59 48

screenshot 2018-04-28 20 01 02

screenshot 2018-04-28 20 02 11

screenshot 2018-04-28 20 03 40

@erlicthemad
Copy link
Author

screenshot 2018-04-28 19 59 48

The two programs are inside my applicatons folder. /Applications/wakandaenterpriseserver.app

@liuxiang625
Copy link

Try only removing the spaces in the directory names, and keep the names of Wakanda Studio and Server as is.

@erlicthemad
Copy link
Author

erlicthemad commented Apr 29, 2018 via email

@erlicthemad
Copy link
Author

I checked the console as I tried to start the server and found the following Wakanda messages.

error 21:12:23.531182 -0400 Wakanda Enterprise Studio nw_path_close_fd Failed to close guarded necp fd 31 [9: Bad file descriptor]

default 21:12:48.149947 -0400 wakanda-enterprise-server dynamic_cast error 1: Both of the following type_info's should have public visibility. At least one of them is hidden. 21IChromeDebuggerServer, 19VChromeDebugHandler.

It times out for a while and then I get the administrator dialog box for Wakanda.

@JegoYann
Copy link

JegoYann commented May 2, 2018

This dialog box usually appeared when the solution as a user inside its admin group. The solution is then authenticated and will prompt a authentication dialog in the studio. Use an admin account to authenticate. The studio will remember the credentials.

Is this your use case ?

@JegoYann JegoYann changed the title Waskanda 2.5.0 cannot control wakanda server on OSX. Wakanda 2.5.0 cannot control wakanda server on OSX. May 2, 2018
@erlicthemad
Copy link
Author

I was originally running from my standard user account and launching my solution from the Wakanda Enterprise Studio. I get this dialog box when I am trying to run with debugging on. If I run with debugging off. it works but makes development kind of hard. I did upgrade my standard user account to an admin account. but this did not help. I have tried using both my standard user username and password and my admin username and password. In both situations, I get the same results. It refuses to run and hangs up waiting for Wakanda server to start and respond. This started with Wakanda 2.4.0 and has stayed the same under 2.5.0. Prior to that, it was quicky about starting up especially in debug mode. I am running Wakanda Studio 2.5.0 on Apple High Sierra 10.13.4.

@JegoYann
Copy link

JegoYann commented May 3, 2018

Can you share your solution ? You can send me in private if necessary. Please provide also the couple user/password that is not working and the one that is working.

@erlicthemad
Copy link
Author

That's the problem. I have no solution. It's not working. It can run a project without the debugger, but since I am using this machine to develop. It is nearly impossible to do so. But I can run the Wakanda Enterprise Server without the debugger. If I turn on the debugger it requires the passwords. Iy you would like to watch this in action contact me at naujocke@lcco.co.lucas.oh.us, call. You can then do a remote session and I can show you what it does.

@JegoYann
Copy link

JegoYann commented May 3, 2018

I mean, can you send me your Wakanda solution/project ? It would help to debug your issue.

@erlicthemad
Copy link
Author

erlicthemad commented May 3, 2018 via email

@JegoYann
Copy link

JegoYann commented May 3, 2018

I share a google drive folder with you.
at naujocke@gmail.com

@erlicthemad
Copy link
Author

erlicthemad commented May 3, 2018 via email

@JegoYann
Copy link

JegoYann commented May 4, 2018

@erlicthemad Thanks. We are looking into it.

By the way, just see in one of your screenshot that you have a weird Application name.
It should be wakanda-enterprise-server.app as it is referenced in the application bundle info.plist. It is not recommander to change the application.
However, as Xiang suggested, you can have a path without space: /path/without/spaces/wakanda-enterprise-server.app.

@erlicthemad
Copy link
Author

I did rename the files back since it didn't help. But I was trying to follow the suggestion about filenames. I do not have my various versions of Wakanda on the machine. so my Wakanda programs are just at the root level of my application s folder. /Applications/wakanda-enterprise-server.app is the final path I put it back to.

@erlicthemad
Copy link
Author

Reset it back and still get prompted for the administrator username and password.

@erlicthemad
Copy link
Author

What is the mechanism that Wakanda uses to communicate from the Studio to the server? I am wondering if it's trying to use networking. I have a somewhat complex network setup. I have 9 network interfaces including VPN connections, USB, Thunderbolt, and usually 2 live network interfaces at any one time. Wi-Fi, and either my ElGato, or OWC interface.

@erlicthemad
Copy link
Author

I have not heard anything back lately. I did do some other testing and created a new user account "WakandaTest" copied my project to it and tried to launch. I also tried to create a new project from scratch under the new user and neither one of these could connect to the server. It prompted me once for a password and then just hung claiming to be updating the server. 5 minutes later on a new project, it was still thinking about it. I also tried throwing out the development, and server program and reinstalling it from a new media. So far nothing is working to get the Wakanda development environment working. EIther under my normal working user account or the new WakandaTest user account.

@erlicthemad
Copy link
Author

I did a bit more testing, and a new project on a new computer will work, and the debugger also seemed to work on a different computer with the same base operating system. So far from what I am finding is that there is something that is not user-specific in my main development workstation that is corrupt related to Wakanda. The problem also does not appear to be Project specific since a newly created blank test application will not work with Wakanda Server with either "No Debugger" or "Debugger" mode.

@erlicthemad
Copy link
Author

This is frustrating. I just rebuilt my computer system completely from scratch. 14 hours later and Wakanda works as well as it did before. Will not run under diag mode. When watching the console I see that I am getting a security error exception 17.

image

appearantly there is an issue with wakanda and the com.apple.securityd. When I look it up it appears to be a keychain issue.

Then when I try to launch the program I see the following error messages show up in my log.

image

At this point in time it still wont work or run locally. Now what to do?

@JegoYann
Copy link

@erlicthemad Sorry for the delay.

Just to be sure, which user account did you use ?

You need to authenticate with the Wakanda user account. The one defined in the directory.waDirectory file.

@erlicthemad
Copy link
Author

That worked. It wanted my Wakanda admin username and password. I lost two weeks worth of development time in Wakanda and 16 hours of pure downtime performing a complete rebuild of my system twice once on bare metal and once in a VM. Trying to troubleshoot the issues to find out that it wanted my Wakanda admin users password. This needs to be Fixed. It should make it clear then the prompt show up that it wants a Wakanda administrator account username and password. Right now I am dissapointed that a Silver 4D developer has to lose two weeks of production time due to poor documentation and lack of clarity in dialog messages. I posted a picture of the dialog box 16 days ago, and it took this much time to be told I needed to use my Wakanda Username and password.

@JegoYann
Copy link

JegoYann commented May 17, 2018

Thanks for your feedback. We will update the dialog message.

This is the Community issue board. If your are a Silver 4D developer, using TAOW to communicate directly with the 4D support will ensure faster responses that respect your contract's SLA.

@JegoYann JegoYann changed the title Wakanda 2.5.0 cannot control wakanda server on OSX. Misleading authentication message from Studio May 17, 2018
@erlicthemad
Copy link
Author

I used to do that, but I was instructed to use the Wakanda forums for things not related to 4d connecting to Wakanda. But yes we are a silver developer house using 4D working on using Wakanda to make web and IOS device access for the 4D database. On the 4d side, there is one person who tends to answer those questions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants