Uploaded image for project: 'eZ Publish / Platform'
  1. eZ Publish / Platform
  2. EZP-25117

New eZ Platform install not accepting default password

    Details

      Description

      I have attempted a new install exPlatform several times now, following the guidelines on https://github.com/ezsystems/ezplatform/blob/master/INSTALL.md
      and each time when I attempt to login to the UI I get the following message:
      "An unexpected error occured"
      and the "reset password" button only reloads the page.

      All database queries seem ok during the setup, and there is a password username (admin) and a password "salt" in the relevant place in the ezuser table

      I wondered if it was a permissions issue, but I have tried step 2 and tried without step 2 (I am not using Nix) and still no change

      Thanks in advance

      Barry

        Issue Links

          Activity

          Hide
          Damien Pobel (Inactive) added a comment -

          The "reset my password" is indeed missing, I added the story in the Issue links. For the login issue itself, normally with "admin" as the login and "publish" as the password, that should work. Can you open the browser dev tools in the network panel and try again so that we can see the response of the REST API that does the login ?

          Show
          Damien Pobel (Inactive) added a comment - The "reset my password" is indeed missing, I added the story in the Issue links. For the login issue itself, normally with "admin" as the login and "publish" as the password, that should work. Can you open the browser dev tools in the network panel and try again so that we can see the response of the REST API that does the login ?
          Hide
          Barry Holland added a comment -

          Great thanks.
          I was actually going to try to set the Symfony debug toolbar to visible. In previous (legacy) versions I think I added a .htaccess file in the web directory, to make Dev environment active. I have tried changing the ENV setting in web/index.php but this did not bring up the debug toolbar. It is not obvious. Could you help me?

          Maybe this should be added to an easily found section of the documentation or the tutorial, as many people will surely want to be able to use this toolbar

          Show
          Barry Holland added a comment - Great thanks. I was actually going to try to set the Symfony debug toolbar to visible. In previous (legacy) versions I think I added a .htaccess file in the web directory, to make Dev environment active. I have tried changing the ENV setting in web/index.php but this did not bring up the debug toolbar. It is not obvious. Could you help me? Maybe this should be added to an easily found section of the documentation or the tutorial, as many people will surely want to be able to use this toolbar
          Hide
          Damien Pobel (Inactive) added a comment -

          If you use the provided template for Apache2 or Nginx (see https://github.com/ezsystems/ezplatform/tree/master/doc), normally, you just have to change the ENVIRONMENT variable to dev and restart you server. And indeed the toolbar would give you the resulf of the AJAX call done to login (POST to http://yoursite/api/ezp/v2/user/sessions). But without switching to dev mode, you check that in the dev tools of your browser.

          Show
          Damien Pobel (Inactive) added a comment - If you use the provided template for Apache2 or Nginx (see https://github.com/ezsystems/ezplatform/tree/master/doc ), normally, you just have to change the ENVIRONMENT variable to dev and restart you server. And indeed the toolbar would give you the resulf of the AJAX call done to login (POST to http://yoursite/api/ezp/v2/user/sessions ). But without switching to dev mode, you check that in the dev tools of your browser.
          Hide
          Barry Holland added a comment -

          This is my AJAX readout from the debug toolbar, but I am not sure what I am looking at to try to solve this. Can anybody help me?

          Request GET Parameters

          No GET parameters
          Request POST Parameters

          No POST parameters
          Request Attributes
          Key Value
          is_rest_request

          false

          semanticPathinfo

          /platform/magpie/web/index.php/api/ezp/v2/user/sessions

          siteaccess

          Object(eZ\Publish\Core\MVC\Symfony\SiteAccess)

          viewParameters

          []

          viewParametersString

          Request Cookies
          Key Value
          adminNavigationTab

          view

          eZSESSID98defd6ee70dfb1dea416cecdf391f58

          911da06e8a27457b419a0bc2e1091384

          eZSubitemColumns

          ezcontentnavigationpart=thumbnail%7Cname%7Cclass_name%7Cpublished_date%7Ctranslations%7Cpriority

          tagsStructureMenu

          0

          Request Headers
          Key Value
          accept

          application/vnd.ez.api.Session+json

          accept-encoding

          gzip, deflate

          accept-language

          en-GB,en;q=0.5

          cache-control

          no-cache

          connection

          keep-alive

          content-length

          55

          content-type

          application/vnd.ez.api.SessionInput+json; charset=UTF-8

          cookie

          adminNavigationTab=view; eZSubitemColumns=ezcontentnavigationpart=thumbnail%257Cname%257Cclass_name%257Cpublished_date%257Ctranslations%257Cpriority; tagsStructureMenu=0; eZSESSID98defd6ee70dfb1dea416cecdf391f58=911da06e8a27457b419a0bc2e1091384

          host

          localhost:8888

          pragma

          no-cache

          referer

          http://localhost:8888/platform/magpie/web/index.php/ez

          user-agent

          Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:42.0) Gecko/20100101 Firefox/42.0

          x-php-ob-level

          0

          Request Content

          {"SessionInput":{"login":"admin","password":"publish"}}

          Request Server Parameters
          Key Value
          CONTENT_LENGTH

          55

          CONTENT_TYPE

          application/vnd.ez.api.SessionInput+json; charset=UTF-8

          DOCUMENT_ROOT

          /Applications/MAMP/htdocs

          ENVIRONMENT

          dev

          GATEWAY_INTERFACE

          CGI/1.1

          HTTP_ACCEPT

          application/vnd.ez.api.Session+json

          HTTP_ACCEPT_ENCODING

          gzip, deflate

          HTTP_ACCEPT_LANGUAGE

          en-GB,en;q=0.5

          HTTP_CACHE_CONTROL

          no-cache

          HTTP_CONNECTION

          keep-alive

          HTTP_COOKIE

          adminNavigationTab=view; eZSubitemColumns=ezcontentnavigationpart=thumbnail%257Cname%257Cclass_name%257Cpublished_date%257Ctranslations%257Cpriority; tagsStructureMenu=0; eZSESSID98defd6ee70dfb1dea416cecdf391f58=911da06e8a27457b419a0bc2e1091384

          HTTP_HOST

          localhost:8888

          HTTP_PRAGMA

          no-cache

          HTTP_REFERER

          http://localhost:8888/platform/magpie/web/index.php/ez

          HTTP_USER_AGENT

          Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:42.0) Gecko/20100101 Firefox/42.0

          PATH

          /usr/bin:/bin:/usr/sbin:/sbin

          PATH_INFO

          /platform/magpie/web/index.php/api/ezp/v2/user/sessions

          PATH_TRANSLATED

          /Applications/MAMP/htdocs/platform/magpie/web/index.php/api/ezp/v2/user/sessions

          PHP_SELF

          /platform/magpie/web/index.php/platform/magpie/web/index.php/api/ezp/v2/user/sessions

          QUERY_STRING

          REMOTE_ADDR

          ::1

          REMOTE_PORT

          59231

          REQUEST_METHOD

          POST

          REQUEST_TIME

          1448930202

          REQUEST_TIME_FLOAT

          1448930202.08

          REQUEST_URI

          /platform/magpie/web/index.php/platform/magpie/web/index.php/api/ezp/v2/user/sessions

          SCRIPT_FILENAME

          /Applications/MAMP/htdocs/platform/magpie/web/index.php

          SCRIPT_NAME

          /platform/magpie/web/index.php

          SERVER_ADDR

          ::1

          SERVER_ADMIN

          you@example.com

          SERVER_NAME

          localhost

          SERVER_PORT

          8888

          SERVER_PROTOCOL

          HTTP/1.1

          SERVER_SIGNATURE

          SERVER_SOFTWARE

          Apache/2.2.26 (Unix) mod_fastcgi/2.4.6 mod_wsgi/3.4 Python/2.7.6 PHP/5.5.14 mod_ssl/2.2.26 OpenSSL/0.9.8za DAV/2 mod_perl/2.0.8 Perl/v5.18.2

          argc

          0

          argv

          []

          Response Headers
          Key Value
          cache-control

          no-cache, private

          content-type

          text/html; charset=UTF-8

          date

          Tue, 01 Dec 2015 00:36:44 GMT

          vary

          Cookie

          x-cache-debug

          1

          x-debug-token

          ea4ab5

          x-debug-token-link

          /platform/magpie/web/index.php/_profiler/7a758b

          Session Metadata

          No session metadata
          Session Attributes

          No session attributes
          Flashes

          No flashes
          Sub requests
          7a758b
          Key Value
          _controller

          twig.controller.exception:showAction

          _locale

          en_GB

          exception

          Object(Symfony\Component\Debug\Exception\FlattenException)

          format

          html

          is_rest_request

          false

          logger

          Object(Symfony\Bridge\Monolog\Logger)

          semanticPathinfo

          /platform/magpie/web/index.php/api/ezp/v2/user/sessions

          siteaccess

          Object(eZ\Publish\Core\MVC\Symfony\SiteAccess)

          viewParameters

          []

          viewParametersString

          Show
          Barry Holland added a comment - This is my AJAX readout from the debug toolbar, but I am not sure what I am looking at to try to solve this. Can anybody help me? Request GET Parameters No GET parameters Request POST Parameters No POST parameters Request Attributes Key Value is_rest_request false semanticPathinfo /platform/magpie/web/index.php/api/ezp/v2/user/sessions siteaccess Object(eZ\Publish\Core\MVC\Symfony\SiteAccess) viewParameters [] viewParametersString Request Cookies Key Value adminNavigationTab view eZSESSID98defd6ee70dfb1dea416cecdf391f58 911da06e8a27457b419a0bc2e1091384 eZSubitemColumns ezcontentnavigationpart=thumbnail%7Cname%7Cclass_name%7Cpublished_date%7Ctranslations%7Cpriority tagsStructureMenu 0 Request Headers Key Value accept application/vnd.ez.api.Session+json accept-encoding gzip, deflate accept-language en-GB,en;q=0.5 cache-control no-cache connection keep-alive content-length 55 content-type application/vnd.ez.api.SessionInput+json; charset=UTF-8 cookie adminNavigationTab=view; eZSubitemColumns=ezcontentnavigationpart=thumbnail%257Cname%257Cclass_name%257Cpublished_date%257Ctranslations%257Cpriority; tagsStructureMenu=0; eZSESSID98defd6ee70dfb1dea416cecdf391f58=911da06e8a27457b419a0bc2e1091384 host localhost:8888 pragma no-cache referer http://localhost:8888/platform/magpie/web/index.php/ez user-agent Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:42.0) Gecko/20100101 Firefox/42.0 x-php-ob-level 0 Request Content {"SessionInput":{"login":"admin","password":"publish"}} Request Server Parameters Key Value CONTENT_LENGTH 55 CONTENT_TYPE application/vnd.ez.api.SessionInput+json; charset=UTF-8 DOCUMENT_ROOT /Applications/MAMP/htdocs ENVIRONMENT dev GATEWAY_INTERFACE CGI/1.1 HTTP_ACCEPT application/vnd.ez.api.Session+json HTTP_ACCEPT_ENCODING gzip, deflate HTTP_ACCEPT_LANGUAGE en-GB,en;q=0.5 HTTP_CACHE_CONTROL no-cache HTTP_CONNECTION keep-alive HTTP_COOKIE adminNavigationTab=view; eZSubitemColumns=ezcontentnavigationpart=thumbnail%257Cname%257Cclass_name%257Cpublished_date%257Ctranslations%257Cpriority; tagsStructureMenu=0; eZSESSID98defd6ee70dfb1dea416cecdf391f58=911da06e8a27457b419a0bc2e1091384 HTTP_HOST localhost:8888 HTTP_PRAGMA no-cache HTTP_REFERER http://localhost:8888/platform/magpie/web/index.php/ez HTTP_USER_AGENT Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:42.0) Gecko/20100101 Firefox/42.0 PATH /usr/bin:/bin:/usr/sbin:/sbin PATH_INFO /platform/magpie/web/index.php/api/ezp/v2/user/sessions PATH_TRANSLATED /Applications/MAMP/htdocs/platform/magpie/web/index.php/api/ezp/v2/user/sessions PHP_SELF /platform/magpie/web/index.php/platform/magpie/web/index.php/api/ezp/v2/user/sessions QUERY_STRING REMOTE_ADDR ::1 REMOTE_PORT 59231 REQUEST_METHOD POST REQUEST_TIME 1448930202 REQUEST_TIME_FLOAT 1448930202.08 REQUEST_URI /platform/magpie/web/index.php/platform/magpie/web/index.php/api/ezp/v2/user/sessions SCRIPT_FILENAME /Applications/MAMP/htdocs/platform/magpie/web/index.php SCRIPT_NAME /platform/magpie/web/index.php SERVER_ADDR ::1 SERVER_ADMIN you@example.com SERVER_NAME localhost SERVER_PORT 8888 SERVER_PROTOCOL HTTP/1.1 SERVER_SIGNATURE SERVER_SOFTWARE Apache/2.2.26 (Unix) mod_fastcgi/2.4.6 mod_wsgi/3.4 Python/2.7.6 PHP/5.5.14 mod_ssl/2.2.26 OpenSSL/0.9.8za DAV/2 mod_perl/2.0.8 Perl/v5.18.2 argc 0 argv [] Response Headers Key Value cache-control no-cache, private content-type text/html; charset=UTF-8 date Tue, 01 Dec 2015 00:36:44 GMT vary Cookie x-cache-debug 1 x-debug-token ea4ab5 x-debug-token-link /platform/magpie/web/index.php/_profiler/7a758b Session Metadata No session metadata Session Attributes No session attributes Flashes No flashes Sub requests 7a758b Key Value _controller twig.controller.exception:showAction _locale en_GB exception Object(Symfony\Component\Debug\Exception\FlattenException) format html is_rest_request false logger Object(Symfony\Bridge\Monolog\Logger) semanticPathinfo /platform/magpie/web/index.php/api/ezp/v2/user/sessions siteaccess Object(eZ\Publish\Core\MVC\Symfony\SiteAccess) viewParameters [] viewParametersString
          Hide
          Barry Holland added a comment -

          Also worth mentioning:

          When I go to my frontend ( so / instead of /ez for the backend login ) the default admin/platform login details are successful.
          I can conclude that it is not an error recognising the password so has to be a different error

          Show
          Barry Holland added a comment - Also worth mentioning: When I go to my frontend ( so / instead of /ez for the backend login ) the default admin/platform login details are successful. I can conclude that it is not an error recognising the password so has to be a different error
          Hide
          Pedro Acácio added a comment -

          I think that I faced the same problem.
          In my case, I need to set the value of SYMFONY_CLASSLOADER_FILE with "../app/autoload.php" on my VirtualHost, otherwise my login didn't work.

          Show
          Pedro Acácio added a comment - I think that I faced the same problem. In my case, I need to set the value of SYMFONY_CLASSLOADER_FILE with "../app/autoload.php" on my VirtualHost, otherwise my login didn't work.
          Hide
          Damien Pobel (Inactive) added a comment -

          Bertrand Dunogier I think there are several issues there and given the very bad error reporting system on the login form people are confused first then it's us.

          That said, I think we have login issue(s) when the web server document root is not set to the web dir (ie URL are like http://example.com/web/index.php/ez) or most likely also when Platform is installed in a sub dir (ie URL like http://example.com/dir/subdir/index.php/ez) and I would be surprised if everything works well when we have with both (ie URL are like http://example.com/dir/subdir/web/index.php/ez)

          Show
          Damien Pobel (Inactive) added a comment - Bertrand Dunogier I think there are several issues there and given the very bad error reporting system on the login form people are confused first then it's us. That said, I think we have login issue(s) when the web server document root is not set to the web dir (ie URL are like http://example.com/web/index.php/ez ) or most likely also when Platform is installed in a sub dir (ie URL like http://example.com/dir/subdir/index.php/ez ) and I would be surprised if everything works well when we have with both (ie URL are like http://example.com/dir/subdir/web/index.php/ez )
          Hide
          Damien Pobel (Inactive) added a comment -

          I think you experienced several issues in this bug. But the main one being that for now we only support URL scheme like http://example.com/ez so anything else like http://example.com/sub/dir/ez or http://example.com/web/index.php/ez or ... won't work. This is the point of the issue EZP-26173. So I'm closing this one as duplicate.

          Show
          Damien Pobel (Inactive) added a comment - I think you experienced several issues in this bug. But the main one being that for now we only support URL scheme like http://example.com/ez so anything else like http://example.com/sub/dir/ez or http://example.com/web/index.php/ez or ... won't work. This is the point of the issue EZP-26173 . So I'm closing this one as duplicate.

            People

            • Assignee:
              Unassigned
              Reporter:
              Barry Holland
            • Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: