Various bug reports

It seems I’m having an issue with the chat as well (I wonder if it’s related)

No lights turned on, even though the dashboard looks fine!
My lights are controlled by zigbee2mqtt

Of course, I don’t see any logs scrolling by

On the other hand, the weather is working!

Sorry, I won’t be able to help with debugging, good luck!

Here’s what I did to be at ease:

docker stop motioneye
docker rm motioneye

I go to Gladys locally, integration, camera, I put my stream /dev/video0. I switch to developer mode :sunglasses: and I test. I get in the console

error	"ffmpeg exited with code 1: /dev/video0: Resource busy\n"

I restarted the Raspberry for it to work, thanks pierre-gilles :wink:

I also have an issue on the chatbox when I ask it to display the camera, but I think I have some logs

2021-04-27T21:43:33+0200 <warn> poll.js:14 (RtspCameraHandler.poll) Unable to poll camera
2021-04-27T21:44:33+0200 <warn> poll.js:14 (RtspCameraHandler.poll) Unable to poll camera
2021-04-27T21:44:33+0200 <warn> poll.js:14 (RtspCameraHandler.poll) Unable to poll camera
2021-04-27T21:44:33+0200 <warn> poll.js:14 (RtspCameraHandler.poll) Unable to poll camera
2021-04-27T21:44:33+0200 <warn> poll.js:14 (RtspCameraHandler.poll) Unable to poll camera
2021-04-27T21:45:46+0200 <warn> index.js:825 (Socket.<anonymous>) Socket disconnected client side. Trying to reconnect...
2021-04-27T21:45:46+0200 <error> index.js:15 (process.<anonymous>) unhandledRejection catched: Promise {
  <rejected> NotFoundError: Answer with intent camera.get-image-room.fail and language fr not found
      at Brain.getReply (/src/server/lib/brain/brain.getReply.js:18:11)
      at MessageHandler.replyByIntent (/src/server/lib/message/message.replyByIntent.js:15:27)
      at Camera.command (/src/server/lib/device/camera/camera.command.js:28:25)
}
2021-04-27T21:45:46+0200 <error> index.js:16 (process.<anonymous>) NotFoundError: Answer with intent camera.get-image-room.fail and language fr not found
    at Brain.getReply (/src/server/lib/brain/brain.getReply.js:18:11)
    at MessageHandler.replyByIntent (/src/server/lib/message/message.replyByIntent.js:15:27)
    at Camera.command (/src/server/lib/device/camera/camera.command.js:28:25)
2021-04-27T21:45:47+0200 <warn> poll.js:14 (RtspCameraHandler.poll) Unable to poll camera

In fact, the dashboard is fine but the chat thread returns:


USB cameras on OrangePi and camerapi on pizero and rpi2

Following the log of @Jean34 and the error mentioning the fr language, I still did the test by switching my account to English… same issue:

Ok so there is a chat problem but the camera integration works.

@Lokkye could this not come from your PR on the chat?

I’m talking about this one =>

After investigation, there is indeed a bug. Since the update of node-nlp in the PR above, retrieving camera images in a PR no longer works.

I created a GitHub issue to reference the bug:

Does this also explain my light issue?

Cf: Relevé de bugs divers - #41 par spenceur

Yes I think! It’s related.

This wasn’t caught by the tests because, in my opinion, the tests were too « unitary » on this part of the code and did not test the end-to-end functionality with the library.

We need to add some more :slight_smile:

Good luck with the fix :stuck_out_tongue:

I suppose this kind of thing could be tested in the future with Cypress?

It’s possible, but I don’t think that’s really the purpose of Cypress. In this case, it’s just about missing backend « end-to-end » tests (we have them in many places, but not here in this instance), without mocking the calls to the library to be able to test breaking changes in the lib :slight_smile:

For info, I started looking into it and indeed, since the update of the node-nlp library, all the places where « context » is used in the questions (i.e., all questions) no longer work :confused: Not very complicated to fix, but well, there’s a lot of work.

Fortunately, we see it and we all participate in the anomaly recovery :smiley:

PR in progress here, it’s WIP:

Sorry @pierre-gilles, you have to go in all directions…

But I found other bugs on Gladys +, if I need to create another topic let me know…

I have a problem with the dashboard editing with my Zigbee and MQTT devices, the rooms are not displayed in the list, in fact there is nothing at all:

Locally

On Gladys +

Locally

On Gladys +

On PC it’s the same and I don’t have any errors in the Firefox console, same for the Docker logs

@Jean34 weird I can’t reproduce it works for me

I think we had a small bug a few weeks ago on this part (on Gladys as well as on Gladys Plus) and I wonder if you might still have the bug because of cache on this part.. if you go to private browsing, or if you clear your browser cache, do you still have the bug?

Otherwise, if it’s not that, how many rooms are in your house?

In 4.2.3 I didn’t have this issue, and of course I ran CCleaner before posting my message. And it happens to me both on PC and smartphone.

Edit:

I only have 3 rooms.

Really strange, can’t reproduce it at my end.

Is anyone else having this issue? @VonOx?

For information, I have just finished the chat fixes, it’s merged on master here:

I will make a « dev » Docker build later today.

Do not reproduce, and I advise against using CCleaner and others. Just a hard refresh is sufficient.

Listen, I’ve done everything to be at peace… All I have left to do is a reinstallation.

But before that, I’ll check if it’s not also related to the services I’ve deactivated, since I don’t use them… Hue, Z-Wave, etc.