Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Regression getting error "journal has been rotated" #3

Open
guyluz11 opened this issue Aug 10, 2020 · 14 comments
Open

Regression getting error "journal has been rotated" #3

guyluz11 opened this issue Aug 10, 2020 · 14 comments
Assignees
Labels
bug Something isn't working hacktoberfest Support Hacktoberfest open source event https://hacktoberfest.digitalocean.com/ hacktoberfest 2020 Support Hacktoberfest open source event https://hacktoberfest.digitalocean.com/ have blocker issue that have blocker that need to be resolve to continue solve it

Comments

@guyluz11
Copy link
Member

After number of days the network connections stop working only inside the snap.

Running sudo systemctl status -n 100 snap.smart-home.smart-home return the following:
Warning: journal has been rotated since unit was started, output may be incomplete.

Buttons still working and restarting the snap will reset the problem again to number of days.

@guyluz11
Copy link
Member Author

guyluz11 commented Aug 10, 2020

My guess is that it is one of those:

  1. Currently the snap was created on old version of snapcraft (version 2.43), creating again on new version might solve this.
  2. One of the packages that was updated create this problem, if this is the case we will hope that over time updating packages will solve the case, if this will become urgent finding that package will be hard so make this last resort.
  3. It was introduced in the months that I have created set_devices_e.dart so it can be new piece of code.
  4. Updated to the device os

@guyluz11
Copy link
Member Author

When useing snapcraft on rasbery pi 4 the snap return the following error
jinnime@nanopiduo2:~$ sudo smart-home /snap/smart-home/x2/scripts/cScripts/phisicalComponents/sendingSignals/offSignal/turnOffWiringPiSetupPhys: error while loading shared libraries: libwiringPi.so: cannot open shared object file: No such file or directory

@guyluz11
Copy link
Member Author

While creating the snap using snapcraft I get the following lines:

This part is missing libraries that cannot be satisfied with any available stage-packages known to snapcraft:
- usr/local/lib/libwiringPi.so
- usr/local/lib/libwiringPiDev.so
These dependencies can be satisfied via additional parts or content sharing. Consider validating configured filesets if this dependency was built.

@guyluz11
Copy link
Member Author

@guyluz11
Copy link
Member Author

guyluz11 commented Sep 19, 2020

1. Currently the snap was created on old version of snapcraft (version 2.43), creating again on new version might solve this.

Solved number one, the snap was built on snapcraft 4.3 this time.
I will report here again in one month if it was solved or not.

@guyluz11
Copy link
Member Author

I decided to close it now and reopen it in case it reappear.

@guyluz11
Copy link
Member Author

I came back in more than one device at the same time (but not in all of them)

● snap.cybear-jinni.cybear-jinni.service - Service for snap application cybear-jinni.cybear-jinni
     Loaded: loaded (/etc/systemd/system/snap.cybear-jinni.cybear-jinni.service; enabled; vendor preset: enabled)
     Active: failed (Result: exit-code) since Fri 2020-09-25 01:03:05 UTC; 8h ago
    Process: 22966 ExecStart=/usr/bin/snap run cybear-jinni (code=exited, status=255/EXCEPTION)
   Main PID: 22966 (code=exited, status=255/EXCEPTION)

Warning: journal has been rotated since unit was started, output may be incomplete.

@guyluz11 guyluz11 reopened this Sep 25, 2020
@guyluz11
Copy link
Member Author

guyluz11 commented Sep 25, 2020

After some research I found out that the only device that it didn't stop working was the one that network manager dart snap was stopped.

My suspicion is that because that both of the snaps network manager dart (Security-Bear) and cybear-jinni (Smart-Device) have the same process name running inside of them main.exe it collides and crush with that error.

@guyluz11 guyluz11 transferred this issue from CyBear-Jinni/cbj_smart-home Sep 25, 2020
@guyluz11 guyluz11 added bug Something isn't working hacktoberfest Support Hacktoberfest open source event https://hacktoberfest.digitalocean.com/ hacktoberfest 2020 Support Hacktoberfest open source event https://hacktoberfest.digitalocean.com/ labels Sep 26, 2020
@guyluz11 guyluz11 self-assigned this Sep 26, 2020
guyluz11 added a commit that referenced this issue Oct 14, 2020
@guyluz11
Copy link
Member Author

guyluz11 commented Oct 20, 2020

Happened again, can be connected to bad sdcard?, maybe it can occurs after new update and upgrade to Linux is complete.

@guyluz11 guyluz11 reopened this Oct 20, 2020
@guyluz11
Copy link
Member Author

guyluz11 commented Nov 3, 2020

#26 is blocker, the software is getting restarted so we do not get to see this problem a lot.

@guyluz11 guyluz11 added the have blocker issue that have blocker that need to be resolve to continue solve it label Nov 3, 2020
@guyluz11
Copy link
Member Author

Now that #26 got patch this issue should be reevaluated, as it could have happened from the same issue of Firedart package not implementing correctly the auth token.

@guyluz11 guyluz11 removed the have blocker issue that have blocker that need to be resolve to continue solve it label Dec 19, 2020
@guyluz11
Copy link
Member Author

Reverted the patch as it have check #26 for description about the revert.

@guyluz11 guyluz11 added the have blocker issue that have blocker that need to be resolve to continue solve it label Dec 23, 2020
@guyluz11
Copy link
Member Author

guyluz11 commented Jun 9, 2021

Like the last patch that was canceled in #26, #139 will try to patch it up by restarting the stream to firebase after 4 hours.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working hacktoberfest Support Hacktoberfest open source event https://hacktoberfest.digitalocean.com/ hacktoberfest 2020 Support Hacktoberfest open source event https://hacktoberfest.digitalocean.com/ have blocker issue that have blocker that need to be resolve to continue solve it
Projects
None yet
Development

No branches or pull requests

1 participant