The Journey of #100DaysOfCode (@JasonNutt14)

#100DaysOfCode D-29 Today I sat at tires plus as I listened to some teachings on Anti-patterns and schema design, went through a couple linkedIn learning Javascript essentials videos and quizes, then I came home and worked on formatting my function CreateCharacter() for my Character Creator! So close to being able to have the user be able to add a new character with a new UI for the app too! It’s just a fun thing I am doing whilst still struggling to figure out what the first complex task in m220 is wanting me to do exactly. Anyways wanted to post between daddy chores and work tonight. God bless Y’all.
https://twitter.com/JasonNutt14/status/1505271052422766599?ref_src=twsrc^tfw|twcamp^tweetembed|twterm^1505271052422766599|twgr^|twcon^s1_c10&ref_url=https%3A%2F%2Fpublish.twitter.com%2F%3Fquery%3Dhttps3A2F2Ftwitter.com2FJasonNutt142Fstatus2F1505271052422766599widget%3DTweet

2 Likes

#100DaysOfCode D-30
I am glad to be getting practice on spinning up applications for little things like a friend’s birthday, just to get better and more familiar with the tools I am trying to master…one day at a time.
https://twitter.com/JasonNutt14/status/1505729125545390091?ref_src=twsrc^tfw|twcamp^tweetembed|twterm^1505729125545390091|twgr^|twcon^s1_c10&ref_url=https%3A%2F%2Fpublish.twitter.com%2F%3Fquery%3Dhttps3A2F2Ftwitter.com2FJasonNutt142Fstatus2F1505729125545390091widget%3DTweet

2 Likes

#100DaysOfCode D-31 I am having trouble figuring out where I am going wrong with this lab, Chapter 1: The Mongod

Lab: Logging to a Different Facility

I have changed the config file to

storage:
  dbPath: /var/mongodb/logs/mongod.log
net:
  bindIp: localhost
  port: 27000
security:
  authorization: enabled
processManagement:
   fork: true

Then I ran the command

mongod --fork --logpath /var/mongodb/logs/mongod.log

I am getting the error

about to fork child process, waiting until server is ready for connections.
forked process: 362
ERROR: child process failed, exited with error number 100
To see additional information in this output, start without the "--fork" option.

https://twitter.com/JasonNutt14/status/1506072168001585161?ref_src=twsrc^tfw|twcamp^tweetembed|twterm^1506072168001585161|twgr^|twcon^s1_c10&ref_url=https%3A%2F%2Fpublish.twitter.com%2F%3Fquery%3Dhttps3A2F2Ftwitter.com2FJasonNutt142Fstatus2F1506072168001585161widget%3DTweet

2 Likes

Your dbpath is not correct
It is pointing to logpath
If your intention is to run mongod with config file why it is being started with command line
When you run mongod without dbpath it looks for default dir /data/db
Most likely error 100 is due to this missing dirpath

3 Likes

Hi @Jason_Nutt,

For MongoDB University course-related questions I recommend posting directly in the relevant MongoDB University course-specific forum for more expedient guidance :slight_smile:

Your command line doesn’t specify a config file to use, so this invocation only uses the options you have specified (--fork and --logpath).

If you use cat or less (or your favourite text editor) to view the contents of the log file you specified, the MongoDB log should include more informative reasons on why mongod failed to start:

cat /var/mongodb/logs/mongod.log

Assuming you are using MongoDB 4.4+, the log entries will be in JSON format so you may want to install something like jq (see: Download jq) to make entries easier to read. The MongoDB server manual also includes some examples of log filtering and printing with jq: Log Parsing Examples.

Then you could run:

cat /var/mongodb/logs/mongod.log | jq

I suspect you will find a complaint similar to the following about dbPath not found, because dbPath defaults to /data/db and you have not specified --config with a path to a config file:

