Apache showing Permission denied: flask_session error










0















Im trying to get flask with virtual environment and wsgi configured to work but Apache keeps giving me this error:




[Tue Nov 13 13:23:55.179153 2018] [wsgi:error] [pid 11819] [x.x.x.x:xxxx] app.session_interface = self._get_interface(app)



[Tue Nov 13 13:23:55.179160 2018] [wsgi:error] [pid 11819] [x.x.x.x:xxxx] File "/var/www/html/project/python/lib/python3.6/site-packages/flask_session/init.py",
line 93, in _get_interface



[Tue Nov 13 13:23:55.179163 2018] [wsgi:error] [pid 11819] [x.x.x.x:xxxx] config['SESSION_USE_SIGNER'], config['SESSION_PERMANENT'])



[Tue Nov 13 13:23:55.179169 2018] [wsgi:error] [pid 11819] [x.x.x.x:xxxx] File "/var/www/html/project/python/lib/python3.6/site-packages/flask_session/sessions.py",
line 314, in init



[Tue Nov 13 13:23:55.179172 2018] [wsgi:error] [pid 11819] [x.x.x.x:xxxx] self.cache = FileSystemCache(cache_dir, threshold=threshold, mode=mode)



[Tue Nov 13 13:23:55.179177 2018] [wsgi:error] [pid 11819] [x.x.x.x:xxxx] File "/var/www/html/project/python/lib/python3.6/site-packages/werkzeug/contrib/cache.py",
line 717, in init



[Tue Nov 13 13:23:55.179180 2018] [wsgi:error] [pid 11819] [x.x.x.x:xxxx] os.makedirs(self._path)



[Tue Nov 13 13:23:55.179185 2018] [wsgi:error] [pid 11819] [x.x.x.x:xxxx] File "/lib64/python3.6/os.py", line 220, in makedirs



[Tue Nov 13 13:23:55.179188 2018] [wsgi:error] [pid 11819] [x.x.x.x:xxxx] mkdir(name, mode)



[Tue Nov 13 13:23:55.179215 2018] [wsgi:error] [pid 11819] [x.x.x.x:xxxx] PermissionError: [Errno 13] Permission denied: '/flask_session'




I tried giving the project different permissions but nothing worked










