Tag Archives: error

Nvidia Ubuntu 22.04 driver error (solution)

After a normal boot, the Ubuntu displayed a wrong resolution and an “unknow” device  on display settings.

I searched for the solution for hours and nothing.

So, I decided to try change the recommended driver on “Additional drivers” application to another one with the same number of the version of the GPU. In my case was nvidia-driver-515 that I discovered executing the nvidia-detector command.

Another utility command is the sudo nvidia-bug-report.sh that generates a complete log of the driver, device and so on.

Here is the changing I have done.

 

Ubuntu Apparmor impedindo MySQL Workbench de guardar senhas

Ao tentar criar uma conexão, me deparei com um erro quando tentava armazenar a senha.

Depois de muito pesquisar identifiquei que se tratava do apparmor, um serviço que garante ou remove privilégios de programas.

O mysql-workbench foi instalado pela Loja do Ubuntu no diretório /snap.

Depois de tentar criar uma entrada pelo apparmor vi uma solução mais simples.

Na apresentação do aplicativo na loja tem as opções de permissões. Depois de acessá-la foi só garantir ao programa a letira/edição de senhas.

Permissões para o apparmor

Java @Schedule error

I was trying to scheduling a method from a EJB class using the @Schedule annotation of the javax.ejb package.

@Schedule(second=”*/5″, minute=”*”, hour=”*”)
public void listarMsgs()
{
logger.log(Level.INFO, “do something…”);
}

But every time the method was called it  appeared a error like this:

Failed to reinstate timer…

Googling for about some time I figure out that it was a kind bug of the application server, JBoss Wildfly. I’m using the 9 version.

The solution was clear the folder under the standalone/data/timer-service-data that is where the server creates the xml of the schedule job.