# Thoughts about the "install/upgrade" operations

**URL:** <https://discourse.nodered.org/t/thoughts-about-the-install-upgrade-operations/3318>\
**Category:** Feature Requests\
**Created:** [21 September 2018 06:23 UTC](https://discourse.nodered.org/t/thoughts-about-the-install-upgrade-operations/3318 "2018-09-21T06:23:39Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Trying\_to\_learn](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/trying_to_learn/32/28400_2.png) [@Trying\_to\_learn](https://discourse.nodered.org/u/Trying_to_learn)\
**Post date:** [21 September 2018 06:23 UTC](https://discourse.nodered.org/t/thoughts-about-the-install-upgrade-operations/3318/1 "2018-09-21T06:23:40Z")

</div>

Yeah, I know.....

In light of recent events, and the message:

```auto
Any errors will be logged to /var/log/nodered-install.log

```

Alas that gets a bit BIG when looking for an error, or why it didn't update.

Suggestion:  
(And I shall state I don't know the workings of the directories and why they are used.)  
But if /var/log is a directory where logs are stored,

Looking in that directory, there are a lot of files AND directories.

Why not make a Node-Red directory and every time the update/upgrade is done, it makes a new file for that date?

Or, if these updates/upgrades (what ever) etc can happen at any time:  
Simply break the log file into 24 hour frames. Each day, new log.

That way if someone's machine spits the dummy, but had been working for weeks, they just need to look at that day's log file.

Just a thought.

---

<div class="post-metadata">

**Author:** ![dceejay](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dceejay/32/38_2.png) [@dceejay](https://discourse.nodered.org/u/dceejay)\
**Post date:** [21 September 2018 08:01 UTC](https://discourse.nodered.org/t/thoughts-about-the-install-upgrade-operations/3318/2 "2018-09-21T08:01:01Z")

</div>

If you care to look at the log you will see that it has lines like

```
Finished : Thu 6 Sep 15:56:19 UTC 2018

***************************************

Started : Wed 19 Sep 12:03:55 UTC 2018

```

So I think each run is fairly well separated / indicated.  
The log file itself is rotated/cleaned up by the default linux logrotate daemon.

---

<div class="post-metadata">

**Author:** ![ghayne](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/ghayne/32/39_2.png) [@ghayne](https://discourse.nodered.org/u/ghayne)\
**Post date:** [21 September 2018 08:32 UTC](https://discourse.nodered.org/t/thoughts-about-the-install-upgrade-operations/3318/3 "2018-09-21T08:32:00Z")

</div>

> [@Trying\_to\_learn](#):
>
> Why not make a Node-Red directory and every time the update/upgrade is done, it makes a new file for that date?

That is a very inefficient way of logging. The beauty of Linux is that everything has its place in the file system, all the logs go in /var/log/. If you need to look for something specific in a log file use grep:

cat /var/log/nodered-install.log | grep "what\_I\_am\_looking\_for"

 ![Screenshot_2018-09-21_09-37-15](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/2X/c/c2146dec55d3e1b43009cc05f9cbe311e759d093.png)

---

<div class="post-metadata">

**Author:** ![Trying\_to\_learn](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/trying_to_learn/32/28400_2.png) [@Trying\_to\_learn](https://discourse.nodered.org/u/Trying_to_learn)\
**Post date:** [21 September 2018 09:14 UTC](https://discourse.nodered.org/t/thoughts-about-the-install-upgrade-operations/3318/4 "2018-09-21T09:14:02Z")

</div>

Ghayne,

I wasn't meaning to put the logs in a different log directory, but add a node-red directory in the log directory.

Looking at the log from my RPI today when it died: the file was BIG.  
I only thought that the log file being broken to daily (or maybe even weekly) sizes would make error tracing for people easier and if they have to upload the relevant section, it would be less cutting and pasting.

But ok. I accept what you say.

---

<div class="post-metadata">

**Author:** ![Trying\_to\_learn](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/trying_to_learn/32/28400_2.png) [@Trying\_to\_learn](https://discourse.nodered.org/u/Trying_to_learn)\
**Post date:** [21 September 2018 09:15 UTC](https://discourse.nodered.org/t/thoughts-about-the-install-upgrade-operations/3318/5 "2018-09-21T09:15:22Z")

</div>

DCJ,

Again, I stand corrected.

Just as I mentioned the log seemed very big. But if there are systems to clean/maintain the size: all well and good.

And I am sure if you looked at the log file I posted about the dead RPI after update:  
I did search for that line and cut/pasted only the needed part.