share|improve this question


























    0















    Im trying to get flask with virtual environment and wsgi configured to work but Apache keeps giving me this error:




    [Tue Nov 13 13:23:55.179153 2018] [wsgi:error] [pid 11819] [x.x.x.x:xxxx] app.session_interface = self._get_interface(app)



    [Tue Nov 13 13:23:55.179160 2018] [wsgi:error] [pid 11819] [x.x.x.x:xxxx] File "/var/www/html/project/python/lib/python3.6/site-packages/flask_session/init.py",
    line 93, in _get_interface



    [Tue Nov 13 13:23:55.179163 2018] [wsgi:error] [pid 11819] [x.x.x.x:xxxx] config['SESSION_USE_SIGNER'], config['SESSION_PERMANENT'])



    [Tue Nov 13 13:23:55.179169 2018] [wsgi:error] [pid 11819] [x.x.x.x:xxxx] File "/var/www/html/project/python/lib/python3.6/site-packages/flask_session/sessions.py",
    line 314, in init



    [Tue Nov 13 13:23:55.179172 2018] [wsgi:error] [pid 11819] [x.x.x.x:xxxx] self.cache = FileSystemCache(cache_dir, threshold=threshold, mode=mode)



    [Tue Nov 13 13:23:55.179177 2018] [wsgi:error] [pid 11819] [x.x.x.x:xxxx] File "/var/www/html/project/python/lib/python3.6/site-packages/werkzeug/contrib/cache.py",
    line 717, in init



    [Tue Nov 13 13:23:55.179180 2018] [wsgi:error] [pid 11819] [x.x.x.x:xxxx] os.makedirs(self._path)



    [Tue Nov 13 13:23:55.179185 2018] [wsgi:error] [pid 11819] [x.x.x.x:xxxx] File "/lib64/python3.6/os.py", line 220, in makedirs



    [Tue Nov 13 13:23:55.179188 2018] [wsgi:error] [pid 11819] [x.x.x.x:xxxx] mkdir(name, mode)



    [Tue Nov 13 13:23:55.179215 2018] [wsgi:error] [pid 11819] [x.x.x.x:xxxx] PermissionError: [Errno 13] Permission denied: '/flask_session'




    I tried giving the project different permissions but nothing worked










    share|improve this question
























      0












      0








      0








      Im trying to get flask with virtual environment and wsgi configured to work but Apache keeps giving me this error:




      [Tue Nov 13 13:23:55.179153 2018] [wsgi:error] [pid 11819] [x.x.x.x:xxxx] app.session_interface = self._get_interface(app)



      [Tue Nov 13 13:23:55.179160 2018] [wsgi:error] [pid 11819] [x.x.x.x:xxxx] File "/var/www/html/project/python/lib/python3.6/site-packages/flask_session/init.py",
      line 93, in _get_interface



      [Tue Nov 13 13:23:55.179163 2018] [wsgi:error] [pid 11819] [x.x.x.x:xxxx] config['SESSION_USE_SIGNER'], config['SESSION_PERMANENT'])



      [Tue Nov 13 13:23:55.179169 2018] [wsgi:error] [pid 11819] [x.x.x.x:xxxx] File "/var/www/html/project/python/lib/python3.6/site-packages/flask_session/sessions.py",
      line 314, in init



      [Tue Nov 13 13:23:55.179172 2018] [wsgi:error] [pid 11819] [x.x.x.x:xxxx] self.cache = FileSystemCache(cache_dir, threshold=threshold, mode=mode)



      [Tue Nov 13 13:23:55.179177 2018] [wsgi:error] [pid 11819] [x.x.x.x:xxxx] File "/var/www/html/project/python/lib/python3.6/site-packages/werkzeug/contrib/cache.py",
      line 717, in init



      [Tue Nov 13 13:23:55.179180 2018] [wsgi:error] [pid 11819] [x.x.x.x:xxxx] os.makedirs(self._path)



      [Tue Nov 13 13:23:55.179185 2018] [wsgi:error] [pid 11819] [x.x.x.x:xxxx] File "/lib64/python3.6/os.py", line 220, in makedirs



      [Tue Nov 13 13:23:55.179188 2018] [wsgi:error] [pid 11819] [x.x.x.x:xxxx] mkdir(name, mode)



      [Tue Nov 13 13:23:55.179215 2018] [wsgi:error] [pid 11819] [x.x.x.x:xxxx] PermissionError: [Errno 13] Permission denied: '/flask_session'




      I tried giving the project different permissions but nothing worked










      share|improve this question














      Im trying to get flask with virtual environment and wsgi configured to work but Apache keeps giving me this error:




      [Tue Nov 13 13:23:55.179153 2018] [wsgi:error] [pid 11819] [x.x.x.x:xxxx] app.session_interface = self._get_interface(app)



      [Tue Nov 13 13:23:55.179160 2018] [wsgi:error] [pid 11819] [x.x.x.x:xxxx] File "/var/www/html/project/python/lib/python3.6/site-packages/flask_session/init.py",
      line 93, in _get_interface



      [Tue Nov 13 13:23:55.179163 2018] [wsgi:error] [pid 11819] [x.x.x.x:xxxx] config['SESSION_USE_SIGNER'], config['SESSION_PERMANENT'])



      [Tue Nov 13 13:23:55.179169 2018] [wsgi:error] [pid 11819] [x.x.x.x:xxxx] File "/var/www/html/project/python/lib/python3.6/site-packages/flask_session/sessions.py",
      line 314, in init



      [Tue Nov 13 13:23:55.179172 2018] [wsgi:error] [pid 11819] [x.x.x.x:xxxx] self.cache = FileSystemCache(cache_dir, threshold=threshold, mode=mode)



      [Tue Nov 13 13:23:55.179177 2018] [wsgi:error] [pid 11819] [x.x.x.x:xxxx] File "/var/www/html/project/python/lib/python3.6/site-packages/werkzeug/contrib/cache.py",
      line 717, in init



      [Tue Nov 13 13:23:55.179180 2018] [wsgi:error] [pid 11819] [x.x.x.x:xxxx] os.makedirs(self._path)



      [Tue Nov 13 13:23:55.179185 2018] [wsgi:error] [pid 11819] [x.x.x.x:xxxx] File "/lib64/python3.6/os.py", line 220, in makedirs



      [Tue Nov 13 13:23:55.179188 2018] [wsgi:error] [pid 11819] [x.x.x.x:xxxx] mkdir(name, mode)



      [Tue Nov 13 13:23:55.179215 2018] [wsgi:error] [pid 11819] [x.x.x.x:xxxx] PermissionError: [Errno 13] Permission denied: '/flask_session'




      I tried giving the project different permissions but nothing worked







      python apache flask wsgi flask-session






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Nov 13 '18 at 13:38









      CayenneCayenne

      156




      156






















          1 Answer
          1






          active

          oldest

          votes


















          0














          The directory is failing to be created is on behalf of flask-session, which has a SESSION_FILE_DIR setting that'll let you override its default. Point that to some place with the appropriate permissions, and you'll likely be fine.






          share|improve this answer























          • I tried, setting permissions doesn't work

            – Cayenne
            Nov 14 '18 at 4:39











          • Same error, or slightly different?

            – Dave W. Smith
            Nov 14 '18 at 4:47











          • same error that I had :(

            – Cayenne
            Nov 14 '18 at 5:01











          • Find someone who understands Window permissions. I did, but that was back in the Windows XP/Windows 7 days.

            – Dave W. Smith
            Nov 14 '18 at 5:06











          • its on a linux machine

            – Cayenne
            Nov 14 '18 at 5:09










          Your Answer






          StackExchange.ifUsing("editor", function ()
          StackExchange.using("externalEditor", function ()
          StackExchange.using("snippets", function ()
          StackExchange.snippets.init();
          );
          );
          , "code-snippets");

          StackExchange.ready(function()
          var channelOptions =
          tags: "".split(" "),
          id: "1"
          ;
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function()
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled)
          StackExchange.using("snippets", function()
          createEditor();
          );

          else
          createEditor();

          );

          function createEditor()
          StackExchange.prepareEditor(
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          imageUploader:
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          ,
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          );



          );













          draft saved

          draft discarded


















          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53282275%2fapache-showing-permission-denied-flask-session-error%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown

























          1 Answer
          1






          active

          oldest

          votes








          1 Answer
          1






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes









          0














          The directory is failing to be created is on behalf of flask-session, which has a SESSION_FILE_DIR setting that'll let you override its default. Point that to some place with the appropriate permissions, and you'll likely be fine.






          share|improve this answer























          • I tried, setting permissions doesn't work

            – Cayenne
            Nov 14 '18 at 4:39











          • Same error, or slightly different?

            – Dave W. Smith
            Nov 14 '18 at 4:47











          • same error that I had :(

            – Cayenne
            Nov 14 '18 at 5:01











          • Find someone who understands Window permissions. I did, but that was back in the Windows XP/Windows 7 days.

            – Dave W. Smith
            Nov 14 '18 at 5:06











          • its on a linux machine

            – Cayenne
            Nov 14 '18 at 5:09















          0














          The directory is failing to be created is on behalf of flask-session, which has a SESSION_FILE_DIR setting that'll let you override its default. Point that to some place with the appropriate permissions, and you'll likely be fine.






          share|improve this answer























          • I tried, setting permissions doesn't work

            – Cayenne
            Nov 14 '18 at 4:39











          • Same error, or slightly different?

            – Dave W. Smith
            Nov 14 '18 at 4:47











          • same error that I had :(

            – Cayenne
            Nov 14 '18 at 5:01











          • Find someone who understands Window permissions. I did, but that was back in the Windows XP/Windows 7 days.

            – Dave W. Smith
            Nov 14 '18 at 5:06











          • its on a linux machine

            – Cayenne
            Nov 14 '18 at 5:09













          0












          0








          0







          The directory is failing to be created is on behalf of flask-session, which has a SESSION_FILE_DIR setting that'll let you override its default. Point that to some place with the appropriate permissions, and you'll likely be fine.






          share|improve this answer













          The directory is failing to be created is on behalf of flask-session, which has a SESSION_FILE_DIR setting that'll let you override its default. Point that to some place with the appropriate permissions, and you'll likely be fine.







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Nov 13 '18 at 17:36









          Dave W. SmithDave W. Smith

          16.3k22430




          16.3k22430












          • I tried, setting permissions doesn't work

            – Cayenne
            Nov 14 '18 at 4:39











          • Same error, or slightly different?

            – Dave W. Smith
            Nov 14 '18 at 4:47











          • same error that I had :(

            – Cayenne
            Nov 14 '18 at 5:01











          • Find someone who understands Window permissions. I did, but that was back in the Windows XP/Windows 7 days.

            – Dave W. Smith
            Nov 14 '18 at 5:06











          • its on a linux machine

            – Cayenne
            Nov 14 '18 at 5:09

















          • I tried, setting permissions doesn't work

            – Cayenne
            Nov 14 '18 at 4:39











          • Same error, or slightly different?

            – Dave W. Smith
            Nov 14 '18 at 4:47











          • same error that I had :(

            – Cayenne
            Nov 14 '18 at 5:01











          • Find someone who understands Window permissions. I did, but that was back in the Windows XP/Windows 7 days.

            – Dave W. Smith
            Nov 14 '18 at 5:06











          • its on a linux machine

            – Cayenne
            Nov 14 '18 at 5:09
















          I tried, setting permissions doesn't work

          – Cayenne
          Nov 14 '18 at 4:39





          I tried, setting permissions doesn't work

          – Cayenne
          Nov 14 '18 at 4:39













          Same error, or slightly different?

          – Dave W. Smith
          Nov 14 '18 at 4:47





          Same error, or slightly different?

          – Dave W. Smith
          Nov 14 '18 at 4:47













          same error that I had :(

          – Cayenne
          Nov 14 '18 at 5:01





          same error that I had :(

          – Cayenne
          Nov 14 '18 at 5:01













          Find someone who understands Window permissions. I did, but that was back in the Windows XP/Windows 7 days.

          – Dave W. Smith
          Nov 14 '18 at 5:06





          Find someone who understands Window permissions. I did, but that was back in the Windows XP/Windows 7 days.

          – Dave W. Smith
          Nov 14 '18 at 5:06













          its on a linux machine

          – Cayenne
          Nov 14 '18 at 5:09





          its on a linux machine

          – Cayenne
          Nov 14 '18 at 5:09

















          draft saved

          draft discarded
















































          Thanks for contributing an answer to Stack Overflow!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid


          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.

          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53282275%2fapache-showing-permission-denied-flask-session-error%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          Top Tejano songwriter Luis Silva dead of heart attack at 64

          政党

          天津地下鉄3号線