<!DOCTYPE html>
<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <p>Hi Norbert,</p>
    <p>it looks like the symfony framework has troubles creating the
      session for the user running PHP.</p>
    <p>Hopefully the answers presented in one of these threads can help
      you:</p>
    <p>-
<a class="moz-txt-link-freetext" href="https://stackoverflow.com/questions/39980171/symfony-3-1-5-warning-sessionhandlerread-session-data-file-is-not-created">https://stackoverflow.com/questions/39980171/symfony-3-1-5-warning-sessionhandlerread-session-data-file-is-not-created</a><br>
      -
<a class="moz-txt-link-freetext" href="https://stackoverflow.com/questions/41771425/session-start-session-data-file-is-not-created-by-your-uid">https://stackoverflow.com/questions/41771425/session-start-session-data-file-is-not-created-by-your-uid</a><br>
    </p>
    <p>Good luck and best regards,</p>
    <p>Thorsten Hack</p>
    <p><br>
    </p>
    <pre class="moz-signature" cols="72">***********************************************************
FOSS Academy Sommerschule: Kompaktkurs zum Aufbau einer GDI
02.-06. September 2024, Präsenzveranstaltung in Bonn
<a class="moz-txt-link-freetext" href="https://www.foss-academy.com/kompaktkurse">https://www.foss-academy.com/kompaktkurse</a>
***********************************************************

WhereGroup GmbH
Schwimmbadstr. 2
79100 Freiburg
Germany

Tel.: +49 (0)761 / 519 102 - 67
Fax: +49 (0)761 / 519 102 - 11

<a class="moz-txt-link-abbreviated" href="mailto:thorsten.hack@wheregroup.com">thorsten.hack@wheregroup.com</a>
<a class="moz-txt-link-abbreviated" href="http://www.wheregroup.com">www.wheregroup.com</a>

Geschäftsführer:
Olaf Knopp, Peter Stamm 
Amtsgericht Bonn, HRB 9885</pre>
    <p><br>
    </p>
    <p><br>
    </p>
    <p><br>
    </p>
    <p></p>
    <div class="moz-cite-prefix">Am 22.05.24 um 14:32 schrieb Norbert
      Farago via Mapbender_users:<br>
    </div>
    <blockquote type="cite"
cite="mid:CAMGThTV8sWdVi2ZG_jbJ_VvcZSN5+YWJDLBaXRE3+3qsQA1hXg@mail.gmail.com">
      <meta http-equiv="content-type" content="text/html; charset=UTF-8">
      <div dir="ltr">
        <div dir="ltr">Hi,
          <div><br>
          </div>
          <div>Thank you Thorsten, I have just tried what  you suggested
            to Fabio in another thread recently (commenting lines 11 to
            17), and now the app_dev.php started to immediately stop
            with "Warning: SessionHandler::read() Session data file is
            not created by your
uid". (vendor/symfony/symfony/src/Symfony/Component/HttpFoundation/Session/Storage/NativeSessionStorage.php
            line59)</div>
          <div><br>
          </div>
          <div>Norbert</div>
        </div>
      </div>
      <br>
      <div class="gmail_quote">
        <div dir="ltr" class="gmail_attr">Norbert Farago <<a
            href="mailto:norbert.farago@gmail.com" target="_blank"
            moz-do-not-send="true" class="moz-txt-link-freetext">norbert.farago@gmail.com</a>>
          ezt írta (időpont: 2024. máj. 21., K, 12:04):<br>
        </div>
        <blockquote class="gmail_quote"