{
  "t": {
    "$date": "2022-03-22T16:46:52.166+11:00"
  },
  "s": "E",
  "c": "CONTROL",
  "id": 20557,
  "ctx": "initandlisten",
  "msg": "DBException in initAndListen, terminating",
  "attr": {
    "error": "NonExistentPath: Data directory /data/db not found. Create the missing directory or specify another path using (1) the --dbpath command line option, or (2) by adding the 'storage.dbPath' option in the configuration file."
  }
}

It also looks like you have used the intended value for a log file as your dbPath.

Your config file should look more like the following (assuming the systemLog.path and storage.dbPath directories have been created):

mongod.conf
systemLog:
   destination: file
   path: /var/mongodb/logs/mongod.log
   logAppend: true
storage:
  dbPath: /var/mongodb/data/
net:
  bindIp: localhost
  port: 27000
security:
  authorization: enabled
processManagement:
   fork: true

You would then start mongod manually with a --config value specifying the path to your config file:

   mongodb --config /path/to/mongodb.conf

Note: For persistent deployments MongoDB is typically started using a service definition which includes a default path to a configuration file so you would just start & stop the service rather than adding the config file path or command line options on every invocation.

For an example, see Run MongoDB Community Edition on Ubuntu.

Regards,
Stennie

3 Likes

Thank you so much! @Stennie_X This helps a lot. I will try and post my questions about labs and other course related issues in their course-specific forums.

3 Likes

#100DaysOfCode D-32 fell asleep before I got a chance to post…at the computer, so I was coding for the day lol.

https://twitter.com/JasonNutt14/status/1506686682589974529?ref_src=twsrc^tfw|twcamp^tweetembed|twterm^1506686682589974529|twgr^|twcon^s1_c10&ref_url=https%3A%2F%2Fpublish.twitter.com%2F%3Fquery%3Dhttps3A2F2Ftwitter.com2FJasonNutt142Fstatus2F1506686682589974529widget%3DTweet

2 Likes

#100DaysOfCode D-33 Today I got some more practice with gsap and finished my friend’s birthday card finally. That is all the time I had. I kind of love it.

https://twitter.com/JasonNutt14/status/1506813618419032072?ref_src=twsrc^tfw|twcamp^tweetembed|twterm^1506813618419032072|twgr^|twcon^s1_c10&ref_url=https%3A%2F%2Fpublish.twitter.com%2F%3Fquery%3Dhttps3A2F2Ftwitter.com2FJasonNutt142Fstatus2F1506813618419032072widget%3DTweet

3 Likes

#100DaysOfCode D-34 Just did some light work on a couple projects I have been working on tonight. Some gsap timeline work & scrollTrigger project that I have been working on.
https://twitter.com/JasonNutt14/status/1507137883727138823?ref_src=twsrc^tfw|twcamp^tweetembed|twterm^1507137883727138823|twgr^|twcon^s1_c10&ref_url=https%3A%2F%2Fpublish.twitter.com%2F%3Fquery%3Dhttps3A2F2Ftwitter.com2FJasonNutt142Fstatus2F1507137883727138823widget%3DTweet

2 Likes

#100DaysOfCode D-35 More growth in understanding of serverless functions, atlas search & satisfying progress on my favorite little app. Saturday here we come!!

https://twitter.com/JasonNutt14/status/1507539460086546435?ref_src=twsrc^tfw|twcamp^tweetembed|twterm^1507539460086546435|twgr^|twcon^s1_c10&ref_url=https%3A%2F%2Fpublish.twitter.com%2F%3Fquery%3Dhttps3A2F2Ftwitter.com2FJasonNutt142Fstatus2F1507539460086546435widget%3DTweet

2 Likes

#100DaysOfCode D-36 Made more progress with M150: Authentication & Authorization
Learning to enable authentication quickly and securely, in order to protect my data from the threat of attack.
https://twitter.com/JasonNutt14/status/1507907690655268870?ref_src=twsrc^tfw|twcamp^tweetembed|twterm^1507907690655268870|twgr^|twcon^s1_c10&ref_url=https%3A%2F%2Fpublish.twitter.com%2F%3Fquery%3Dhttps3A2F2Ftwitter.com2FJasonNutt142Fstatus2F1507907690655268870widget%3DTweet

