2008 Audi A4 - Locks and ignition issue

locked the car with key fob took the key inside house, as leaving realized I need my umbrella, so unlocked the driver door with manual service key then locked it again with serviced key, upon my return I unlocked with fob key, put the key in the ignition and it seemed to not recognize the key on first 2 attempts the started on the 3rd moved the car 20 meters turned it off now has codes 01179 incorrect key programming 000. 02071 Local data base 057 Electric circuit failure intermittent and wont start. Had key checked told signal is good