Unable to login to local AtoM, getting a blank page and no log messages

108 views
Skip to first unread message

Cindy

unread,
Nov 6, 2018, 5:31:00 PM11/6/18
to AtoM Users
Hello,

I am setting up a staging AtoM server on Oracle Linux Server(OL 7.5, Nginx 1.14, PHP7.0, MySQL 5.5,  AtoM 2.4).

While it appears to have installed properly, but I can't log in, it gives a blank white screen and it doesn't give me any errors in /var/log/nginx/error.log.
I had similar issue when I setup local vagrant VirtualBox, I fixed it by starting PHP-FPM from '/opt/remi/php70/root/usr/sbin/php-fpm', but I get same blank page if I use service command (sudo service php70-php-fpm start).
Now on this new staging server, '/opt/remi/php70/root/usr/sbin/php-fpm' doesn't work neither. 
 
I've followed https://groups.google.com/forum/#!msg/ica-atom-users/dkWMHJ_wy84/qD9_KUGSBQAJ, set ssl setting disable in the database, but still can't login.

I also followed the debug instructions at https://www.accesstomemory.org/en/docs/2.3/admin-manual/maintenance/debug/#debug-mode and updated flag to 'true' in index.php. And I added logging in /apps/qubit/config/factories.yml file as below, but sill  no error log/messages. 

cli:
  logger:
    class: sfFileLogger
    param:
      level: info
      file: %SF_LOG_DIR%/qubit_cli.log

dev:
  mailer:
    param:
      delivery_strategy: none

  storage:
    class: QubitSessionStorage
    param:
      session_name: symfony

  logger:
    class: sfAggregateLogger
    param:
      level: debug
      loggers:
        sf_file_debug:
          class: sfFileLogger
          param:
            level: debug
            file: %SF_LOG_DIR%/%SF_APP%_%SF_ENVIRONMENT%.log

Can someone help me how to get the debug mode working and how to fix the login issue. Thanks!

David Hume

unread,
Nov 7, 2018, 7:31:02 PM11/7/18
to AtoM Users

Hi there,

So to clarify, you made the change to index.php, and then ran 'sudo service php70-php-fpm start'? You can see your AtoM home page, but get a blank screen after trying to log in?

May also wish to try 'sudo service nginx reload' as well, and if you could then check and let me know the output of

sudo service nginx status
sudo service php70-php-fpm status

and you say /var/log/nginx/error.log is blank (or at least, no recent messages at the end of the file)? Can you when trying to login again confirm the attempt is logged in /var/log/nginx/access.log, perhaps provide us the last 10 lines of that file
(i.e. 'sudo tail /var/log/nginx/access.log')


Thanks,

     David Hume, Artefactual Systems Administrator

Cindy

unread,
Nov 8, 2018, 9:54:42 AM11/8/18
to AtoM Users
Hi David,

The change I made in index.php is for debug-mode to get debugging message.

Yes, I can see the AtoM home page and able to browse/search, but I can't login. When I try to login with a valid username and password,  I receive a blank page. When I attempt to sign in with an invalid account, or invalid password, I get error messages as expected.

Here are the output of:
 'sudo service nginx reload':
Redirecting to /bin/systemctl reload nginx.service

'sudo service php70-php-fpm restart'
Redirecting to /bin/systemctl restart php70-php-fpm.service

'sudo tail -f /var/log/nginx/error.log' 
no error log

'sudo tail -f /var/log/messages'
Nov  8 09:29:41 systemd: Starting User Slice of XXXXXX
Nov  8 09:29:41 systemd-logind: New session 2448 of user XXXXXX
Nov  8 09:29:41 systemd: Started Session 2448 of user XXXXXX
Nov  8 09:29:41 systemd: Starting Session 2448 of user XXXXXX
Nov  8 09:30:01 systemd: Started Session 2449 of user root.
Nov  8 09:30:01 systemd: Starting Session 2449 of user root.
Nov  8 09:30:15 systemd: Reloaded nginx - high performance web server.
Nov  8 09:30:36 systemd: Stopping The PHP FastCGI Process Manager...
Nov  8 09:30:36 systemd: Starting The PHP FastCGI Process Manager...
Nov  8 09:30:36 systemd: Started The PHP FastCGI Process Manager.
Nov  8 09:40:01 systemd: Started Session 2450 of user root.
Nov  8 09:40:01 systemd: Starting Session 2450 of user root.

'sudo tail -f /var/log/nginx/access.log'

[08/Nov/2018:09:30:48 -0500] "GET /favicon.ico HTTP/1.1" 200 1150 "url""Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/68.0.3440.106 Safari/537.36" "-"
[08/Nov/2018:09:30:50 -0500] "GET /plugins/arXXXXPlugin/images/dropdown-arrow.png HTTP/1.1" 304 0 "url/plugins/arXXXXPlugin/css/min.css" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/68.0.3440.106 Safari/537.36" "-"
[08/Nov/2018:09:30:59 -0500] "POST /user/login HTTP/1.1" 200 7654 "url""Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/68.0.3440.106 Safari/537.36" "-"
[08/Nov/2018:09:31:06 -0500] "POST /index.php/user/login HTTP/1.1" 200 5 "url/user/login" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/68.0.3440.106 Safari/537.36" "-"

Thank you.

Cindy

David Hume

unread,
Nov 8, 2018, 6:46:53 PM11/8/18
to AtoM Users

Hi again Cindy -

OK, so you said above you checked the ssl setting, such that for your AtoM database you definitely see the following result (0 for 'ssl not required')

mysql> select name,value from setting s join setting_i18n si on s.id=si.id where si.culture='en' and s.name='require_ssl_admin';

+--------------------------+-------+
| name                   | value |
+--------------------------+-------+
| require_ssl_admin | 0     |
+--------------------------+-------+
1 row in set (0.00 sec)

You're not using a customized theme I gather, default AtoM icon and appearance?

You may have tried these first two additional commands already as well, but this is the whole gamut we could try... first, change to your default atom directory (typically   cd /usr/share/nginx/atom  for example)

sudo php symfony cc
sudo systemctl restart memcached.service
sudo systemctl restart php70-php-fpm.service
sudo systemctl restart nginx.service

and see if that makes a difference if you try again - and if still nothing coming up in /var/log/nginx/error.log, do you have files updated in the log/ sub-directory right there in your atom directory?


Thanks,

    David
Reply all
Reply to author
Forward
Message has been deleted
Message has been deleted
Message has been deleted
Message has been deleted
Message has been deleted
Message has been deleted
0 new messages