Laravel Relation “Attempt to read property on null”

Laravel property on null

It usually means that the related record is NULL or soft-deleted. There are multiple ways to gracefully handle such a situation, without showing the error to the user.

A practical example would be a list of Posts with belongs To relation to Categories.

Migration file for Posts:

Continue reading

SQL Reporting Services. HTTP Error 503 The service is unavailable

After I installed new certificate using SQL RS Configuration Manager upon opening any report I see the following:

In comparison to this case the root cause is the same: when binding a certificate Configuration Manager creates shitty URL bindings like Continue reading

Firewalld failed to start timeout

Try to start firewalld service via the following command

but get the following error after few seconds no response:

firewalld.service: Start operation timed out. Terminating.
firewalld.service: Failed with result ‘timeout’.
systemd: Failed to start firewalld – dynamic firewall daemon.

Continue reading

Fail2ban: already banned

I have Fail2Ban running on my Centos Server.

In my /var/log/messages
I noticed something really weird:

I configured Fail2Ban to add the banned IP to iptables so they cannot reach my server anymore

Continue reading

Cloudmin passthrough CPU information to VM

your-cpu-does-not-support-avx-or-avx2
I have Rocket Chat in VM hosted in Cloudmin that relies on qemu. When I tried to update Rocket Chat to the latest version I got the following error:
Your cpu does not support avx or avx2 instructions, which is required to run mongo 5.x, shipped with the next version of this snap. Continue reading

Centos: Get a newer version of e2fsck

I got an error about e2fsck version. In my case the issue happened in Centos7, when I try to expand the disk of my VM in Cloudmin.

You will hit an error with your e2fsck version. You will need to download the latest source binary of e2fsprogs from your OS distributor and install it.

[ 17.0] Resizing (using virt-resize) to expand the disk to 8.0G
virt-resize: error: libguestfs error: resize2fs: e2fsck 1.42.9
(24-Dec-2024)
/dev/sda1 has unsupported feature(s): metadata_csum
e2fsck: Get a newer version of e2fsck!

Continue reading

MariaDB fails to start: Aria engine is not enabled or did not start

mysql-logo-imageAfter low space condition once happened on a server MariaDB failed to start with :

In /var/log/messages:

Continue reading

Clean and reduce size of Zabbix database

Zabbix-monitoring-system

After some time you may find that you Zabbix database become enormously big and consumes significant amount of disk space. Among really usefull data there is data that may be cleaned up and optimized in Zabbix database in order to reduce size of Zabbix database. Continue reading

Vicidial access forbidden to the recordings folder

Vicidial-access-forbidden

I got this upon trying to download call recording in Vicidial on the lead’s page. I have Vicibox 11 installed in virtual machine on Cloudmin with Vicidial VERSION: 2.14-899a BUILD: 231109-2027 Continue reading

Asterisk vicidial WebRTC phone cannot connect

VicidialOn the newly installed Vicidial box I got problem connecting WebRTC phone to Asterisk.

I followed the setup guide here

In the Asterisk console I saw:

Problem setting up ssl connection: error:00000001:lib(0):func(0):reason(1), Internal SSL error
 ERROR[2203]: tcptls.c:179 handle_tcptls_connection: Unable to set up ssl connection with peer ‘22.22.48.22:48756’
[Jan 17 11:46:42] ERROR[2203]: iostream.c:552 ast_iostream_close: SSL_shutdown() failed: error:00000001:lib(0):func(0):reason(1), Internal SSL error

Continue reading

Load more