Code Monkey home page Code Monkey logo

Comments (12)

Heavybullets8 avatar Heavybullets8 commented on May 27, 2024

What version of the script are you using?

from heavy_script.

Yamon234 avatar Yamon234 commented on May 27, 2024

Latest version 2.1.3

from heavy_script.

Heavybullets8 avatar Heavybullets8 commented on May 27, 2024

What applications are having this issue? And what chart repo are they from?

from heavy_script.

Yamon234 avatar Yamon234 commented on May 27, 2024

It happened with the only 2 apps I had stopped. minecraft and photoprism. Both are from Truecharts

from heavy_script.

Heavybullets8 avatar Heavybullets8 commented on May 27, 2024

how were those applications stopped prior to the update?
With the stop-all button?
or
Stopped from pressing the STOP button in the GUI?

from heavy_script.

Yamon234 avatar Yamon234 commented on May 27, 2024

Via the stop button in the gui. Not the stop all one

from heavy_script.

Heavybullets8 avatar Heavybullets8 commented on May 27, 2024

I am not entirely sure why that would happen.
The script checks to see if the start status (the status the application was in prior to updating) was Stopped, if so, it sends it to post processing, where it then waits for the application to become Active (to ensure the update was successful, and a rollback is not required) , then it returns it back to the stopped status.

You did mention that you used the stop button in the GUI for truecharts applications though. Their devs recommend, and only support stopping their applications with the stop all button in their app config
image

You can provide logs, if this is something that you can replicate.

bash -x ~/heavy_script/heavy_script.sh COMMAND

I set up my testing server to also watch for this.

from heavy_script.

Yamon234 avatar Yamon234 commented on May 27, 2024

Thank you, this seems to happen about half the time it updates an app that isn't running. I can provide logs if that would help, just let me know what file you need. I ran the command you gave me but the output exceeded what is viewable in the Truenas scale gui.

I'm no programmer but I work with a few Software engineers, do you think it might help if you added a check at the very end to validate that the apps that we're told to stop actually entered a stopped state? (If that's possible)

from heavy_script.

Yamon234 avatar Yamon234 commented on May 27, 2024

I did some testing and stopped my normally stopped apps with the stop all button. The script reports that the app was stopped but it was active after the update. Screenshot_20230902_102220_Gmail.jpg

from heavy_script.

Heavybullets8 avatar Heavybullets8 commented on May 27, 2024

To help me pinpoint the issue, please execute the following command, adapted to match your usual usage:

bash -x /root/heavy_script/heavy_script.sh update > /path/to/outputfile.txt 2>&1

Once done, please share the outputfile.txt with me.

Regarding the validation of the app state post-update, the script already performs this check in some ways. I share your confusion on why the apps are behaving this way.

Additionally, to better understand any potential environmental factors, could you provide the specifications of your server? Specifically:

  • CPU Model and Speed
  • Total RAM
  • Storage type for your apps (e.g., HDD or SSD)
  • Any other pertinent information

I will also need to know the flags you are using, or what settings you have changed in the config file for your update function.

from heavy_script.

Heavybullets8 avatar Heavybullets8 commented on May 27, 2024

is this still an active issue you are facing?

from heavy_script.

Yamon234 avatar Yamon234 commented on May 27, 2024

Hey I'm sorry for the delayed reply, the last time or two the script has run I haven't seen this issue occur. I just ran it again and watched one of the apps go into an active state for a second and then be stopped.
Specs:
I5-10400
64Gb RAM
2Tb SSD mirror for the apps

Here is the script I have running:
bash /root/heavy_script/heavy_script.sh update --backup 14 --concurrent 10 --include-major --prune --rollback --sync --self-update
outputfile.txt

from heavy_script.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.