• Home
  • Categories
  • Recent
  • Popular
  • Top
  • Tags
  • Users
  • Groups
  • Documentation
    • Home
    • Read API
    • Write API
    • Plugin Development
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
v3.5.2 Latest
Buy Hosting

Can't start using ./node start but working with node app.js

Scheduled Pinned Locked Moved Technical Support
10 Posts 4 Posters 4.4k Views
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • C Offline
    C Offline
    citizen
    wrote on last edited by
    #1

    Hello Everyone,

    I have a weird issue, i can't start my nodebb with the command ./nodebb start but its working just fine with node app.js

    It seems that when i use the ./nodebb start command there is an issue with my config.json, like it can't access the file.

    Because in my output.log i have this :

    url.js:107
    throw new TypeError("Parameter 'url' must be a string, not " + typeof url)

    Its also working with ./nodebb dev

    But i noticed something weird : info: NodeBB is now listening on: 0.0.0.0:4567

    However my conf seems ok. (i tried running ./nodebb setup)

    What am i missing? 😢

    1 Reply Last reply
    0
  • A Offline
    A Offline
    a_5mith
    wrote on last edited by
    #2

    Paste the contents of your config.json file, remove any private info like secret keys etc.

    1 Reply Last reply
    0
  • C Offline
    C Offline
    citizen
    wrote on last edited by
    #3

    Here it is :

    config.json :

    {
    "url": "http://mydomain:4567",
    "secret": "mykey",
    "database": "redis",
    "redis": {
    "host": "127.0.0.1",
    "port": "5555",
    "password": "",
    "database": "0"
    }
    }

    1 Reply Last reply
    0
  • A Offline
    A Offline
    a_5mith
    wrote on last edited by
    #4

    Remove :4567 from the URL.

    1 Reply Last reply
    0
  • C Offline
    C Offline
    citizen
    wrote on last edited by
    #5

    Done,

    Nothing has changed 😞

    i don't understand, i tried editing the config.json to remove the port.

    No change, i rerun the setup > it confirm that the port is correctly removed because the defaut option is http://mydomain.fr for the url

    but when i start nodebb with ./nodebb dev i still see :

    0.0.0.0:4567 (is this normal?)

    1 Reply Last reply
    0
  • KowlinK Offline
    KowlinK Offline
    Robert Translator
    wrote on last edited by
    #6

    Yep 0.0.0.0 is a normal thing.

    1 Reply Last reply
    0
  • C Offline
    C Offline
    citizen
    wrote on last edited by
    #7

    Ok..

    I dont get it then..

    Here my output.log 👍

    16/8 03:55 [32624] - info: NodeBB Ready
    16/8 03:55 [32624] - info: NodeBB is now listening on: 0.0.0.0:4567
    Clustering enabled: Spinning up 1 process(es).

    16/8 04:01 [32624] - info: [app] Shutdown (SIGTERM/SIGINT) Initialised.
    16/8 04:01 [32624] - info: [app] Database connection closed.
    16/8 04:01 [32624] - info: [app] Web server closed to connections.
    16/8 04:01 [32624] - info: [app] Shutdown complete.
    [cluster] Child Process (32624) has exited (code: 0, signal: null)

    url.js:107
    throw new TypeError("Parameter 'url' must be a string, not " + typeof url)
    ^
    TypeError: Parameter 'url' must be a string, not undefined
    at Url.parse (url.js:107:11)
    at Object.urlParse [as parse] (url.js:101:5)
    at start (/home/web/nodebb/nodebb/app.js:118:22)
    at Object.<anonymous> (/home/web/nodebb/nodebb/app.js:67:2)
    at Module._compile (module.js:456:26)
    at Object.Module._extensions..js (module.js:474:10)
    at Module.load (module.js:356:32)
    at Function.Module._load (module.js:312:12)
    at Function.Module.runMain (module.js:497:10)
    at startup (node.js:119:16)
    [cluster] Child Process (724) has exited (code: 8, signal: null)
    [cluster] Spinning up another process...

    1 Reply Last reply
    0
  • C Offline
    C Offline
    citizen
    wrote on last edited by
    #8

    hello again,

    Made a clean install, everything is up and running.

    But if anyone has a clue why i had this problem, please post here 🙂

    Thanks @a_5mith and @Kowlin for helping.

    1 Reply Last reply
    0
  • julianJ Offline
    julianJ Offline
    julian GNU/Linux
    wrote on last edited by
    #9

    Is there a stack trace with that error?

    1 Reply Last reply
    0
  • C Offline
    C Offline
    citizen
    wrote on last edited by
    #10

    Nope i deleted the corrupted install, the only thing i have is the content of my output.log which i posted earlier.

    There was this error :

    TypeError: Parameter 'url' must be a string, not undefined

    this error was repeating itself 3 or 4 times then the server crashed.

    1 Reply Last reply
    0

Copyright © 2023 NodeBB | Contributors
  • Login

  • Don't have an account? Register

  • Login or register to search.
Powered by NodeBB Contributors
  • First post
    Last post
0
  • Home
  • Categories
  • Recent
  • Popular
  • Top
  • Tags
  • Users
  • Groups
  • Documentation
    • Home
    • Read API
    • Write API
    • Plugin Development