Picovoice / picovoice

On-device voice assistant platform powered by deep learning
Apache License 2.0
570 stars 109 forks source link

Picovoice Issue: "Attempt to renew a license nearing expiry was unsuccessful - will continue to use current license" #446

Closed masonearles closed 1 year ago

masonearles commented 1 year ago

Make sure you have read the documentation, and have put forth a reasonable effort to find an existing answer.

Expected behaviour

We are running Picovoice Rhino on a Jetson Xavier NX via the picovoice_ros node. Up until this morning it has worked very well for almost one month.

Actual behaviour

As of today we are receiving the following error:

[WARN] Attempt to renew a license nearing expiry was unsuccessful - will continue to use current license.

Picovoice appears to be continuously attempting to reconnect which is causing gaps in the "listening" function which leads to missed detections.

mrrostam commented 1 year ago

Picovoice Rhino engine needs an internet connection to renew its license only once in a while. After that, it uses the cached permit and doesn't need connectivity for a certain amount of time. If you don't connect your Jetson to the internet, the engine will totally stop performing eventually; is it possible for you to connect the Jetson board to the internet?

masonearles commented 1 year ago

Thank you for the response. We were thinking this might be the case, so we tried connecting to the internet, but are still getting the same error message. Is there any way to check/ensure that the cached permit is cleared and that a new one is generated?

On Fri, Oct 21, 2022 at 11:16 AM Reza (Pouya) Rostam < @.***> wrote:

Picovoice Rhino engine needs an internet connection to renew its license only once in a while. After that, it uses the cached permit and doesn't need connectivity for a certain amount of time. If you don't connect your Jetson to the internet, the engine will totally stop performing eventually; is it possible for you to connect the Jetson board to the internet?

— Reply to this email directly, view it on GitHub https://github.com/Picovoice/picovoice/issues/446#issuecomment-1287291705, or unsubscribe https://github.com/notifications/unsubscribe-auth/AG5FGPDSBRCUEYS36WYNKSDWELMYJANCNFSM6AAAAAARLMD22Q . You are receiving this because you authored the thread.Message ID: @.***>

mrrostam commented 1 year ago

oh I see, probably it has some issues talking to our servers; are you behind a firewall by any chance?

masonearles commented 1 year ago

No we're not behind a firewall, but we are connecting via a cellular modem in case that matters.

On Fri, Oct 21, 2022 at 11:24 AM Reza (Pouya) Rostam < @.***> wrote:

oh I see, probably it has some issues talking to our servers; are you behind a firewall by any chance?

— Reply to this email directly, view it on GitHub https://github.com/Picovoice/picovoice/issues/446#issuecomment-1287301192, or unsubscribe https://github.com/notifications/unsubscribe-auth/AG5FGPDPDZDHATIJA6JLNL3WELNXRANCNFSM6AAAAAARLMD22Q . You are receiving this because you authored the thread.Message ID: @.***>

mrrostam commented 1 year ago

Thank you for the response. We were thinking this might be the case, so we tried connecting to the internet, but are still getting the same error message. Is there any way to check/ensure that the cached permit is cleared and that a new one is generated? On Fri, Oct 21, 2022 at 11:16 AM Reza (Pouya) Rostam < @.> wrote: Picovoice Rhino engine needs an internet connection to renew its license only once in a while. After that, it uses the cached permit and doesn't need connectivity for a certain amount of time. If you don't connect your Jetson to the internet, the engine will totally stop performing eventually; is it possible for you to connect the Jetson board to the internet? — Reply to this email directly, view it on GitHub <#446 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AG5FGPDSBRCUEYS36WYNKSDWELMYJANCNFSM6AAAAAARLMD22Q . You are receiving this because you authored the thread.Message ID: @.>

You can delete the .pv folder inside your home folder, but I doubt that it's the issue

masonearles commented 1 year ago

We deleted the .pv folder and it didn't resolve the issue.

On Fri, Oct 21, 2022 at 11:27 AM Reza (Pouya) Rostam < @.***> wrote:

Thank you for the response. We were thinking this might be the case, so we tried connecting to the internet, but are still getting the same error message. Is there any way to check/ensure that the cached permit is cleared and that a new one is generated? … <#m-1934482757778845535> On Fri, Oct 21, 2022 at 11:16 AM Reza (Pouya) Rostam < @.> wrote: Picovoice Rhino engine needs an internet connection to renew its license only once in a while. After that, it uses the cached permit and doesn't need connectivity for a certain amount of time. If you don't connect your Jetson to the internet, the engine will totally stop performing eventually; is it possible for you to connect the Jetson board to the internet? — Reply to this email directly, view it on GitHub <#446 (comment) https://github.com/Picovoice/picovoice/issues/446#issuecomment-1287291705>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AG5FGPDSBRCUEYS36WYNKSDWELMYJANCNFSM6AAAAAARLMD22Q https://github.com/notifications/unsubscribe-auth/AG5FGPDSBRCUEYS36WYNKSDWELMYJANCNFSM6AAAAAARLMD22Q . You are receiving this because you authored the thread.Message ID: @.>

