SHARE
TWEET

Untitled

a guest Jun 18th, 2019 52 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. [Install]
  2. WantedBy=multi-user.target
  3.  
  4. [Unit]
  5. Description=Cloud SQL Proxy
  6. Requires=networking.service
  7. After=networking.service
  8.  
  9. [Service]
  10. Type=simple
  11. WorkingDirectory=/opt
  12. ExecStart=/opt/cloud_sql_proxy -instances=pupa=tcp:5432 -credential_file=/etc/pupa-240309-5336639b0c06.json
  13. Restart=always
  14. StandardOutput=journal
  15. User=root
  16.      
  17. Failed to start cloud-sql-proxy.service: Unit not found.
  18.      
  19. $ ll -al /etc/systemd/system/cloud-sql-proxy.service
  20. -rw-r--r--. 1 root root 327 May 22 10:56 /etc/systemd/system/cloud-sql-proxy.service
  21.  
  22. $ sudo systemctl list-unit-files
  23. ...
  24. cloud-sql-proxy.service                       enabled
  25. ...
  26.  
  27. $ systemctl status cloud-sql-proxy
  28. ● cloud-sql-proxy.service - Cloud SQL Proxy
  29.    Loaded: loaded (/etc/systemd/system/cloud-sql-proxy.service; enabled; vendor preset: disabled)
  30.    Active: failed (Result: resources) since Sun 2019-05-19 15:49:48 UTC; 3 days ago
  31.  Main PID: 1414 (code=exited, status=1/FAILURE)
  32.  
  33. May 19 15:49:48 instance-1 systemd[1]: cloud-sql-proxy.service: main process exited, code=exited, status=1/FAILURE
  34. May 19 15:49:48 instance-1 systemd[1]: Unit cloud-sql-proxy.service entered failed state.
  35. May 19 15:49:48 instance-1 systemd[1]: cloud-sql-proxy.service failed.
  36. May 19 15:49:48 instance-1 systemd[1]: cloud-sql-proxy.service holdoff time over, scheduling restart.
  37. May 19 15:49:48 instance-1 systemd[1]: cloud-sql-proxy.service failed to schedule restart job: Unit not found.
  38. May 19 15:49:48 instance-1 systemd[1]: Unit cloud-sql-proxy.service entered failed state.
  39. May 19 15:49:48 instance-1 systemd[1]: cloud-sql-proxy.service failed.
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top