[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: setup.pl error on fresh 1.5 installation



 
On Mon, Jun 6, 2016 at 12:09 PM, Silver Salonen <..hidden..> wrote:
 
But I was in a state that after clicking either Login or Create from setup.pl nothing really happened, ie. the same page is displayed with everything pre-filled, but username not selected now.
Hmm. I have not seen anything like this, recently. Is there anything in the PostgreSQL logs, or Starman output  (logs?) which could be used to determine if requests happened and what their result might have been?

If you have time today, you could drop by in #ledgersmb on freenode (irc://irc.freenode.net/#ledgersmb), or join that channel through the Matrix IRC bridge and Matrix's webclient Vector: https://vector.im/develop/#/room/#ledgersmb:matrix.org; This feels like a problem that we might need/want to debug more interactively.

Sorry, cannot come by IRC daytime (during work).

Ok. No problem. It could have made the process quicker, that's why I offered.
 
I don't see anything in logs (didn't set any custom log settings in PostgreSQL, everything should go to syslog by default, but nothing's there).
Ok. That's rather unfortunate in a way, but Starman is very silent when all goes well, at least in our default setup, so this means there are no Perl-level problems.
 
Anyhow, a bit more details about what happens...

I go to setup.pl, choose lsmb_dbadmin from super-user list, enter password and database (doesn't matter whether it's existing or non-existing) and click Login or Create (doesn't also matter which one) and all this is sent by GET request, ie. the URL becomes:

https://myledgersmb/setup.pl?s_user=lsmb_dbadmin&s_password=mypassword&database=mydatabase


This is rather unexpected. In Chrome's developer tools (available under the "Inspect" menu), I see two requests (after checking the "Preserve logs" checkmark to prevent clearing the log between page loads). That is, I see truckloads of requests, but:

 - navigate, with the chrome developer tools "Network" tab selected, to https://myledgersmb/setup.pl
 - clear the navigation log (there is a huge number of requests in the log, due to Dojo's loading of widgets)
 - fill out the form elements (super user, password and database)
 - click on "Login" (the company I was using exists; in this case, you can select Login too, as it will simply report the database doesn't exist, when it doesn't)

Then, I see two requests:

 1. GET login.pl?action="">  (Type: xhr)
 2. GET setup.pl?action=""> (Type: document)

 
So the page is the same, but Password and Database fields pre-filled (Super-user not selected though).

Is that normal?
Nope. Did you install from Git or from tarball?
 
PS. Tried changing form's method to POST in UI/setup/credentials.html, but that didn't change the behavior.

Right. I wouldn't expect that to do much: this code is running on Travis CI day in day out (albeit on Linux), so, there must be a configuration issue here. The login code hasn't been changed for months and works on my system. There must be something else. Do you have any idea if your browser is able to load Dojo? Also, which browser version do you use? Of which browser?


Regards,

--
Bye,

Erik.

http://efficito.com -- Hosted accounting and ERP.
Robust and Flexible. No vendor lock-in.
------------------------------------------------------------------------------
What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic
patterns at an interface-level. Reveals which users, apps, and protocols are 
consuming the most bandwidth. Provides multi-vendor support for NetFlow, 
J-Flow, sFlow and other flows. Make informed decisions using capacity 
planning reports. https://ad.doubleclick.net/ddm/clk/305295220;132659582;e
_______________________________________________
Ledger-smb-users mailing list
..hidden..
https://lists.sourceforge.net/lists/listinfo/ledger-smb-users