Error: ENOENT, open 'logs/error.log'


  • Hi.

    I'm installing plugins to my new board and now it's all broken.
    Here's the part of forever log.

    error: [plugins/emailer-mandrill] API key not set!
    error: A Google Analytics ID (e.g. UA-XXXXX-X) was not specified. Please complete setup in the administration panel.
    error: ENOENT, open 'logs/error.log'
    Error: ENOENT, open 'logs/error.log'
    info: [app] Shutdown (SIGTERM/SIGINT) Initialised.
    info: [app] Database connection closed.
    info: [app] Shutdown complete.
    error: Forever detected script exited with code: 1
    error: Script restart attempt #1

    So it fails on writing to 'logs/error.log'?
    But where is it and how to check that it has necessary permissions?

  • Plugin & Theme Dev

    I guess it may fail because the directory 'logs' doesn't exits.
    try to create such a directory in your NodeBB root 😉


  • It is there.
    I even created error.log file there. )8

  • Admin

    I imagine you installed nodebb as root and then are trying to run it as a regular user?

Suggested Topics

| |