[Solved] Roscore registerService error

I have downloaded and flashed the image again. This is the output:

husarion@husarion:~$ roscore
... logging to /home/husarion/.ros/log/47cde892-123b-11e9-a238-409f384ecc95/roslaunch-husarion-22825.log
Checking log directory for disk usage. This may take awhile.
Press Ctrl-C to interrupt
Done checking log file disk usage. Usage is <1GB.

started roslaunch server http://husarion:36394/
ros_comm version 1.12.13


SUMMARY
========

PARAMETERS
 * /rosdistro: kinetic
 * /rosversion: 1.12.13

NODES

WARNING: ROS_MASTER_URI [http://master:11311] host is not set to this machine
auto-starting new master
process[master]: started with pid [22907]
ROS_MASTER_URI=http://husarion:11311/

setting /run_id to 47cde892-123b-11e9-a238-409f384ecc95
process[rosout-1]: started with pid [22938]
started core service [/rosout]
[ERROR] [1546838144.275276304]: [registerService] Failed to contact master at [husarion:11311].  Retrying...