PostgreSQL error: could not connect to database template1: could not connect to server: No such file or directory

The error means that the Postgres server is not running. Try starting it: sudo systemctl start postgresql I believe the service name is postgresql, but if that doesn’t work, try typing sudo systemctl start postgres and pressing tab to auto-complete. Make sure that the server starts on boot: sudo systemctl enable postgresql


I have the same problem. This is what I found out so far: Are you also using Version 53.0.2785.143? Looks like it is important when the build happened: Looks like the best workaround is to upgrade to 54.x, wait for a patch or use another browser. Update: A new version of … Read more

Fatal Python error: init_fs_encoding: failed to get the Python codec of the filesystem encoding, when trying to start uwsgi

I see your PYTHONHOME is set to PYTHONHOME = ‘/home/env3/educ’. Try to check if it is really there. The solution for me was to remove the PYTHONHOME environment variable. For you, it can be just that, or setting that variable to another value. This worked on Windows, and would work on Linux for sure. If … Read more

MongoDB only works when run as root on Ubuntu – data directory issue

You created /data/db as root so it has those permissions. You can change the permissions to your user account, or whatever you have mongo running as. chown -R username /data/db or /data You can also set a group chown -R username.groupname The -R does it recursively, so it will affect all the files you’ve created … Read more

Linux custom executable globally available

Edit your .bashrc to add the desired directory on the PATH environmental variable. export PATH=/usr/local/google_app_engine/bin:$PATH then, either start new terminal or do, source ~/.bashrc Now try to run the script from anywhere. Another way you can do it without even touching the .bashrc would be to create a symlink by doing something like, sudo ln … Read more