The Journey of #100DaysOfCode (@JasonNutt14)

#100DaysOfCode D-21
Just don’t have to much left in the tank tonight. But one hour is not that long to ask of myself. I did some brainstorming & white boarded out some project visions I’m contemplating & trying to break down into small digestible steps. And messed @ inside the shell to try and gain some better understanding of the possibilities for future ideas & projects I may work on. No mas tonight, tomorrow should be a more productive day with more rested brain. Good evening!

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

4 Likes

#100DaysOfCode D-22
Today as I am going back through the Jumpstart series with Jesse Hall in order to remember just how we made our E-store, because that is the exact model I used to try and start my Character Creator/ Selector. I had forgotten that we even used Realm and today was so exciting to me to go back through and see how powerful Realm & serverless functions can be & I am excited to try and discover different ways that they can be utilized. I just recorded me going back through the project and investigating what I had actually written in order to get the Characters from my Atlas cluster and just kind of re-establishing a firm grasp on what exactly it was that went into this functionality. This is big for me to really be taking this time to go back through & see some of the knowledge gaps and things I missed the first & second time I went through building out this thing. So, I’m adding a few more Characters either tonight or tomorrow, talked to my brother about possibly providing me with some better Illustrations for the character images and then I am going to start thinking about how I would implement a feature that could get a blank character template and allow the user to choose the name and fill out the other info as they chose and have a bunch of choices for their character’s appearance with a collection full of images or something like that. It is in the ideas phase. But re-iterating through this project is very fun and is teaching me things I missed last time.

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

4 Likes

#100DaysOfCode D-23 I was so happy that I finally got my character document written out correctly and sent to the app from the shell I did a little dance & played with some old Gsap animation projects afterwards and revisited my favorite javascript animation library so far. I’ll keep y’all updated. My GSAP3 animations

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

3 Likes

#100DaysOfCode D-24
The last time I was going to start this course I ran into this problem and I just want to understand how to get started and what concept I am not understanding in order to proceed…here is what I thought I needed to do and the result. Going to watch a lecture in the upcoming courses and keep pushing into learning other aspects of MongoDB. Config file and mongod still kind of my nemesis but I am not turning back. Once the barrier is broken I am sure their is treasures galore on the other side. #LearingToGrowThruPain and communication…
Here is what I tried, among many other things
https://twitter.com/JasonNutt14/status/1503530177149784070?ref_src=twsrc^tfw|twcamp^tweetembed|twterm^1503530177149784070|twgr^|twcon^s1_c10&ref_url=https%3A%2F%2Fpublish.twitter.com%2F%3Fquery%3Dhttps3A2F2Ftwitter.com2FJasonNutt142Fstatus2F1503530177149784070widget%3DTweet

3 Likes

#100DaysOfCode D-25 So, since I was having a bit of trouble with the config lab, I went ahead and started learning more about authentication & authorization in M150. I am currently 44 % of the way through the course & I think I even learned a thing or two. We shall see how they translate into actual ability to build anything but at any rate, I do enjoy it when I am able to pass the labs and make progress. Here is to putting in the work. God bless y’all. Tired as heck, turning it in for the night.
https://twitter.com/JasonNutt14/status/1503910175287173122?ref_src=twsrc^tfw|twcamp^tweetembed|twterm^1503910175287173122|twgr^|twcon^s1_c10&ref_url=https%3A%2F%2Fpublish.twitter.com%2F%3Fquery%3Dhttps3A2F2Ftwitter.com2FJasonNutt142Fstatus2F1503910175287173122widget%3DTweet

2 Likes

:tada: Excellent coding streak @Jason_Nutt You’ve just earned the Committed Coder badge (which you can also use as a title in the forum):

Committed Coder

Participate in #100DaysOfCode challenge and share your daily learnings for 25 consecutive days.

Regards,
Stennie

3 Likes

#100DaysOfCode D-26 My mflix app is all setup for the course. This took way more effort than expected but it was soooo rewarding to get the .env file setup up & the project configured correctly and FINALLY pass the unit tests that gave the validation… : so on into this course. I believe it is the course I have dreamed of getting to. M220 MongoDB for Javascript developers yay and amen hallelujah! Struggles to come but I am very motivated and inspired by this. Let’s see what we learn and become able to create with this course!

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

2 Likes

#100DaysOfCode D-27 Long day and I tried fro as long as I could to focus on this but it was not sticking or making sense after to long straining my brain today. Maybe rest is in order. One day at a time…

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

2 Likes

#100DaysOfCode D-28 Today I watched a couple of my old curriculum courses from Treehouse on javascript async/await and promises & callbacks to get ready for tomorrow, tackling m220 …

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

2 Likes

#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

2 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