Giter VIP home page Giter VIP logo

Comments (22)

papampi avatar papampi commented on July 19, 2024 1

@Draco-Falcon
Are you sure tempcontrol and watchdog are starting in guake?
There is no command to start them in guake.
When local is set, they start in screen and a tail will show the output in guake.

from nvoc_by_fullzero_community_release.

LuKePicci avatar LuKePicci commented on July 19, 2024

Interesting, have you replaced also 2unix file with the export NVOC=... line at the beginning?

Check that you have exactly bash /home/m1/2unix as alternative shell command in gnome-terminal "mining" profile setting.

Also try echoing the output from command in 2unix at line 3 from an arbitrary bash script. I need to understand exactly which script does not see NVOC variable exported.

Are you running in LOCAL or REMOTE mode?

from nvoc_by_fullzero_community_release.

Draco-Falcon avatar Draco-Falcon commented on July 19, 2024

Yes...the beginning of my 2unix has this:
#!/bin/bash

export NVOC="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"

firstBOOT="NO"

if grep -q "convert" ${NVOC}/firstBOOT;

Where do I find that alternative shell command in gnome-terminal? Directory? File?

I am running LOCAL

Jim

from nvoc_by_fullzero_community_release.

Draco-Falcon avatar Draco-Falcon commented on July 19, 2024

I found the mining profile in the GUI (couldn't find it using SSH).

Anyway, it has this:

bash '/home/m1/2unix'

The only difference I see is that mine has the ' mark

That is the default and I didn't change that.

Jim

from nvoc_by_fullzero_community_release.

Draco-Falcon avatar Draco-Falcon commented on July 19, 2024

The 3main was executing over and over with not found errors

from nvoc_by_fullzero_community_release.

LuKePicci avatar LuKePicci commented on July 19, 2024

Probably an issue with the LOCAL mode, I'll take a look

from nvoc_by_fullzero_community_release.

LuKePicci avatar LuKePicci commented on July 19, 2024

Ok, I just realized 5watchdog and 6tempcontrol runs in guake instead of screen when in LOCAL mode, and for that reason, as like as 7telegram and 8wtm_* scripts, in that case thay do not inherit NVOC export from 2unix. Please could you confirm adding that export NVOC=... line to those two scripts and removing that variable from /etc/environment fix this issue?

edit: wrong, as said below, guake only runs a tail command on screen logs for 5watchdog and 6tempcontrol

from nvoc_by_fullzero_community_release.

Draco-Falcon avatar Draco-Falcon commented on July 19, 2024

I adjusted those two files and then removed the environment variable. Now I get "bash /3main: no such file or directory" in the terminal window

from nvoc_by_fullzero_community_release.

LuKePicci avatar LuKePicci commented on July 19, 2024

I cannot see any correlation between 5watchdog/6tempcontrol and 2unix. Please replace 2unix with this debug script and see what happens

#!/bin/bash
echo "$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"

from nvoc_by_fullzero_community_release.

Draco-Falcon avatar Draco-Falcon commented on July 19, 2024

I added the export NVOC= ... to the upPASTE (which I am using cause I am the author of the webui) and now it is working.

from nvoc_by_fullzero_community_release.

Draco-Falcon avatar Draco-Falcon commented on July 19, 2024

Wouldn't the environment variable I had set be easier than having these export lines all over the place?

from nvoc_by_fullzero_community_release.

Draco-Falcon avatar Draco-Falcon commented on July 19, 2024

The upPASTE also runs in a guake window

from nvoc_by_fullzero_community_release.

LuKePicci avatar LuKePicci commented on July 19, 2024

There should be a single export in 2unix in my original intention. The problem is guake, that is not inheriting 2unix initial environment. I see salfter switcher runs in screen and open a guake tab attached to it, this would fix the problem avoiding to repeat that export line everywhere.

from nvoc_by_fullzero_community_release.

Draco-Falcon avatar Draco-Falcon commented on July 19, 2024

How about this: In the 2unix, if it is a firstBoot, then echo your export into the /etc/environment

like:

sudo echo NVOC="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" >> /etc/environment

I haven't tested that, but something along those lines

from nvoc_by_fullzero_community_release.

LuKePicci avatar LuKePicci commented on July 19, 2024

Would work fine only in nvOC images

from nvoc_by_fullzero_community_release.

Draco-Falcon avatar Draco-Falcon commented on July 19, 2024

this is nvOC - what else are we doing this for?

from nvoc_by_fullzero_community_release.

LuKePicci avatar LuKePicci commented on July 19, 2024

and way more important, it breaks side-by-side nvOC installs since you are not managing ovewriting of previously existing entries int the /etc(environment

from nvoc_by_fullzero_community_release.

Draco-Falcon avatar Draco-Falcon commented on July 19, 2024

I don't understand...you are installing a 2nd nvOC on the same hard disk in another location on the same rig? Why would you want that?

from nvoc_by_fullzero_community_release.

LuKePicci avatar LuKePicci commented on July 19, 2024

Improved testing, development and upgrading experience. You could clone this into /home/m1/nvOC21 (for example) and you try running this new revision, if any problem just revert the original 2unix path in the gnome-termianl profile and nothing gets broken. Also keeping both current/stable and development nvOC tree on the sa rig allow testing different branches on the fly. I still have nvOC 2.0 setup on my rig, and I'm testing nvOC 2.1 on that same rig, if any trouble in the master branch I restore 2.0 in a matter of seconds and I'm done.

from nvoc_by_fullzero_community_release.

Draco-Falcon avatar Draco-Falcon commented on July 19, 2024

Understood. As indicated....adding the export NVOC=... to the 3 files (upPASTE, 5watchdog and 6tempcontrol) fixed the issue for me.

from nvoc_by_fullzero_community_release.

LuKePicci avatar LuKePicci commented on July 19, 2024

Yup, thank you for reminding me the existence of upPASTE, will commit a dumb fix this issue adding the missing exports where needed for now. I will probably do a rework in order to avoid all this exports in future.

from nvoc_by_fullzero_community_release.

LuKePicci avatar LuKePicci commented on July 19, 2024

Got it, 3main@362, upPASTE runs in guake, then in upPASTE@45/56 3main is directly launched instead of being killed letting 2unix (where NVOC is set) to reinit 3main correctly.

from nvoc_by_fullzero_community_release.

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.