[SOLVED] OpenHAB 2.3.0-1 Stable: No FireMotD ExportFile detected

Hello Christian,

I will try to help.

Would you please give me the information the tool writes into the console? I mean “checking for root privileges” …

Greetings
Michael

Hello Christian,

I just had the possibilty to update FireMotD and I get the same error message.

Looks like a bug … I am investigating.
@ThomDietrich : Any idea?

Greetings
Michael

Hello Christian,
I just installed the previous version of FireMotD an the error message disappears.

Solving this in general is not possible for me. But as a workaround you can do:

# move current installation to backup dir
sudo mv /opt/FireMotD{,.old}
# change to home and fetch stable release
cd ~
wget https://github.com/OutsideIT/FireMotD/archive/v8.08.171007.zip
# unzip release file
unzip v8.08.171007.zip
# create new FireMotD dir
mkdir /opt/FireMotD
# copy stable release to FireMotd dir
cp -pR FireMotD-8.08.171007/* /opt/FireMotD

Afterwards the command

should work.

Greetings
Michael

3 Likes

Here we go:

[12:51:26] openhabian@OpenHABianPi2:~$ sudo openhabian-config
[sudo] password for openhabian:
2018-07-18_12:51:36_CEST [openHABian] Checking for root privileges… OK
2018-07-18_12:51:36_CEST [openHABian] Loading configuration file ‘/etc/openhabian.conf’… OK
2018-07-18_12:53:01_CEST [openHABian] openHABian configuration tool version: [master]v1.4.1-411(ecf59c4)
2018-07-18_12:53:01_CEST [openHABian] Checking for changes in origin… OK
2018-07-18_12:53:16_CEST [openHABian] Downloading and setting up FireMotD…
$ apt update
Hit:1 https://deb.nodesource.com/node_8.x stretch InRelease
Ign:2 https://dl.bintray.com/openhab/apt-repo2 stable InRelease
Hit:3 https://dl.bintray.com/openhab/apt-repo2 stable Release
Hit:5 Index of /raspbian stretch InRelease
Hit:6 Index of /debian stretch InRelease
Ign:7 http://repos.azulsystems.com/debian stable InRelease
Hit:8 http://repos.azulsystems.com/debian stable Release
Reading package lists… Done
Building dependency tree
Reading state information… Done
All packages are up to date.

$ apt -y install bc sysstat jq moreutils
Reading package lists… Done
Building dependency tree
Reading state information… Done
bc is already the newest version (1.06.95-9).
jq is already the newest version (1.5+dfsg-1.3).
moreutils is already the newest version (0.60-1).
sysstat is already the newest version (11.4.3-2).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

$ git clone GitHub - OutsideIT/FireMotD: 🔥 Fire Framework Linux MoTD Generator 🔥 /opt/FireMotD
Cloning into ‘/opt/FireMotD’…
remote: Counting objects: 879, done.
remote: Compressing objects: 100% (20/20), done.
remote: Total 879 (delta 16), reused 13 (delta 8), pack-reused 851
Receiving objects: 100% (879/879), 8.58 MiB | 5.52 MiB/s, done.
Resolving deltas: 100% (489/489), done.

$ bash /opt/FireMotD/FireMotD -S
2018-07-18 12:53:47,624: FireMotD: Error: Template basic does not exist. Try 'basic' or 'all'.
jq: error: Could not open file /usr/share/firemotd/data/FireMotD.json: No such file or directory
OK
2018-07-18_12:53:50_CEST [openHABian] Checking for default openHABian username:password combination… FAILED
2018-07-18_12:53:51_CEST [openHABian] We hope you got what you came for! See you again soon :wink:

My workaround above should temporaly solve this.

:grinning:

Hi Michael,

Cool stuff! Thanks a lot - worked great!

Just one comment to be complete if others run into the same:

the cp command had to look like cp -pR FireMotD-8.08.171007/* /opt/FireMotD

…and yes… changing the default password now… :wink:

Thanks again for your help!

Greetings

Christian

Thanks for your reply.

I corrected it in the workaround.

Greetings
Michael

Hi,
I have the same problem with FireMotD.
After trying the workaround suggested above I still got the error (picture below).


Is there something else I have to do to get it working?

Thanks
Jonathan

Hi,

I solved the problem with the workaround aswell.
I did something wrong the first time I tried it.
Sorry for that… :slight_smile:
Happy that it’s working
Thanks

1 Like

Hello,

I have solved.

The file:

/usr/share/firemotd/data/FireMotD.json

was zero byte

Then, I thought to delete it file :

sudo rm /usr/share/firemotd/data/FireMotD.json

and recreate it

sudo /opt/FireMotD/FireMotD -S -v

If FireMotD.json not exist then:

sudo /opt/FireMotD/FireMotD -I -v

1 Like

After a clean install…


even tryed that workaround.

1 Like

Hello Ray,

sadly I am unable to open the picture.

Would you please try to share it again?

Michael

Hi Michael,

That’s kind of weird! because I can see it without any issue.

But it shows:

2018-09-18 15:14:53,993: FireMotD: Info: No FireMotD ExportFile detected. Please generate with “sudo .\FireMotD -S”

End this is a clean install of openhabian (openhabianpi-raspbian-201804031720-gitdba76f6-crc9e93c3eb.img.xz) on a Raspberry Pi.

I did everything that is writen in this topic but whatever I do it comes with:

sudo: ./FiremotD: command not found.

Ray.

Hi Ray,

my fault … my companies proxy server is blocking the picture uri :slight_smile:

Please try:

sudo FiremotD -S

For explanation:
sudo ./FiremotD tries to find the file FireMotD in the current directory ( = ./ )
sudo FireMotD is looking for the file in different directories (use “echo $PATH” for details)

by the way:
when installing openhabian a routine is installing among other things FireMotD.
A couple of weeks ago IMHO there was a failure in the current FireMotD release.

the actual release [v10.03.180723] fixed the problems. you can get it by:

sudo openhabian-config

Please choose “10 | Apply Improvements” and in the next screen “15 | FireMotD”.

This will pull the latest release and blast your problems away.

hth
Michael

Hi Michael,

Thanks for the friendly responce.

First I did:
[15:06:31] openhabian@Raindomain:~$ sudo FiremotD -S
[sudo] password for openhabian:
sudo: FiremotD: command not found

Then I did:
[15:06:59] openhabian@Raindomain:~$ sudo openhabian-config
10 | Apply Improvements
15 | FireMotD

And that gave me this:

$ git clone https://github.com/OutsideIT/FireMotD /opt/FireMotD
Cloning into ‘/opt/FireMotD’…
remote: Counting objects: 943, done.
remote: Compressing objects: 100% (76/76), done.
remote: Total 943 (delta 52), reused 33 (delta 16), pack-reused 851
Receiving objects: 100% (943/943), 15.43 MiB | 2.00 MiB/s, done.
Resolving deltas: 100% (525/525), done.

$ bash /opt/FireMotD/FireMotD -S
2018-09-19 15:09:09,709: FireMotD: Error: Template folder doesn’t exist. Upgrading from an older version? Please run make again or run the install function “FireMotD -I -v”.
OK
2018-09-19_15:09:15_CEST [openHABian] Checking for default openHABian username:password combination… OK
2018-09-19_15:09:15_CEST [openHABian] We hope you got what you came for! See you again soon :wink:

I guess, I did not get what I was looking for.

Ray.

@Ad3D change directories and run sudo ./FireMotD -l -v like this:

cd /opt/FireMotD$ sudo ./FireMotD -I -v

7 Likes

Thanks H102
That did it.

cd /opt/FireMotD
sudo ./FireMotD -I -v

6 Likes

Thanks for that, Alein – worked great on my system, too!

Frank

this worked for me, thanks