i-nex / I-Nex

System information tool written in gambas3, python, bash
http://i-nex.linux.pl/
174 stars 24 forks source link

"[45] File or directory does not exist. FReport_Gen.Form_Open.19" on CentOS #15

Closed alphastar868 closed 8 years ago

alphastar868 commented 8 years ago

I-Nex crashes with the above error when the Generate report button is clicked.

Looks like the path /usr/share/i-nex/pastebinit/pastebin.d/ does not exist or isn't created when it should be.

alphastar868 commented 8 years ago

On further investigation, it seems like this is caused by a missing pastebinit.conf file at /usr/share/i-nex/pastebinit/pastebin.d/. (There is no default pastebinit package in CentOS).

Will try to investigate some more to provide further details.

alphastar868 commented 8 years ago

Discovered that this works on CentOS 7.x as long as the following lines are commented (i.e. deleted) from the SUSE RPM SPEC file prior to building:


# Let's use system's `pastebinit`.
#rm -rf %{buildroot}%{_datadir}/%{name}/pastebinit

Additionally, the following path should be added to the end of the %files section of the SPECfile:

%files
...
/usr/share/i-nex/pastebinit

With the two above fixes, the necessary pastebinit files to populate the Send report to nopaste service combobox in Generate report (3rd button, bottom left in I-Nex) are packaged into the I-Nex RPM, and therefore get installed to /usr/share/i-nex/pastebinit/ and /usr/share/i-nex/pastebinit/pastebin.d/ when I-Nex is installed.

Note that a separate Pastebinit is not required for CentOS, nor the Fedora/RedHat/CentOS equivalent FPaste.