You can delete the .pv folder inside your home folder, but I doubt that's the issue

— Reply to this email directly, view it on GitHub https://github.com/Picovoice/picovoice/issues/446#issuecomment-1287303279, or unsubscribe https://github.com/notifications/unsubscribe-auth/AG5FGPFDRCRUTX47Q3L2F2DWELOAXANCNFSM6AAAAAARLMD22Q . You are receiving this because you authored the thread.Message ID: @.***>

mrrostam commented 1 year ago

We deleted the .pv folder and it didn't resolve the issue. On Fri, Oct 21, 2022 at 11:27 AM Reza (Pouya) Rostam < @.> wrote: Thank you for the response. We were thinking this might be the case, so we tried connecting to the internet, but are still getting the same error message. Is there any way to check/ensure that the cached permit is cleared and that a new one is generated? … <#m-1934482757778845535> On Fri, Oct 21, 2022 at 11:16 AM Reza (Pouya) Rostam < @.> wrote: Picovoice Rhino engine needs an internet connection to renew its license only once in a while. After that, it uses the cached permit and doesn't need connectivity for a certain amount of time. If you don't connect your Jetson to the internet, the engine will totally stop performing eventually; is it possible for you to connect the Jetson board to the internet? — Reply to this email directly, view it on GitHub <#446 (comment) <#446 (comment)>>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AG5FGPDSBRCUEYS36WYNKSDWELMYJANCNFSM6AAAAAARLMD22Q https://github.com/notifications/unsubscribe-auth/AG5FGPDSBRCUEYS36WYNKSDWELMYJANCNFSM6AAAAAARLMD22Q . You are receiving this because you authored the thread.Message ID: @.> You can delete the .pv folder inside your home folder, but I doubt that's the issue — Reply to this email directly, view it on GitHub <#446 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AG5FGPFDRCRUTX47Q3L2F2DWELOAXANCNFSM6AAAAAARLMD22Q . You are receiving this because you authored the thread.Message ID: @.>

You should get a new error message then, right?

masonearles commented 1 year ago

Yes, we are getting an "activation error".

On Fri, Oct 21, 2022 at 11:32 AM Reza (Pouya) Rostam < @.***> wrote:

We deleted the .pv folder and it didn't resolve the issue. On Fri, Oct 21, 2022 at 11:27 AM Reza (Pouya) Rostam < @.

> wrote: … <#m-1146264259989720371> Thank you for the response. We were thinking this might be the case, so we tried connecting to the internet, but are still getting the same error message. Is there any way to check/ensure that the cached permit is cleared and that a new one is generated? … <#m-1934482757778845535> On Fri, Oct 21, 2022 at 11:16 AM Reza (Pouya) Rostam < @.> wrote: Picovoice Rhino engine needs an internet connection to renew its license only once in a while. After that, it uses the cached permit and doesn't need connectivity for a certain amount of time. If you don't connect your Jetson to the internet, the engine will totally stop performing eventually; is it possible for you to connect the Jetson board to the internet? — Reply to this email directly, view it on GitHub <#446 https://github.com/Picovoice/picovoice/issues/446 (comment) <#446 (comment) https://github.com/Picovoice/picovoice/issues/446#issuecomment-1287291705>>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AG5FGPDSBRCUEYS36WYNKSDWELMYJANCNFSM6AAAAAARLMD22Q https://github.com/notifications/unsubscribe-auth/AG5FGPDSBRCUEYS36WYNKSDWELMYJANCNFSM6AAAAAARLMD22Q https://github.com/notifications/unsubscribe-auth/AG5FGPDSBRCUEYS36WYNKSDWELMYJANCNFSM6AAAAAARLMD22Q https://github.com/notifications/unsubscribe-auth/AG5FGPDSBRCUEYS36WYNKSDWELMYJANCNFSM6AAAAAARLMD22Q . You are receiving this because you authored the thread.Message ID: @.> You can delete the .pv folder inside your home folder, but I doubt that's the issue — Reply to this email directly, view it on GitHub <#446 (comment) https://github.com/Picovoice/picovoice/issues/446#issuecomment-1287303279>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AG5FGPFDRCRUTX47Q3L2F2DWELOAXANCNFSM6AAAAAARLMD22Q https://github.com/notifications/unsubscribe-auth/AG5FGPFDRCRUTX47Q3L2F2DWELOAXANCNFSM6AAAAAARLMD22Q . You are receiving this because you authored the thread.Message ID: @. **>

