Unable to log into to web portal with user

0
I installed GitStack, logged in with admin and turned off http. I went to https and logged in again. I created a user account and a repository and added the user to the repository. Trying to “browse” the repository with the user I just created failed. It wouldn’t accept the login. Login out of admin and trying to log in to the web portal with the user presented the same issue.
asked November 16, 2012

8 Answers

0
Could you try again to login to the git web browsing and post your C:/gitstack/apache/logs/errog.log file?
0
This is the login of admin, creation of a user, add the user to a repository, log out and try to login as the user created. It looks like there is an error adding the user to the the repository, but I have a feeling it's just symptomatic since I can't even log in to the web portal as the user I created.

Apologies for the  poor HTML formatting.

[Mon Nov 19 09:21:16 2012] [notice] Parent: Received restart signal -- Restarting the server. [Mon Nov 19 09:21:16 2012] [notice] Child 780: Exit event signaled. Child process is ending. [Mon Nov 19 09:21:16 2012] [warn] (OS 10038)An operation was attempted on something that is not a socket. : setsockopt(SO_UPDATE_ACCEPT_CONTEXT) failed. [Mon Nov 19 09:21:17 2012] [notice] Child 780: Released the start mutex [Mon Nov 19 09:21:17 2012] [warn] module rewrite_module is already loaded, skipping [Mon Nov 19 09:21:18 2012] [warn] RSA server certificate is a CA certificate (BasicConstraints: CA == TRUE !?) [Mon Nov 19 09:21:18 2012] [warn] RSA server certificate CommonName (CN) `gitstack.com' does NOT match server name!? [Mon Nov 19 09:21:18 2012] [warn] mod_wsgi: Compiled for Python/2.7. [Mon Nov 19 09:21:18 2012] [warn] mod_wsgi: Runtime using Python/2.7.2. [Mon Nov 19 09:21:18 2012] [notice] Child 780: All worker threads have exited. [Mon Nov 19 09:21:18 2012] [notice] Apache/2.2.22 (Win32) mod_ssl/2.2.22 OpenSSL/0.9.8u mod_wsgi/3.3 Python/2.7.2 PHP/5.4.3 configured -- resuming normal operations [Mon Nov 19 09:21:18 2012] [notice] Server built: Mar 19 2012 19:56:33 [Mon Nov 19 09:21:18 2012] [notice] Parent: Created child process 6544 [Mon Nov 19 09:21:19 2012] [warn] module rewrite_module is already loaded, skipping [Mon Nov 19 09:21:19 2012] [warn] RSA server certificate is a CA certificate (BasicConstraints: CA == TRUE !?) [Mon Nov 19 09:21:19 2012] [warn] RSA server certificate CommonName (CN) `gitstack.com' does NOT match server name!? [Mon Nov 19 09:21:19 2012] [warn] module rewrite_module is already loaded, skipping [Mon Nov 19 09:21:20 2012] [warn] RSA server certificate is a CA certificate (BasicConstraints: CA == TRUE !?) [Mon Nov 19 09:21:20 2012] [warn] RSA server certificate CommonName (CN) `gitstack.com' does NOT match server name!? [Mon Nov 19 09:21:20 2012] [warn] mod_wsgi: Compiled for Python/2.7. [Mon Nov 19 09:21:20 2012] [warn] mod_wsgi: Runtime using Python/2.7.2. [Mon Nov 19 09:21:20 2012] [notice] Child 6544: Child process is running [Mon Nov 19 09:21:21 2012] [notice] Child 6544: Acquired the start mutex. [Mon Nov 19 09:21:21 2012] [notice] Child 6544: Starting 64 worker threads. [Mon Nov 19 09:21:21 2012] [notice] Child 6544: Starting thread to listen on port 443. [Mon Nov 19 09:21:21 2012] [notice] Child 6544: Starting thread to listen on port 443. [Mon Nov 19 09:21:26 2012] [error] [client 10.51.180.86] mod_wsgi (pid=6544): Exception occurred processing WSGI script 'C:/GitStack/app/app/wsgi.py'., referer: https://foo.bar.net/gitstack/repository/Reporderz/permission/ [Mon Nov 19 09:21:26 2012] [error] [client 10.51.180.86] IOError: failed to write data, referer: https://foo.bar.net/gitstack/repository/Reporderz/permission/ [Mon Nov 19 09:21:29 2012] [error] [client 10.51.180.86] PHP Warning: Invalid argument supplied for foreach() in C:\\GitStack\\gitphp\\include\\Authentication.class.php on line 99, referer: https://foo.bar.net/gitstack/ [Mon Nov 19 09:21:29 2012] [error] [client 10.51.180.86] PHP Warning: Invalid argument supplied for foreach() in C:\\GitStack\\gitphp\\include\\Authentication.class.php on line 107, referer: https://foo.bar.net/gitstack/
0
I have the exact same problem. Whenever I try to browse the repository as the user who has access I get the same entries added to that error log:   [Sun Nov 25 14:20:51 2012] [error] [client 192.168.1.112] PHP Warning:  Invalid argument supplied for foreach() in C:\\GitStack\\gitphp\\include\\Authentication.class.php on line 99, referer: https://192.168.1.101:8381/gitstack/ [Sun Nov 25 14:20:51 2012] [error] [client 192.168.1.112] PHP Warning:  Invalid argument supplied for foreach() in C:\\GitStack\\gitphp\\include\\Authentication.class.php on line 107, referer: https://192.168.1.101:8381/gitstack/   Committing worked fine, though, with the same credentials.
0
I did some more digging, and it seems that in function  readRepoPermissions the curl_exec returns error: SSL certificate problem, verify that the CA cert is OK. Details: error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed Now I am using the default certificates, and I disabled verification on the Git client, so my git commits were working. Seems that something must be changed on the server as well, maybe that should be added to the documentation. So, what do I need to change on the server?
0
Are you having this issue?
0
Yes, it seems the modified authentication class fixed it. Thanks.
0
I just tried replacing the file and it didn't seem to change anything. I still have the same issue and the log messages haven't changed.   Something has changed. When I am logged in as admin I can browse my repositories (I couldn't before). I can also log in and use GitStack with my users via command line and git. I still cannot log into the web interface with any user other than admin
0
You can login to the web administration panel only with the admin user. Only real users created via the administration panel can browse the repositories (if they have enough rights).

Your Answer

Please login to post questions.