style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
          <div dir="ltr">
            <div dir="ltr">
              <div dir="ltr">
                <div dir="ltr">
                  <div dir="ltr">Hi Connor, hi Astrid,
                    <div><br>
                    </div>
                    <div>thank you for the responses! I am using (or
                      intend to use) the latest version of Mapbender
                      (3.3.5), so Symfony is 4.4.50. Unfortunately, the
                      app_dev.php does not work, ("You are not allowed
                      to access this file. Check app_dev.php for more
                      information"), so you will be right, it is
                      something wrong with access rights. App_console is
                      also not allowed to be used, ("Warning:
                      shell_exec() has been disabled for security
                      reasons, ConfigCheckCommand.php line 201"), and
                      the system administrators will not permit me to
                      run this shell function.</div>
                    <div><br>
                    </div>
                    <div>The main problem is the virtual server I got is
                      configured under Andrew File System (AFS), so
                      granting ordinary Unix/Linux write access is not
                      satisfactory, it had to be configured according to
                      the AFS permissions. Moreover, there is no
                      www-data user in this environment, instead, a
                      special user and a Kerberos ticket are given to me
                      every time I want to run a php script. This user
                      has the necessary read, list and write permissions
                      on the Mapbender folders you mentioned. I also
                      gave it a try to grant read, list and write
                      permission to service.web, as an installation
                      guide to Drupal written by the same administrators
                      suggested to, but it does not help.</div>
                    <div>I also checked whether php is running, but
                      there is no problem, my simple php scripts are OK.</div>
                    <div><br>
                    </div>
                    <div>So, the question remains, does anyone have
                      experience with Mapbender under AFS, and what
                      other access rights should I set or obtain?</div>
                    <div><br>
                    </div>
                    <div>Best</div>
                    <div>Norbert</div>
                  </div>
                </div>
              </div>
            </div>
          </div>
          <br>
          <div class="gmail_quote">
            <div dir="ltr" class="gmail_attr">Astrid Emde (WhereGroup)
              via Mapbender_users <<a
                href="mailto:mapbender_users@lists.osgeo.org"
                target="_blank" moz-do-not-send="true"
                class="moz-txt-link-freetext">mapbender_users@lists.osgeo.org</a>>
              ezt írta (időpont: 2024. máj. 17., P, 12:57):<br>
            </div>
            <blockquote class="gmail_quote"
style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hello
              Norbert,<br>
              <br>
              as Connor mentioned you should try the app_dev.php
              developer modus? It <br>
              will give you extra information.<br>
              <br>
              <a href="http://localhost/mapbender/app_dev.php"
                rel="noreferrer" target="_blank" moz-do-not-send="true"
                class="moz-txt-link-freetext">http://localhost/mapbender/app_dev.php</a><br>
              <br>
              You can also check on the console whether everything is
              fine<br>
              <br>
              cd mapbender<br>
              app/console mapbender:config:check<br>
              <br>
              Best regards Astrid<br>
              <br>
              Am 2024-05-17 12:01, schrieb Härtel:<br>
              > Hi Norbert,<br>
              > <br>
              > which version of symfony are you using? The error of
              the session<br>
              > failing to start seems to occur in the class<br>
              >
“vendor/symfony/symfony/src/Symfony/Component/HttpFoundation/Session/Storage/NativeSessionStorage.php”<br>
              > (line 193), I suspect during the call to the start()
              function, which<br>
              > eventually calls the php function “session_start()”.<br>
              > <br>
              > You can check the source code on your system yourself
              for the real<br>
              > cause, though.<br>
              > <br>
              > It is possible, that the error is caused by missing
              write permissions<br>
              > on the directory or sub-directories of app/cache/ or
              var/cache/,<br>
              > depending on your Symfony version.<br>
              > <br>
              > You can also try to call the app_dev.php instead of
              app.php, maybe the<br>
              > logs for dev environment give you another indication
              of what is<br>
              > causing the error.<br>
              > <br>
              > Best regards,<br>
              > <br>
              > Connor<br>
              > <br>
              > Von: Mapbender_users <<a
                href="mailto:mapbender_users-bounces@lists.osgeo.org"
                target="_blank" moz-do-not-send="true"
                class="moz-txt-link-freetext">mapbender_users-bounces@lists.osgeo.org</a>>
              Im<br>
              > Auftrag von Norbert Farago via Mapbender_users<br>
              > Gesendet: Donnerstag, 16. Mai 2024 10:23<br>
              > An: <a href="mailto:mapbender_users@lists.osgeo.org"
                target="_blank" moz-do-not-send="true"
                class="moz-txt-link-freetext">mapbender_users@lists.osgeo.org</a><br>
              > Cc: Norbert Farago <<a
                href="mailto:norbert.farago@gmail.com" target="_blank"
                moz-do-not-send="true" class="moz-txt-link-freetext">norbert.farago@gmail.com</a>><br>
              > Betreff: [Mapbender-users] Fwd: Installation issues +
              Uncaught PHP<br>
              > Exception Twig\Error\RuntimeError (code 0)<br>
              > <br>
              > Dear Mapbender Team,<br>
              > <br>
              > last week I asked for a little help on the mail list,
              but<br>
              > unfortunately, I didn't get a response until now.
              Since then, together<br>
              > with the administrators, we solved the .htaccess and
              Apache problems,<br>
              > but the ones with code 0 remained. I copied here the
              error lines from<br>
              > prod.log, I am sure it will provide some extra hint
              for you<br>
              > (definitely it did not for me).<br>
              > <br>
              > [2024-05-15 23:12:52] request.INFO: Matched route
              "mapbender_start".<br>
              >
{"route":"mapbender_start","route_parameters":{"_route":"mapbender_start","_controller":"Mapbender\\CoreBundle\\Controller\\WelcomeController::listAction"},"request_uri":<a class="moz-txt-link-rfc2396E" href="https://(...)/">"https://(...)/"</a>,"method":"GET"}<br>
              > []<br>
              > <br>
              > [2024-05-15 23:12:52] security.INFO: Populated the
              TokenStorage with<br>
              > an anonymous Token. [] []<br>
              > <br>
              > [2024-05-15 23:12:54] request.CRITICAL: Uncaught PHP
              Exception<br>
              > Twig\Error\RuntimeError: "An exception has been
              thrown during the<br>
              > rendering of a template ("Failed to start the
              session.")." at<br>
              >
/afs/(...)/mapbender/mapbender/src/Mapbender/ManagerBundle/Resources/views/manager.html.twig<br>
              > line 19 {"exception":"[object]
              (Twig\\Error\\RuntimeError(code: 0): An<br>
              > exception has been thrown during the rendering of a
              template (\"Failed<br>
              > to start the session.\"). at<br>
              >
/afs/(...)/mapbender/mapbender/src/Mapbender/ManagerBundle/Resources/views/manager.html.twig:19,<br>
              > RuntimeException(code: 0): Failed to start the
              session. at<br>
              >
/afs/(...)/mapbender/vendor/symfony/symfony/src/Symfony/Component/HttpFoundation/Session/Storage/NativeSessionStorage.php:193)"}<br>
              > []<br>
              > <br>
              > [2024-05-15 23:12:55] request.ERROR: Uncaught PHP
              Exception<br>
              >
              Symfony\Component\HttpKernel\Exception\NotFoundHttpException:
              "No<br>
              > route found for "GET /favicon.ico" (from
              <a class="moz-txt-link-rfc2396E" href="https://(...)">"https://(...)"</a>)" at<br>
              >
/afs/(...)/mapbender/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/EventListener/RouterListener.php<br>
              > line 136 {"exception":"[object]<br>
              >
              (Symfony\\Component\\HttpKernel\\Exception\\NotFoundHttpException(code:<br>
              > 0): No route found for \"GET /favicon.ico\" (from
              \<a class="moz-txt-link-rfc2396E" href="https://(....)">"https://(....)"</a>)<br>
              > at<br>
              >
/afs/(...)/mapbender/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/EventListener/RouterListener.php:136,<br>
              >
              Symfony\\Component\\Routing\\Exception\\ResourceNotFoundException(code:<br>
              > 0): No routes found for \"/favicon.ico/\". at<br>
              >
/afs/(...)/mapbender/vendor/symfony/symfony/src/Symfony/Component/Routing/Matcher/Dumper/CompiledUrlMatcherTrait.php:70)"}<br>
              > []<br>
              > <br>
              > Thank you in advance!<br>
              > <br>
              > Best<br>
              > <br>
              > Norbert Faragó<br>
              > _______________________________________________<br>
              > Mapbender_users mailing list<br>
              > <a href="mailto:Mapbender_users@lists.osgeo.org"
                target="_blank" moz-do-not-send="true"
                class="moz-txt-link-freetext">Mapbender_users@lists.osgeo.org</a><br>
              > <a
href="https://lists.osgeo.org/mailman/listinfo/mapbender_users"
                rel="noreferrer" target="_blank" moz-do-not-send="true"
                class="moz-txt-link-freetext">https://lists.osgeo.org/mailman/listinfo/mapbender_users</a><br>
              <br>
              -- <br>
              Mit freundlichen Grüßen<br>
              <br>
              Astrid Emde<br>
              GIS-Consultant<br>
              <br>
              **********************************<br>
              <br>
              Aufwind durch Wissen!<br>
              Web-Seminare und Online-Schulungen<br>
              bei der <a href="http://www.foss-academy.com"
                rel="noreferrer" target="_blank" moz-do-not-send="true">www.foss-academy.com</a><br>
              <br>
              **********************************<br>
              <br>
              <br>
                 Astrid Emde<br>
                 WhereGroup GmbH<br>
                 Eifelstraße 7<br>
                 53119 Bonn<br>
                 Germany<br>
              <br>
                 Tel: +49(0)228 90 90 38 - 22<br>
                 Fax: +49(0)228 90 90 38 - 11<br>
              <br>
                 <a href="mailto:astrid.emde@wheregroup.com"
                target="_blank" moz-do-not-send="true"
                class="moz-txt-link-freetext">astrid.emde@wheregroup.com</a><br>
                 <a href="http://www.wheregroup.com" rel="noreferrer"
                target="_blank" moz-do-not-send="true">www.wheregroup.com</a><br>
              <br>
                 Meinen PGP Public-Key können Sie unter <a
                href="http://pgp.mit.edu" rel="noreferrer"
                target="_blank" moz-do-not-send="true">pgp.mit.edu</a>
              herunterladen:<br>
              <br>
              <a
href="https://keys.openpgp.org/vks/v1/by-fingerprint/01F8152D36FC07C25EADDE86C5084ACC1C287CCB"
                rel="noreferrer" target="_blank" moz-do-not-send="true"
                class="moz-txt-link-freetext">https://keys.openpgp.org/vks/v1/by-fingerprint/01F8152D36FC07C25EADDE86C5084ACC1C287CCB</a><br>
                 Signierte und/oder verschlüsselte Nachrichten sind sehr
              willkommen<br>
              <br>
                 Folgen Sie der WhereGroup auf twitter:<br>
                 <a href="http://twitter.com/WhereGroup_com"
                rel="noreferrer" target="_blank" moz-do-not-send="true"
                class="moz-txt-link-freetext">http://twitter.com/WhereGroup_com</a><br>
              <br>
                 Geschäftsführer:<br>
                 Olaf Knopp, Peter Stamm<br>
                 Amtsgericht Bonn, HRB 9885<br>
-------------------------------_______________________________________________<br>
              Mapbender_users mailing list<br>
              <a href="mailto:Mapbender_users@lists.osgeo.org"
                target="_blank" moz-do-not-send="true"
                class="moz-txt-link-freetext">Mapbender_users@lists.osgeo.org</a><br>
              <a
href="https://lists.osgeo.org/mailman/listinfo/mapbender_users"
                rel="noreferrer" target="_blank" moz-do-not-send="true"
                class="moz-txt-link-freetext">https://lists.osgeo.org/mailman/listinfo/mapbender_users</a><br>
            </blockquote>
          </div>
        </blockquote>
      </div>
      <br>
      <fieldset class="moz-mime-attachment-header"></fieldset>
      <pre class="moz-quote-pre" wrap="">_______________________________________________
Mapbender_users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Mapbender_users@lists.osgeo.org">Mapbender_users@lists.osgeo.org</a>
<a class="moz-txt-link-freetext" href="https://lists.osgeo.org/mailman/listinfo/mapbender_users">https://lists.osgeo.org/mailman/listinfo/mapbender_users</a>
</pre>
    </blockquote>
    <pre class="moz-signature" cols="72">-- 
</pre>
  </body>
</html>