Stuck on login page

1,135 views
Skip to first unread message

Dhiru Chaudhary

unread,
Aug 11, 2016, 10:07:45 AM8/11/16
to Orangescrum Community Support
Hi, during the initial build , it's not going forward with below 2 errors

Make sure that,
  • You have write permission (777) to `app/tmp` and `app/webroot` folders
  • You have updated FROM_EMAIL_NOTIFY and SUPPORT_EMAIL in `app/Config/constants.php`

while i already fix both



Denis DECG

unread,
Aug 11, 2016, 5:51:03 PM8/11/16
to Orangescrum Community Support
Hi, I've the same problem!

Akber Alwani

unread,
Aug 15, 2016, 3:08:13 PM8/15/16
to Orangescrum Community Support
Same is here, this application not at all working. I created sign in and when I try to login it does not do anything just come back to login screen. I tried resetting the password, which is working but it is just stuck somewhere. How to find this.

oc...@the800group.com

unread,
Sep 8, 2016, 10:34:25 AM9/8/16
to Orangescrum Community Support
Hi

I am also experiencing the same problem. I have installed on both Centos7 and Ubuntu 14.04 (Vultr.com hosting). When I first create my login, all works well, but if I log out and log in, I get the situation where I can no longer log into the system. I have also noticed a situation where I have added a new user to a project and then clicked on the link (which opened in the same browser) and then the new user gets tied to my initial user - definitely something funky happening with the Cookies on the browser.

I have set the FQDN of the server and also tried adding localhost and 127.0.0.1 as suggested by previous responses. I have also tried editing the scripts.js file as suggested by someone but still no luck.

It is hard to fathom that this issue has been around for such a long time and no one has been able to resolve it.

Great product but let down by such a small issue but if I can't even log into the system I am forced to find another solution.

I have tried to debug but know very little about cookies etc. Please can someone try and fix this once and for all.

Thanks in advance
O

Trent Johnson

unread,
Sep 9, 2016, 11:09:19 AM9/9/16
to Orangescrum Community Support
After a few painful hours of debugging, I've believe I've found a solution to this issue. The culprit appears the be the os_sessios_logs. Here are the steps I used to allow successful logins.
  1. Empty the os_session_logs table within the mysql orangescrum database. 
    mysql orangescrum;
    DELETE FROM os_session_logs
    ;

  2. Open the file located at /app/Controller/AppController.php and comment out the code snippet below. 
         /* <- ADD THESE COMMENT TAGS
            $this->LoadModel('OsSessionLog');
            $existing_ses = $this->OsSessionLog->getUserDetls($t_uid);
            if ($existing_ses) {
                $t_sql = 'SELECT password FROM users WHERE id=' . $t_uid . ' limit 1';
                $rec_user_login = $this->User->query($t_sql);
                if ($rec_user_login[0]['users']['password'] != $existing_ses['OsSessionLog']['user_agent'][$_COOKIE['user_uniq_agent']]) {
                    $this->temp_logout();
                }
            }
          */ <-- ADD THESE COMMENT TAGS

Save the file and browse out to your OrangeScrum instance and login.

It appears that this snippet does some kind of check to see if an existing session is setup. If there is it ends up calling a temp_logout method, which clears all the authentication cookies and sessions and redirects you back to the login. Perhaps to prevent multiple logins / sessions?

Best,
Trent Johnson

Jose Gonzalez

unread,
Sep 9, 2016, 1:05:29 PM9/9/16
to Orangescrum Community Support
It Works for me. Thank you very much.
Message has been deleted

sasha gulic

unread,
Sep 9, 2016, 2:11:17 PM9/9/16
to Orangescrum Community Support
It works for me too.
Thanks

Gordon O'Brien

unread,
Sep 9, 2016, 6:11:12 PM9/9/16
to Orangescrum Community Support
Awesome!
Thank you.

Faisal Ayub

unread,
Sep 10, 2016, 4:52:41 PM9/10/16
to Orangescrum Community Support
It worked like a charm. Thanks

Atecsco

unread,
Jul 6, 2019, 3:57:39 PM7/6/19
to Orangescrum Community Support
Wher can i find this file please?

Soumya

unread,
Jul 8, 2019, 2:07:33 AM7/8/19
to Orangescrum Community Support
Hi Atecsco,

As mention above, you need to remove the data from  os_session_logs in MySQL. Additionally, please navigate to orangescrum-master/app/Controller/AppController.php and comment the below lines:-

/* <- ADD THESE COMMENT TAGS
$this->LoadModel('OsSessionLog');
$existing_ses = $this->OsSessionLog->getUserDetls($t_uid);
if ($existing_ses) {
$t_sql = 'SELECT password FROM users WHERE id=' . $t_uid . ' limit 1';
$rec_user_login = $this->User->query($t_sql);
if ($rec_user_login[0]['users']['password'] != $existing_ses['OsSessionLog']['user_agent'][$_COOKIE['user_uniq_agent']]) {
$this->temp_logout();
}
}
*/ <-- ADD THESE COMMENT TAGS

Once done, please save the file and refresh the page.

Hope it helps!

Thanks,
Soumya
Orangescrum Team
Reply all
Reply to author
Forward
0 new messages