Community
OpenEnergyMonitor

Community

Unexpected output from git describe

(Brian Orpin) #1

You need to run the update as that is way behind the latest version V9.9.8

That may solve the problem.

0 Likes

Unable to Create a Virtual Feed
(Neil Hastings) #2

Brian,

FYI: My version is 9.9.8 and Describe: 9.9.4-247-gd0db7a57.

0 Likes

(Brian Orpin) #3

Hi @Neil, Have you done an update recently? The git descibe suggests that the update has not worked for some reason.

0 Likes

(Neil Hastings) #4

From Setup/Administration I performed both emonPi Update and emonBase Update. The git describe still reads: Describe: 9.9.4-247-gd0db7a57

Please don’t spend too much time for me, I just wanted you to see what I was seeing. I can wait for you experts to resolve the issue.

Have a great day.

0 Likes

(Brian Orpin) #5

Odd.

Could you tell me what your setup is please (EmonPi/EmonBase/EmonSD). Are you comfortable with SSH & git?

If so, please SSH into the system and run

sudo git -C /var/www/emoncms status
sudo git -C /var/www/emoncms describe

and copy and paste the output here please.

0 Likes

(Neil Hastings) #6

Here you go…

    [email protected]:~ $ sudo git -C /var/www/emoncms status
    On branch stable
    Your branch is up-to-date with 'origin/stable'.
    Untracked files:
    (use "git add <file>..." to include in what will be committed)
    scripts/logger/logrotate.conf.old
    scripts/logger/logrotate.old
    nothing added to commit but untracked files present (use "git add" to track)
    [email protected]:~ $

and…

    [email protected]: ~ $ sudo git -C /var/www/emoncms describe
    9.9.4-247-gd0db7a57
    [email protected]: ~ $
0 Likes

(Brian Orpin) #7

Most odd.

could you try

 sudo git -C /var/www/emoncms describe --tags --debug

please?

0 Likes

(Neil Hastings) #8
[email protected]:~ $ sudo git -C /var/www/emoncms describe --tags --debug
searching to describe HEAD
 lightweight      230 9.9.5
 lightweight      244 9.9.3
 annotated        247 9.9.4
 lightweight      298 V9.9.2
 lightweight      301 v9.9.1
 lightweight      306 v9.9.0
 lightweight      773 9.8.31
 lightweight      855 9.8.30
 lightweight      860 9.8.29
 lightweight      969 9.8.28
traversed 989 commits
more than 10 tags found; listed 10 most recent
gave up search at 782ac11e0c28d6473608045198f6f1ec3178714f
9.9.5-230-gd0db7a57
[email protected]:~ $
0 Likes

(Brian Orpin) #9

Try this just to clean up the repository, then the --tags --debug command again

sudo git -C /var/www/emoncms  fetch --all --prune -v

What the output should be is

searching to describe HEAD
 annotated          4 9.9.8
 annotated          9 9.9.7
 lightweight       41 9.9.6
 lightweight      229 9.9.5
 lightweight      243 9.9.3
 annotated        246 9.9.4
 lightweight      297 V9.9.2
 lightweight      300 v9.9.1
 lightweight      305 v9.9.0
 lightweight      756 9.8.31
traversed 839 commits
more than 10 tags found; listed 10 most recent
gave up search at 50c7901bca2ffd2226798bbca8a6bcc78c48f94b
9.9.8-4-gd0db7a57
0 Likes

(Neil Hastings) #10

I ran sudo git -C /var/www/emoncms fetch --all --prune -v
Then sudo git -C /var/www/emoncms describe --tags --debug

Looks good now:

[email protected]:~ $ sudo git -C /var/www/emoncms describe --tags --debug
searching to describe HEAD
 annotated          4 9.9.8
 annotated          9 9.9.7
 lightweight       41 9.9.6
 lightweight      229 9.9.5
 lightweight      243 9.9.3
 annotated        246 9.9.4
 lightweight      297 V9.9.2
 lightweight      300 v9.9.1
 lightweight      305 v9.9.0
 lightweight      756 9.8.31
traversed 839 commits
more than 10 tags found; listed 10 most recent
gave up search at 50c7901bca2ffd2226798bbca8a6bcc78c48f94b
9.9.8-4-gd0db7a57
[email protected]:~ $

also…

[email protected]: ~ $ sudo git -C /var/www/emoncms describe

9.9.8-4-gd0db7a57

[email protected]: ~ $
0 Likes

(Brian Orpin) #11

Ah better.

@TrystanLea may be worth adding a git fetch --all --prune to the update script for all repositories just to keep them clean.

1 Like

emonSD next steps
(netrider) #12

Hello.

I made the sugested commands/updates and now have:
[email protected]:~ $ sudo git -C /var/www/emoncms describe --tags --debug
searching to describe HEAD
annotated 4 9.9.8
annotated 9 9.9.7
lightweight 41 9.9.6
lightweight 229 9.9.5
lightweight 243 9.9.3
annotated 246 9.9.4
lightweight 297 V9.9.2
lightweight 300 v9.9.1
lightweight 305 v9.9.0
lightweight 756 9.8.31
traversed 839 commits
more than 10 tags found; listed 10 most recent
gave up search at 50c7901bca2ffd2226798bbca8a6bcc78c48f94b
9.9.8-4-gd0db7a57

[email protected]:~ $ sudo git -C /var/www/emoncms describe
9.9.8-4-gd0db7a57

But the problem of virtual feeds don’t fixe :expressionless:

Problems creating virtual feed after update
Unable to Create a Virtual Feed

0 Likes

(Brian Orpin) #13

No it won’t have. I have suggested a change and that will have to be accepted. Even then it will not be fixed until a new release, unless you change branch with git.

0 Likes

(netrider) #14

I say your resquest in git.
Regards

0 Likes

(Dave Howorth) #15

It’s a clear regression - I was able to create virtual feeds prior to my latest update and now I can’t - so hopefully it will be fixed soon.

0 Likes