You should get a new error message then, right?

— Reply to this email directly, view it on GitHub https://github.com/Picovoice/picovoice/issues/446#issuecomment-1287309095, or unsubscribe https://github.com/notifications/unsubscribe-auth/AG5FGPDPQYZW3UH7SFQEMHDWELOSBANCNFSM6AAAAAARLMD22Q . You are receiving this because you authored the thread.Message ID: @.***>

mrrostam commented 1 year ago

As I thought, the problem is your internet connection, maybe there are some restrictions on which applications can use the cellular modem.

masonearles commented 1 year ago

Thanks, Reza. We're looking into this and will report back.

On Fri, Oct 21, 2022 at 11:36 AM Reza (Pouya) Rostam < @.***> wrote:

As I thought, the problem is your internet connection, maybe there are some restrictions on which applications can use the cellular modem.

— Reply to this email directly, view it on GitHub https://github.com/Picovoice/picovoice/issues/446#issuecomment-1287312967, or unsubscribe https://github.com/notifications/unsubscribe-auth/AG5FGPDK4D5O43BXVTWGNETWELPD5ANCNFSM6AAAAAARLMD22Q . You are receiving this because you authored the thread.Message ID: @.***>

masonearles commented 1 year ago

Is picovoice using ssh as the connection protocol?

On Fri, Oct 21, 2022 at 11:44 AM Mason Earles @.***> wrote:

Thanks, Reza. We're looking into this and will report back.

On Fri, Oct 21, 2022 at 11:36 AM Reza (Pouya) Rostam < @.***> wrote:

As I thought, the problem is your internet connection, maybe there are some restrictions on which applications can use the cellular modem.

— Reply to this email directly, view it on GitHub https://github.com/Picovoice/picovoice/issues/446#issuecomment-1287312967, or unsubscribe https://github.com/notifications/unsubscribe-auth/AG5FGPDK4D5O43BXVTWGNETWELPD5ANCNFSM6AAAAAARLMD22Q . You are receiving this because you authored the thread.Message ID: @.***>

masonearles commented 1 year ago

Thanks for the help. We’ve resolved the issue.

The request to picovoice was going through the wlan interface, which didn't have DNS configured correctly. Forcing the request to go through our ethernet-connected modem did the trick! Thank you for the support on this issue!

On Fri, Oct 21, 2022 at 11:47 Mason Earles @.***> wrote:

Is picovoice using ssh as the connection protocol?

On Fri, Oct 21, 2022 at 11:44 AM Mason Earles @.***> wrote:

Thanks, Reza. We're looking into this and will report back.

On Fri, Oct 21, 2022 at 11:36 AM Reza (Pouya) Rostam < @.***> wrote:

As I thought, the problem is your internet connection, maybe there are some restrictions on which applications can use the cellular modem.

— Reply to this email directly, view it on GitHub https://github.com/Picovoice/picovoice/issues/446#issuecomment-1287312967, or unsubscribe https://github.com/notifications/unsubscribe-auth/AG5FGPDK4D5O43BXVTWGNETWELPD5ANCNFSM6AAAAAARLMD22Q . You are receiving this because you authored the thread.Message ID: @.***>

masonearles commented 1 year ago

Also, just as a thought, if there isn't already a way to periodically query the time remaining until the license needs renewal (i.e. to be connected to the internet) such a feature could be very valuable. This is especially true for edge devices where connectivity is very limited, as is the case for us. If we could have a background process running that sends an alert when the expiration date is approaching (or send over "days until expiration") that could be very helpful to avoid unexpected downtime in the field.

Thanks again!

On Fri, Oct 21, 2022 at 11:47 AM Mason Earles @.***> wrote:

Is picovoice using ssh as the connection protocol?

On Fri, Oct 21, 2022 at 11:44 AM Mason Earles @.***> wrote:

Thanks, Reza. We're looking into this and will report back.

On Fri, Oct 21, 2022 at 11:36 AM Reza (Pouya) Rostam < @.***> wrote:

As I thought, the problem is your internet connection, maybe there are some restrictions on which applications can use the cellular modem.

— Reply to this email directly, view it on GitHub https://github.com/Picovoice/picovoice/issues/446#issuecomment-1287312967, or unsubscribe https://github.com/notifications/unsubscribe-auth/AG5FGPDK4D5O43BXVTWGNETWELPD5ANCNFSM6AAAAAARLMD22Q . You are receiving this because you authored the thread.Message ID: @.***>

mrrostam commented 1 year ago

Glad to be of help! Regarding the expiry query, we do not have it on our roadmap, but I'll bring it up with the team.