2 Likes

#100DaysOfCode D-37 So, today I decided that, because I claim to be a javascript developer and build things with React & Next.js ( both javascript frameworks & libraries ) then I better freshen up a bit with my vanilla javascript. I watched hours of Beau Carnes today, while I worked on my Character Creator app. Took a few quizes and was surprised at what I was able to remember although I did feel kinda rusty with some basics. However, upon doing this I was going through the Math.random() portion of the lectures and lo and behold, I thought, didn’t I build a dice roller that I could very easily link up to my app I’m trying to flesh-out and have it as a placeholder for whatever I am able to make it into. This app is like a new born baby needing all of my love and attention lol. I do so enjoy whenever I get a breakthrough or idea and/or learn a new concept that might get me closer to having a complete work of art and functionality someday in the future…and heck, it could even show some employer that I have a passion for creating, building and figuring things out to solve problems. That’ll do for this week. God bless you, everyone!

https://twitter.com/JasonNutt14/status/1508217523422089229?ref_src=twsrc^tfw|twcamp^tweetembed|twterm^1508217523422089229|twgr^|twcon^s1_c10&ref_url=https%3A%2F%2Fpublish.twitter.com%2F%3Fquery%3Dhttps3A2F2Ftwitter.com2FJasonNutt142Fstatus2F1508217523422089229widget%3DTweet

2 Likes

#100DaysOfCode D-38 Made some image additions to hold the place for my Brother’s that he is working on (Thanks Bri) Pretty amazing how easily vercel does what they do when I want to get a project from VSCode to github to deployment. I am always impressed.

https://twitter.com/JasonNutt14/status/1508628442589409283?ref_src=twsrc^tfw|twcamp^tweetembed|twterm^1508628442589409283|twgr^|twcon^s1_c10&ref_url=https%3A%2F%2Fpublish.twitter.com%2F%3Fquery%3Dhttps3A2F2Ftwitter.com2FJasonNutt142Fstatus2F1508628442589409283widget%3DTweet

2 Likes

#100DaysOfCode D-39
Fell asleep at the computer trying to refactor Character Creator for smart search re-iterating through the tutorial that was the inspiration for it’s build.(Jumpstart series 2021 w/ @Jesse_Hall )… The portion I have been struggling to make work but I believe it’s somewhere in a semi-colon or something…“MongoDB Atlas Search to Easily Find Your Data | Search & Autocomplete Implementation” is the portion of series that I have been re-watching… smart search is the feature I am working on.
https://twitter.com/JasonNutt14/status/1509133400405385221?ref_src=twsrc^tfw|twcamp^tweetembed|twterm^1509133400405385221|twgr^|twcon^s1_c10&ref_url=https%3A%2F%2Fpublish.twitter.com%2F%3Fquery%3Dhttps3A2F2Ftwitter.com2FJasonNutt142Fstatus2F1509133400405385221widget%3DTweet

3 Likes

#100DaysOfCode D-40

Today I made several changes to my Character app, a slow work in progress, still waiting for some original artwork from Brian. Added a link to some random encounter ideas, worked on the dice roller layout, it still sucks lol. I also learned a bit about how a datalake works but need more clarity and re-iteration.
Here is a short film of the progress of this project and if compared to the day 1 video, it can really see some progress. Which was the whole purpose of recording that silly video on the first day of this challenge after all. Cheers and blessings to all and to all a good night. - YouTube

https://twitter.com/JasonNutt14/status/1509333403249819655?ref_src=twsrc^tfw|twcamp^tweetembed|twterm^1509333403249819655|twgr^|twcon^s1_c10&ref_url=https%3A%2F%2Fpublish.twitter.com%2F%3Fquery%3Dhttps3A2F2Ftwitter.com2FJasonNutt142Fstatus2F1509333403249819655widget%3DTweet

