Comments (12)
What version of the script are you using?
from heavy_script.
Latest version 2.1.3
from heavy_script.
What applications are having this issue? And what chart repo are they from?
from heavy_script.
It happened with the only 2 apps I had stopped. minecraft and photoprism. Both are from Truecharts
from heavy_script.
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.
Via the stop button in the gui. Not the stop all one
from heavy_script.
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
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.
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.
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.
from heavy_script.
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.
is this still an active issue you are facing?
from heavy_script.
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)
- An image used by a Scale app keeps being pruned HOT 7
- Disabeling Helm not working
- HeavyScript does not know how many replicas this app has HOT 9
- Retry failed updates HOT 3
- Failure to update stopped app HOT 5
- [Feature] Restart dependant containers on update HOT 1
- Suggestion for PVC storage and backup
- Setting velero namespace failed HOT 3
- [Feature] way of updating only 1 (or more) app - opposite of --ignore HOT 1
- disable-api doesnt work HOT 2
- Suggestion: output mode brief for updates
- Pull new container images HOT 2
- Failed during restore, it deletes current catalog dataset without create a new one HOT 1
- After upgrade to TrueNas SCALE dragonfish, Warning/Error on nightly upgrade script about symlink
- error: the server doesn't have a resource type "cluster" HOT 1
- Snapshot date formatter causes replication task to fail HOT 1
- Implement custom PVC backup/restore solution for unsupported storage classes in Dragonfish
- Implement Custom PVC Rollback Solution for Failed Updates in Unsupported Storage Classes
- Address Developer Mode Requirement for "Enable" Functions in TrueNAS SCALE Scripts
- Implement a way to purge any PV/PVCs marked as Released
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from heavy_script.