• 10 dec 2017: forum version update. In case of issues use this topic.
  • 30 nov 2017: pilight moved servers. In case of issues use this topic.
Hello There, Guest! Login Register


Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
pilight v8.0 - Current work in progress
#11
What happens to the pilight 8 ? Smile
 
Reply
#12
https://forum.pilight.org/Forum-pilight-...16-rewrite

http://github.com/pilight/pilight/tree/rewrite
 
Reply
#13
The post-remove script of the installer seems broken in the latest v8.0.2:
Code:
Removing pilight-webgui (8.0) ...
Removing pilight (8.0.2) ...
dpkg: error processing package pilight (--remove):
subprocess installed post-removal script returned error exit status 1
Processing triggers for systemd (215-17+deb8u7) ...
Errors were encountered while processing:
pilight
E: Sub-process /usr/bin/dpkg returned an error code (1)
 
Reply
#14
(11-16-2017, 01:58 PM)gregnau Wrote: The post-remove script of the installer seems broken in the latest v8.0.2:
Code:
Removing pilight-webgui (8.0) ...
Removing pilight (8.0.2) ...
dpkg: error processing package pilight (--remove):
subprocess installed post-removal script returned error exit status 1
Processing triggers for systemd (215-17+deb8u7) ...
Errors were encountered while processing:
pilight
E: Sub-process /usr/bin/dpkg returned an error code (1)

I'm currently encountering the same issue. I have/had installed 8.0.4.
Initially everything was installed and OK, than I wanted to remove pilight which already had this issue and now I'm unable to either remove or re-install.
 
Reply
#15
I will look into it. Any idea what could have gone wrong if you look at the scripts yourself?
https://github.com/pilight/pilight/blob/...ght/postrm
 
Reply
#16
(12-13-2017, 07:20 AM)curlymo Wrote: I will look into it. Any idea what could have gone wrong if you look at the scripts yourself?
https://github.com/pilight/pilight/blob/...ght/postrm

I ended up adding exit 0 at the end of postrm script. At least it must be part of remove case , but I was to lazy to check where issue occurred.
However, I can repeat the same and see where it runs into problems the next days.
Will get back on this.

BR
Florian
 
Reply
#17
Code:
root@led-04-wifi:/tmp# test -f test && rm test;
root@led-04-wifi:/tmp# echo $?
1
root@led-04-wifi:/tmp# touch test
root@led-04-wifi:/tmp# test -f test && rm test;
root@led-04-wifi:/tmp# echo $?
0
root@led-04-wifi:/tmp#
I simple tried the above and if files supposed to remove in postrm script does not exists, we will echo return code 1.

Further checking I can see that file "/etc/init.d/pilight.sh" does not exists.
So I think it's 2 problems, first that one of the files does not exists, but also the postrm should able to handle this and not exit with 1.

I hope this helps you identifying the problem.

BR
Florian
 
Reply
#18
You are right. I should've added the true:
Code:
# test -f test && rm test || true
# echo $?
0
Do you want to make a PR or should i change it?
 
Reply
#19
Confused  actually I don't know how to create PRs? Should I make under github project?
I would prefer if you could do the PR.

Thanks!

BR
Florian
 
Reply
#20
Already pushed the fix.
 
Reply
  


Possibly Related Threads...
Thread Author Replies Views Last Post
  pilight-control TML 13 296 05-27-2020, 07:51 AM
Last Post: curlymo
  API Requests by HTTP from other devices fore use in pilight scootermacro 2 140 05-10-2020, 08:19 AM
Last Post: scootermacro
  pilight-send seems successful but doesn't actually send RF signal ayeyebrazov 37 1,989 03-31-2020, 01:02 PM
Last Post: curlymo
  pilight 8.1.5 not working on Raspberry pi after reboot beejayf 4 487 03-08-2020, 12:14 AM
Last Post: beejayf
  pilight cpu usage possibly associated with noticeable sluggishness? hepcat72 4 513 01-28-2020, 08:02 PM
Last Post: hepcat72
  apt.pilight.org stable Release' is not signed. thomasol 2 636 01-23-2020, 11:34 PM
Last Post: thomasol
  pilight and SIGNALduino cc1101 Caleus 0 429 01-19-2020, 09:13 AM
Last Post: Caleus
  filter stopped working after update to pilight 8.1.5 zlin50 19 1,308 01-03-2020, 02:15 PM
Last Post: curlymo
Question [Solved] Openweathermap with pilight 7.0-40 doesn't work Seebueb 2 502 01-01-2020, 06:45 PM
Last Post: Seebueb
  [Solved] Strange receive problem with 433Mhz Receiver and pilight 8.1.5 vanillaice30 15 1,393 12-18-2019, 11:09 AM
Last Post: vanillaice30

Forum Jump:


Browsing: 1 Guest(s)