question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

No session secret provided, please set `secret` for apostrophe-express module

See original GitHub issue

Get this error when I try to set admin name and password. Initial site comes up but I’m unable to login as an admin. Full error:

WARNING: No session secret provided, please set the secret property of the session property of the apostrophe-express module in app.js That group does not exist.

I’m running Mac OSX Sierra, Node 3.10.9.

By the way, for those that do not have Homebrew installed on their mac, you also need to run this after installing mongodb: brew tap homebrew/services to get the mongo console to work.

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:21 (12 by maintainers)

github_iconTop GitHub Comments

1reaction
boutellcommented, Mar 14, 2018

Excuse me, session should be singular.

On Wed, Mar 14, 2018 at 9:12 AM, Marc Wensauer notifications@github.com wrote:

Ok is added it like this:

var path = require(‘path’);

var apos = require(‘apostrophe’)({ shortName: ‘first-project’,

// See lib/modules for basic project-level configuration of our modules
// responsible for serving static assets, managing page templates and
// configuring user acounts.

modules: {

    // Apostrophe module configuration

    // Note: most configuration occurs in the respective
    // modules' directories. See lib/apostrophe-assets/index.js for an example.

    // However any modules that are not present by default in Apostrophe must at
    // least have a minimal configuration here: `moduleName: {}`

    // If a template is not found somewhere else, serve it from the top-level
    // `views/` folder of the project

    'apostrophe-templates': { viewsFolderFallback: path.join(__dirname, 'views') },

    'apostrophe-pages': {
        types: [{
                name: 'default',
                label: 'Default'
            },
            {
                name: 'home',
                label: 'Home'
            },
        ]
    },

    'apostrophe-express': {
        sessions: {
            secret: 'please make up your own!'
        }
    }


}

});

but anyways , i still get that message :

WARNING: No session secret provided, please set the secret property of the session property of the apostrophe-express module in app.js I see no data/port file, port option, forcePort option, or PORT environment variable, defaulting to port 3000 I see no data/address file, address option, forceAddress option, or ADDRESS environment variable, listening on all interfaces Listening at http://localhost:3000

— You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub https://github.com/apostrophecms/apostrophe/issues/779#issuecomment-373015841, or mute the thread https://github.com/notifications/unsubscribe-auth/AAB9fcJPRhuPwZALcKDs4ULFwQ_JZdy2ks5teRdXgaJpZM4LOZe1 .

THOMAS BOUTELL, CHIEF SOFTWARE ARCHITECT P’UNK AVENUE | (215) 755-1330 | punkave.com

1reaction
boutellcommented, Dec 23, 2016

var apos = require(‘apostrophe’)({ shortName: ‘apostrophesandbox’, title: ‘Apostrophe Sandbox 2.0.0’, demo: true,

bundles: [‘apostrophe-blog’],

// These are the modules we want to bring into the project. modules: {

'apostrophe-templates': { viewsFolderFallback: __dirname + '/views' },
'apostrophe-express': {
  session: {
    secret: 'xyzpdq'
  }
},
Read more comments on GitHub >

github_iconTop Results From Across the Web

No session secret provided, please set `secret` for apostrophe ...
However running 'node app.js' throws this exception: WARNING: No session secret provided, please set `secret` for apostrophe-express module in app.js.
Read more >
Installing existing Apostrophe - ApostropheCMS Forum
`WARNING: No session secret provided, please set the secret property of the session property of the apostrophe- express module in app.js
Read more >
node.js - NodeJS - Error secret required - Stack Overflow
When configuring your express instance you need this: app.use(express.cookieParser('your secret option here')); app.use(express.session());.
Read more >
apostrophecms/express - Apostrophe 3 Documentation
This module initializes the Express framework, which Apostrophe uses and ... project. secret: 'you should have a secret', name: self.apos.
Read more >
Connect-mongo NPM | npm.io
connect-mongo. MongoDB session store for Connect and Express written in Typescript. ... But please note that we are not maintaining v3.x anymore.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found