Issue when starting my pm2 using --watchUnable to create lock file when starting mongod via upstartIssue using Node.js / Express, Says it's not installedError while starting MongodbPermission issue when starting mongodb as serviceerror: Unit mongodb.service is masked when starting mongodbSamba SMB daemon not starting when using apt

Round up my number

Is it safe to drive from Prague to Salzburg during winter?

"Applicants for asylum must prove that they have fifteen family members in the Netherlands."

Can I make leading exclamation points be ignored in the terminal? (I type them by instinct due to ipython)

Is there any reason a person would voluntarily choose to have PMI?

Is it possible to stall a plane so badly that the nose refuses to go down due to lack of airspeed?

Why is dwarfism considered an advantage for jobs in space?

What should be done when the theory behind a PhD thesis turns out to be wrong?

Retracting Recommendation Letters

A novel (or maybe a whole series) where a weird disease infects men and machines

Can I weaken a coil spring consisting of spring steel?

Why do Russian names transliterated into English have unpronounceable 'k's before 'h's (e.g. 'Mikhail' instead of just 'Mihail')?

Prefix all commands in shell

Team members' and manager's behaviour is indifferent after I announce my intention to leave in 8 months

Is the use of ellipsis "..." dismissive or rude?

Professor Pun's Personal Project

Between while and do in shell script

50K, what to do with it?

Does using a less common opening make you a stronger player?

How to run " $('div').clone().appendTo('.wrapper'); " in LWC?

Ball hits curve of same curvature

Feeling of forcing oneself to do something

Is there a material or method to allow "swimmable" coins?

Template not provided using create-react-app



Issue when starting my pm2 using --watch


Unable to create lock file when starting mongod via upstartIssue using Node.js / Express, Says it's not installedError while starting MongodbPermission issue when starting mongodb as serviceerror: Unit mongodb.service is masked when starting mongodbSamba SMB daemon not starting when using apt






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty
margin-bottom:0;









0


















My pm2 project works fine when I run it using:



sudo pm2 start ecosystem.json --env production


But after adding --watch to this command, I get this error:



(node:4096) DeprecationWarning: `openSet()` is deprecated in mongoose >= 4.11.0, use `openUri()` instead, or set the `useMongoClient` option if using `connect()` or `createConnection()`. See http://mongoosejs.com/docs/4.x/docs/connections.html#use-mongo-client


And I'm not able to see my project in browser.



I tried some solutions:



  1. add useMongoClient: true to mongoose.connect.

  2. upgrade node to v.10.16.3

And I enabled watch using "watch": true, in my ecosystem.json.



But they didn't work. Any help will be greatly appreciated.










share|improve this question

































    0


















    My pm2 project works fine when I run it using:



    sudo pm2 start ecosystem.json --env production


    But after adding --watch to this command, I get this error:



    (node:4096) DeprecationWarning: `openSet()` is deprecated in mongoose >= 4.11.0, use `openUri()` instead, or set the `useMongoClient` option if using `connect()` or `createConnection()`. See http://mongoosejs.com/docs/4.x/docs/connections.html#use-mongo-client


    And I'm not able to see my project in browser.



    I tried some solutions:



    1. add useMongoClient: true to mongoose.connect.

    2. upgrade node to v.10.16.3

    And I enabled watch using "watch": true, in my ecosystem.json.



    But they didn't work. Any help will be greatly appreciated.










    share|improve this question





























      0













      0









      0








      My pm2 project works fine when I run it using:



      sudo pm2 start ecosystem.json --env production


      But after adding --watch to this command, I get this error:



      (node:4096) DeprecationWarning: `openSet()` is deprecated in mongoose >= 4.11.0, use `openUri()` instead, or set the `useMongoClient` option if using `connect()` or `createConnection()`. See http://mongoosejs.com/docs/4.x/docs/connections.html#use-mongo-client


      And I'm not able to see my project in browser.



      I tried some solutions:



      1. add useMongoClient: true to mongoose.connect.

      2. upgrade node to v.10.16.3

      And I enabled watch using "watch": true, in my ecosystem.json.



      But they didn't work. Any help will be greatly appreciated.










      share|improve this question
















      My pm2 project works fine when I run it using:



      sudo pm2 start ecosystem.json --env production


      But after adding --watch to this command, I get this error:



      (node:4096) DeprecationWarning: `openSet()` is deprecated in mongoose >= 4.11.0, use `openUri()` instead, or set the `useMongoClient` option if using `connect()` or `createConnection()`. See http://mongoosejs.com/docs/4.x/docs/connections.html#use-mongo-client


      And I'm not able to see my project in browser.



      I tried some solutions:



      1. add useMongoClient: true to mongoose.connect.

      2. upgrade node to v.10.16.3

      And I enabled watch using "watch": true, in my ecosystem.json.



      But they didn't work. Any help will be greatly appreciated.







      18.04 nodejs mongodb






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Sep 28 at 10:10









      user3140225

      2,7004 gold badges12 silver badges24 bronze badges




      2,7004 gold badges12 silver badges24 bronze badges










      asked Sep 28 at 7:50









      bahman parsamaneshbahman parsamanesh

      1012 bronze badges




      1012 bronze badges























          0






          active

          oldest

          votes













          Your Answer








          StackExchange.ready(function()
          var channelOptions =
          tags: "".split(" "),
          id: "89"
          ;
          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/4.0/"u003ecc by-sa 4.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%2faskubuntu.com%2fquestions%2f1177230%2fissue-when-starting-my-pm2-using-watch%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown


























          0






          active

          oldest

          votes








          0






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes
















          draft saved

          draft discarded















































          Thanks for contributing an answer to Ask Ubuntu!


          • 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%2faskubuntu.com%2fquestions%2f1177230%2fissue-when-starting-my-pm2-using-watch%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

          Tamil (spriik) Luke uk diar | Nawigatjuun

          Align equal signs while including text over equalitiesAMS align: left aligned text/math plus multicolumn alignmentMultiple alignmentsAligning equations in multiple placesNumbering and aligning an equation with multiple columnsHow to align one equation with another multline equationUsing \ in environments inside the begintabularxNumber equations and preserving alignment of equal signsHow can I align equations to the left and to the right?Double equation alignment problem within align enviromentAligned within align: Why are they right-aligned?

          Where does the image of a data connector as a sharp metal spike originate from?Where does the concept of infected people turning into zombies only after death originate from?Where does the motif of a reanimated human head originate?Where did the notion that Dragons could speak originate?Where does the archetypal image of the 'Grey' alien come from?Where did the suffix '-Man' originate?Where does the notion of being injured or killed by an illusion originate?Where did the term “sophont” originate?Where does the trope of magic spells being driven by advanced technology originate from?Where did the term “the living impaired” originate?