Starting Postgresql causes /etc/sudoers: syntax error


#1

I cannot start postgresql.

The error message (bellow) points to a sudo problem.

Any suggestion on how to fix this?

João Gonçalves


sudo service postgresql start

/etc/sudoers: syntax error near line 1 <<<
/etc/sudoers: syntax error near line 2 <<<
/etc/sudoers: syntax error near line 3 <<<
/etc/sudoers: syntax error near line 4 <<<
/etc/sudoers: syntax error near line 5 <<<
/etc/sudoers: syntax error near line 5 <<<
/etc/sudoers: syntax error near line 6 <<<
/etc/sudoers: syntax error near line 7 <<<
/etc/sudoers: syntax error near line 8 <<<
/etc/sudoers: syntax error near line 8 <<<
/etc/sudoers: syntax error near line 9 <<<
/etc/sudoers: syntax error near line 10 <<<
/etc/sudoers: syntax error near line 11 <<<
/etc/sudoers: syntax error near line 11 <<<
/etc/sudoers: syntax error near line 11 <<<
/etc/sudoers: syntax error near line 12 <<<
/etc/sudoers: syntax error near line 12 <<<
/etc/sudoers: syntax error near line 12 <<<
/etc/sudoers: syntax error near line 13 <<<
/etc/sudoers: syntax error near line 14 <<<
/etc/sudoers: syntax error near line 15 <<<
/etc/sudoers: syntax error near line 16 <<<
/etc/sudoers: syntax error near line 17 <<<
/etc/sudoers: syntax error near line 18 <<<
/etc/sudoers: syntax error near line 18 <<<
/etc/sudoers: syntax error near line 18 <<<
/etc/sudoers: syntax error near line 18 <<<
/etc/sudoers: syntax error near line 18 <<<
/etc/sudoers: syntax error near line 18 <<<
/etc/sudoers: syntax error near line 19 <<<
/etc/sudoers: syntax error near line 20 <<<
/etc/sudoers: syntax error near line 20 <<<
/etc/sudoers: syntax error near line 21 <<<
/etc/sudoers: syntax error near line 22 <<<
/etc/sudoers: syntax error near line 23 <<<
/etc/sudoers: syntax error near line 24 <<<
/etc/sudoers: syntax error near line 25 <<<
/etc/sudoers: syntax error near line 26 <<<
/etc/sudoers: syntax error near line 27 <<<
/etc/sudoers: syntax error near line 27 <<<
/etc/sudoers: syntax error near line 28 <<<
/etc/sudoers: syntax error near line 29 <<<
/etc/sudoers: syntax error near line 30 <<<
/etc/sudoers: syntax error near line 31 <<<
/etc/sudoers: syntax error near line 32 <<<
/etc/sudoers: syntax error near line 33 <<<
/etc/sudoers: syntax error near line 34 <<<
/etc/sudoers: syntax error near line 35 <<<
/etc/sudoers: syntax error near line 36 <<<
/etc/sudoers: syntax error near line 37 <<<
/etc/sudoers: syntax error near line 38 <<<
/etc/sudoers: syntax error near line 39 <<<
/etc/sudoers: syntax error near line 40 <<<
/etc/sudoers: syntax error near line 41 <<<
/etc/sudoers: syntax error near line 42 <<<
/etc/sudoers: syntax error near line 43 <<<
sudo: parse error in /etc/sudoers near line 1
sudo: no valid sudoers sources found, quitting
sudo: unable to initialize policy plugin


#2

Please try Restarting Your Workspace and this may fix your sudoers file.


#3

I have try this and I get an error:

Error restarting workspace
Could not restart workspace
An error occurred restarting this workspace: Workspace restart failed

My workspace is

https://ide.c9.io/jsvalgonc/peer_to_peer_lending


#4

I just forced your workspace to restart. Can you try it one more time?


#5

Same problem. Same errors.

Sorry


#6

Ok, it didn’t even restart properly when I tried to force it. I just got it to actually restart now so give it one more shot :grimacing:


#7

You are the man.

Now its working fine!!!

Thank you.