2 Likes

#100DaysOfCode D-41
Captain’s Log: A productive yet frustrating night. :rocket: :milky_way:

  • Added a character

  • Added lots of great images for additional Characters

  • Worked on Search Function/ having trouble but working through it

  • Having LOADS of ideas as I re-iterate through the code of this project

  • Becoming intimate with the inner workings of my project

  • BTW it is a simple Next.js frontend styled with tailwindcss .

https://twitter.com/JasonNutt14/status/1509696216271101958?ref_src=twsrc^tfw|twcamp^tweetembed|twterm^1509696216271101958|twgr^|twcon^s1_c10&ref_url=https%3A%2F%2Fpublish.twitter.com%2F%3Fquery%3Dhttps3A2F2Ftwitter.com2FJasonNutt142Fstatus2F1509696216271101958widget%3DTweet

2 Likes

#100DaysOfCode D-42 Hallelujah! My brother Brian has sent me some character art for this project. Super proud of it too! He is awesome! It took hours to get these all cut out properly and brought into the project through inserting the images into my Atlas cluster and then I changed the character attributes also in order to better portray what the application is intending to do eventually. You’ll be able to pick three characters (and/or make as you wish), and then put them into an adventuring party inside a little cart like thingy. I don’t know exactly where this is going but it is going somewhere and I am learning by building too!.

https://twitter.com/JasonNutt14/status/1510088096062263303?ref_src=twsrc^tfw|twcamp^tweetembed|twterm^1510088096062263303|twgr^|twcon^s1_c10&ref_url=https%3A%2F%2Fpublish.twitter.com%2F%3Fquery%3Dhttps3A2F2Ftwitter.com2FJasonNutt142Fstatus2F1510088096062263303widget%3DTweet

2 Likes

#100DaysOfCode D-43
I made a vid of me working on the project too.
Youtube Video
https://twitter.com/JasonNutt14/status/1510281897418575874?ref_src=twsrc^tfw|twcamp^tweetembed|twterm^1510281897418575874|twgr^|twcon^s1_c10&ref_url=https%3A%2F%2Fpublish.twitter.com%2F%3Fquery%3Dhttps3A2F2Ftwitter.com2FJasonNutt142Fstatus2F1510281897418575874widget%3DTweet

2 Likes

#100DaysOfCode D-44 YES! I got search by Character Class working…although I am having trouble getting it to work after it searches once so that is what I’ll be doing for the next day or so. But super happy that I can type the class of the character I am looking for and the app knows what I’m looking for and pulls up the character. Awesome! Next step, let’s put these characters in a party…or should it be the dice integration and/or styling…I don’t know but i am loving the opportunity to grow and work on something I like.

Ongoing Character app in build process.

https://twitter.com/JasonNutt14/status/1510798100453109760?ref_src=twsrc^tfw|twcamp^tweetembed|twterm^1510798100453109760|twgr^hb_2_8|twcon^s1_c10&ref_url=https%3A%2F%2Fpublish.twitter.com%2F%3Fquery%3Dhttps3A2F2Ftwitter.com2FJasonNutt142Fstatus2F1510798100453109760widget%3DTweet

2 Likes

#100DaysOfCode D-45 Very excited to keep working on this while debugging and learning more about Atlas features. I made a bunch of changes to the dice roller today too.

https://twitter.com/JasonNutt14/status/1511150483234250752?ref_src=twsrc^tfw|twcamp^tweetembed|twterm^1511150483234250752|twgr^|twcon^s1_c10&ref_url=https%3A%2F%2Fpublish.twitter.com%2F%3Fquery%3Dhttps3A2F2Ftwitter.com2FJasonNutt142Fstatus2F1511150483234250752widget%3DTweet

2 Likes