kandi background
Explore Kits

server | ️ Nextcloud server , a safe home for all your data | Privacy library

 by   nextcloud PHP Version: v24.0.0beta1 License: Non-SPDX

 by   nextcloud PHP Version: v24.0.0beta1 License: Non-SPDX

Download this library from

kandi X-RAY | server Summary

server is a PHP library typically used in Security, Privacy applications. server has no bugs, it has no vulnerabilities and it has medium support. However server has a Non-SPDX License. You can download it from GitHub, GitLab.
☁️ Nextcloud server, a safe home for all your data
Support
Support
Quality
Quality
Security
Security
License
License
Reuse
Reuse

kandi-support Support

  • server has a medium active ecosystem.
  • It has 18911 star(s) with 3027 fork(s). There are 563 watchers for this library.
  • There were 6 major release(s) in the last 12 months.
  • There are 1835 open issues and 12014 have been closed. On average issues are closed in 217 days. There are 293 open pull requests and 0 closed requests.
  • It has a neutral sentiment in the developer community.
  • The latest version of server is v24.0.0beta1
server Support
Best in #Privacy
Average in #Privacy
server Support
Best in #Privacy
Average in #Privacy

quality kandi Quality

  • server has 0 bugs and 0 code smells.
server Quality
Best in #Privacy
Average in #Privacy
server Quality
Best in #Privacy
Average in #Privacy

securitySecurity

  • server has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.
  • server code analysis shows 0 unresolved vulnerabilities.
  • There are 0 security hotspots that need review.
server Security
Best in #Privacy
Average in #Privacy
server Security
Best in #Privacy
Average in #Privacy

license License

  • server has a Non-SPDX License.
  • Non-SPDX licenses can be open source with a non SPDX compliant license, or non open source licenses, and you need to review them closely before use.
server License
Best in #Privacy
Average in #Privacy
server License
Best in #Privacy
Average in #Privacy

buildReuse

  • server releases are available to install and integrate.
  • Installation instructions, examples and code snippets are available.
  • server saves you 759792 person hours of effort in developing the same functionality from scratch.
  • It has 392164 lines of code, 29203 functions and 6838 files.
  • It has medium code complexity. Code complexity directly impacts maintainability of the code.
server Reuse
Best in #Privacy
Average in #Privacy
server Reuse
Best in #Privacy
Average in #Privacy
Top functions reviewed by kandi - BETA

kandi has reviewed server and discovered the below as its top functions. This is intended to give you an instant insight into server implemented functionality, and help decide if they suit your requirements.

  • Returns an array of items for a given file type .
    • Edit user data .
      • Add index to share table
        • Show a share
          • Downloads an app .
            • Install the database .
              • Searches for a list of user properties .
                • Schedule an event .
                  • Called when a calendar is updated .
                    • General create method

                      Get all kandi verified functions for this library.

                      Get all kandi verified functions for this library.

                      server Key Features

                      ☁️ Nextcloud server, a safe home for all your data

                      Working with front-end code 🏗

                      copy iconCopydownload iconDownload
                      # install dependencies
                      make dev-setup
                      
                      # build for development
                      make build-js
                      
                      # build for development and watch edits
                      make watch-js
                      
                      # build for production with minification
                      make build-js-production
                      

                      Working with back-end code 🏗

                      copy iconCopydownload iconDownload
                      build/autoloaderchecker.sh
                      

                      Contribution guidelines 📜

                      copy iconCopydownload iconDownload
                      @copyright Copyright (c) <year>, <your name> (<your email address>)
                      

                      psql: error: connection to server on socket "/tmp/.s.PGSQL.5432" failed: No such file or directory

                      copy iconCopydownload iconDownload
                      sudo pg_dropcluster --stop 12 main
                      sudo pg_dropcluster --stop 14 main
                      sudo apt remove postgresql-14
                      sudo apt purge postgresql*
                      sudo apt install postgresql-14
                      
                      $ pg_lsclusters
                      Ver Cluster Port Status Owner    Data directory              Log file
                      14  main    5432 online postgres /var/lib/postgresql/14/main /var/log/postgresql/postgresql-14-main.log
                      
                      $ sudo su postgres -c "psql"
                      psql: error: connection to server on socket "/var/run/postgresql/.s.PGSQL.5432" failed: No such file or directory
                              Is the server running locally and accepting connections on that socket?
                      
                      $ ls -lah /var/run/postgresql/
                      total 8.0K
                      drwxrwsr-x  4 postgres postgres  160 Oct 29 16:40 .
                      drwxr-xr-x 36 root     root     1.1K Oct 29 14:08 ..
                      drwxr-s---  2 postgres postgres   40 Oct 29 14:33 12-main.pg_stat_tmp
                      drwxr-s---  2 postgres postgres  120 Oct 29 16:59 14-main.pg_stat_tmp
                      -rw-r--r--  1 postgres postgres    6 Oct 29 16:36 14-main.pid
                      srwxrwxrwx  1 postgres postgres    0 Oct 29 16:36 .s.PGSQL.5433
                      -rw-------  1 postgres postgres   70 Oct 29 16:36 .s.PGSQL.5433.lock
                      
                      $ pg_lsclusters
                      Ver Cluster Port Status                Owner    Data directory              Log file
                      12  main    5432 down,binaries_missing postgres /var/lib/postgresql/12/main /var/log/postgresql/postgresql-12-main.log
                      14  main    5433 online                postgres /var/lib/postgresql/14/main /var/log/postgresql/postgresql-14-main.log
                      
                      $ sudo su postgres -c "psql --port=5433"
                      psql (14.0 (Ubuntu 14.0-1.pgdg21.04+1))
                      Type "help" for help.
                      
                      postgres=#
                      
                      port = 5432
                      
                      $ tail /var/log/postgresql/postgresql-14-main.log
                      ...
                      2021-10-29 16:36:12.195 UTC [25236] LOG:  listening on IPv4 address "127.0.0.1", port 5433
                      2021-10-29 16:36:12.198 UTC [25236] LOG:  listening on Unix socket "/var/run/postgresql/.s.PGSQL.5433"
                      2021-10-29 16:36:12.204 UTC [25237] LOG:  database system was shut down at 2021-10-29 16:36:12 UTC
                      2021-10-29 16:36:12.210 UTC [25236] LOG:  database system is ready to accept connections
                      
                      ln -s /var/run/postgresql/.s.PGSQL.5433 /var/run/postgresql/.s.PGSQL.5432
                      
                      $ ls -lah /var/run/postgresql/
                      total 8.0K
                      drwxrwsr-x  4 postgres postgres  160 Oct 29 16:40 .
                      drwxr-xr-x 36 root     root     1.1K Oct 29 14:08 ..
                      drwxr-s---  2 postgres postgres   40 Oct 29 14:33 12-main.pg_stat_tmp
                      drwxr-s---  2 postgres postgres  120 Oct 29 16:59 14-main.pg_stat_tmp
                      -rw-r--r--  1 postgres postgres    6 Oct 29 16:36 14-main.pid
                      lrwxrwxrwx  1 postgres postgres   33 Oct 29 16:40 .s.PGSQL.5432 -> /var/run/postgresql/.s.PGSQL.5433
                      srwxrwxrwx  1 postgres postgres    0 Oct 29 16:36 .s.PGSQL.5433
                      -rw-------  1 postgres postgres   70 Oct 29 16:36 .s.PGSQL.5433.lock
                      
                      sudo pg_dropcluster --stop 12 main
                      sudo pg_dropcluster --stop 14 main
                      sudo apt remove postgresql-14
                      sudo apt purge postgresql*
                      sudo apt install postgresql-14
                      
                      $ pg_lsclusters
                      Ver Cluster Port Status Owner    Data directory              Log file
                      14  main    5432 online postgres /var/lib/postgresql/14/main /var/log/postgresql/postgresql-14-main.log
                      
                      $ sudo su postgres -c "psql"
                      psql: error: connection to server on socket "/var/run/postgresql/.s.PGSQL.5432" failed: No such file or directory
                              Is the server running locally and accepting connections on that socket?
                      
                      $ ls -lah /var/run/postgresql/
                      total 8.0K
                      drwxrwsr-x  4 postgres postgres  160 Oct 29 16:40 .
                      drwxr-xr-x 36 root     root     1.1K Oct 29 14:08 ..
                      drwxr-s---  2 postgres postgres   40 Oct 29 14:33 12-main.pg_stat_tmp
                      drwxr-s---  2 postgres postgres  120 Oct 29 16:59 14-main.pg_stat_tmp
                      -rw-r--r--  1 postgres postgres    6 Oct 29 16:36 14-main.pid
                      srwxrwxrwx  1 postgres postgres    0 Oct 29 16:36 .s.PGSQL.5433
                      -rw-------  1 postgres postgres   70 Oct 29 16:36 .s.PGSQL.5433.lock
                      
                      $ pg_lsclusters
                      Ver Cluster Port Status                Owner    Data directory              Log file
                      12  main    5432 down,binaries_missing postgres /var/lib/postgresql/12/main /var/log/postgresql/postgresql-12-main.log
                      14  main    5433 online                postgres /var/lib/postgresql/14/main /var/log/postgresql/postgresql-14-main.log
                      
                      $ sudo su postgres -c "psql --port=5433"
                      psql (14.0 (Ubuntu 14.0-1.pgdg21.04+1))
                      Type "help" for help.
                      
                      postgres=#
                      
                      port = 5432
                      
                      $ tail /var/log/postgresql/postgresql-14-main.log
                      ...
                      2021-10-29 16:36:12.195 UTC [25236] LOG:  listening on IPv4 address "127.0.0.1", port 5433
                      2021-10-29 16:36:12.198 UTC [25236] LOG:  listening on Unix socket "/var/run/postgresql/.s.PGSQL.5433"
                      2021-10-29 16:36:12.204 UTC [25237] LOG:  database system was shut down at 2021-10-29 16:36:12 UTC
                      2021-10-29 16:36:12.210 UTC [25236] LOG:  database system is ready to accept connections
                      
                      ln -s /var/run/postgresql/.s.PGSQL.5433 /var/run/postgresql/.s.PGSQL.5432
                      
                      $ ls -lah /var/run/postgresql/
                      total 8.0K
                      drwxrwsr-x  4 postgres postgres  160 Oct 29 16:40 .
                      drwxr-xr-x 36 root     root     1.1K Oct 29 14:08 ..
                      drwxr-s---  2 postgres postgres   40 Oct 29 14:33 12-main.pg_stat_tmp
                      drwxr-s---  2 postgres postgres  120 Oct 29 16:59 14-main.pg_stat_tmp
                      -rw-r--r--  1 postgres postgres    6 Oct 29 16:36 14-main.pid
                      lrwxrwxrwx  1 postgres postgres   33 Oct 29 16:40 .s.PGSQL.5432 -> /var/run/postgresql/.s.PGSQL.5433
                      srwxrwxrwx  1 postgres postgres    0 Oct 29 16:36 .s.PGSQL.5433
                      -rw-------  1 postgres postgres   70 Oct 29 16:36 .s.PGSQL.5433.lock
                      
                      sudo pg_dropcluster --stop 12 main
                      sudo pg_dropcluster --stop 14 main
                      sudo apt remove postgresql-14
                      sudo apt purge postgresql*
                      sudo apt install postgresql-14
                      
                      $ pg_lsclusters
                      Ver Cluster Port Status Owner    Data directory              Log file
                      14  main    5432 online postgres /var/lib/postgresql/14/main /var/log/postgresql/postgresql-14-main.log
                      
                      $ sudo su postgres -c "psql"
                      psql: error: connection to server on socket "/var/run/postgresql/.s.PGSQL.5432" failed: No such file or directory
                              Is the server running locally and accepting connections on that socket?
                      
                      $ ls -lah /var/run/postgresql/
                      total 8.0K
                      drwxrwsr-x  4 postgres postgres  160 Oct 29 16:40 .
                      drwxr-xr-x 36 root     root     1.1K Oct 29 14:08 ..
                      drwxr-s---  2 postgres postgres   40 Oct 29 14:33 12-main.pg_stat_tmp
                      drwxr-s---  2 postgres postgres  120 Oct 29 16:59 14-main.pg_stat_tmp
                      -rw-r--r--  1 postgres postgres    6 Oct 29 16:36 14-main.pid
                      srwxrwxrwx  1 postgres postgres    0 Oct 29 16:36 .s.PGSQL.5433
                      -rw-------  1 postgres postgres   70 Oct 29 16:36 .s.PGSQL.5433.lock
                      
                      $ pg_lsclusters
                      Ver Cluster Port Status                Owner    Data directory              Log file
                      12  main    5432 down,binaries_missing postgres /var/lib/postgresql/12/main /var/log/postgresql/postgresql-12-main.log
                      14  main    5433 online                postgres /var/lib/postgresql/14/main /var/log/postgresql/postgresql-14-main.log
                      
                      $ sudo su postgres -c "psql --port=5433"
                      psql (14.0 (Ubuntu 14.0-1.pgdg21.04+1))
                      Type "help" for help.
                      
                      postgres=#
                      
                      port = 5432
                      
                      $ tail /var/log/postgresql/postgresql-14-main.log
                      ...
                      2021-10-29 16:36:12.195 UTC [25236] LOG:  listening on IPv4 address "127.0.0.1", port 5433
                      2021-10-29 16:36:12.198 UTC [25236] LOG:  listening on Unix socket "/var/run/postgresql/.s.PGSQL.5433"
                      2021-10-29 16:36:12.204 UTC [25237] LOG:  database system was shut down at 2021-10-29 16:36:12 UTC
                      2021-10-29 16:36:12.210 UTC [25236] LOG:  database system is ready to accept connections
                      
                      ln -s /var/run/postgresql/.s.PGSQL.5433 /var/run/postgresql/.s.PGSQL.5432
                      
                      $ ls -lah /var/run/postgresql/
                      total 8.0K
                      drwxrwsr-x  4 postgres postgres  160 Oct 29 16:40 .
                      drwxr-xr-x 36 root     root     1.1K Oct 29 14:08 ..
                      drwxr-s---  2 postgres postgres   40 Oct 29 14:33 12-main.pg_stat_tmp
                      drwxr-s---  2 postgres postgres  120 Oct 29 16:59 14-main.pg_stat_tmp
                      -rw-r--r--  1 postgres postgres    6 Oct 29 16:36 14-main.pid
                      lrwxrwxrwx  1 postgres postgres   33 Oct 29 16:40 .s.PGSQL.5432 -> /var/run/postgresql/.s.PGSQL.5433
                      srwxrwxrwx  1 postgres postgres    0 Oct 29 16:36 .s.PGSQL.5433
                      -rw-------  1 postgres postgres   70 Oct 29 16:36 .s.PGSQL.5433.lock
                      
                      sudo pg_dropcluster --stop 12 main
                      sudo pg_dropcluster --stop 14 main
                      sudo apt remove postgresql-14
                      sudo apt purge postgresql*
                      sudo apt install postgresql-14
                      
                      $ pg_lsclusters
                      Ver Cluster Port Status Owner    Data directory              Log file
                      14  main    5432 online postgres /var/lib/postgresql/14/main /var/log/postgresql/postgresql-14-main.log
                      
                      $ sudo su postgres -c "psql"
                      psql: error: connection to server on socket "/var/run/postgresql/.s.PGSQL.5432" failed: No such file or directory
                              Is the server running locally and accepting connections on that socket?
                      
                      $ ls -lah /var/run/postgresql/
                      total 8.0K
                      drwxrwsr-x  4 postgres postgres  160 Oct 29 16:40 .
                      drwxr-xr-x 36 root     root     1.1K Oct 29 14:08 ..
                      drwxr-s---  2 postgres postgres   40 Oct 29 14:33 12-main.pg_stat_tmp
                      drwxr-s---  2 postgres postgres  120 Oct 29 16:59 14-main.pg_stat_tmp
                      -rw-r--r--  1 postgres postgres    6 Oct 29 16:36 14-main.pid
                      srwxrwxrwx  1 postgres postgres    0 Oct 29 16:36 .s.PGSQL.5433
                      -rw-------  1 postgres postgres   70 Oct 29 16:36 .s.PGSQL.5433.lock
                      
                      $ pg_lsclusters
                      Ver Cluster Port Status                Owner    Data directory              Log file
                      12  main    5432 down,binaries_missing postgres /var/lib/postgresql/12/main /var/log/postgresql/postgresql-12-main.log
                      14  main    5433 online                postgres /var/lib/postgresql/14/main /var/log/postgresql/postgresql-14-main.log
                      
                      $ sudo su postgres -c "psql --port=5433"
                      psql (14.0 (Ubuntu 14.0-1.pgdg21.04+1))
                      Type "help" for help.
                      
                      postgres=#
                      
                      port = 5432
                      
                      $ tail /var/log/postgresql/postgresql-14-main.log
                      ...
                      2021-10-29 16:36:12.195 UTC [25236] LOG:  listening on IPv4 address "127.0.0.1", port 5433
                      2021-10-29 16:36:12.198 UTC [25236] LOG:  listening on Unix socket "/var/run/postgresql/.s.PGSQL.5433"
                      2021-10-29 16:36:12.204 UTC [25237] LOG:  database system was shut down at 2021-10-29 16:36:12 UTC
                      2021-10-29 16:36:12.210 UTC [25236] LOG:  database system is ready to accept connections
                      
                      ln -s /var/run/postgresql/.s.PGSQL.5433 /var/run/postgresql/.s.PGSQL.5432
                      
                      $ ls -lah /var/run/postgresql/
                      total 8.0K
                      drwxrwsr-x  4 postgres postgres  160 Oct 29 16:40 .
                      drwxr-xr-x 36 root     root     1.1K Oct 29 14:08 ..
                      drwxr-s---  2 postgres postgres   40 Oct 29 14:33 12-main.pg_stat_tmp
                      drwxr-s---  2 postgres postgres  120 Oct 29 16:59 14-main.pg_stat_tmp
                      -rw-r--r--  1 postgres postgres    6 Oct 29 16:36 14-main.pid
                      lrwxrwxrwx  1 postgres postgres   33 Oct 29 16:40 .s.PGSQL.5432 -> /var/run/postgresql/.s.PGSQL.5433
                      srwxrwxrwx  1 postgres postgres    0 Oct 29 16:36 .s.PGSQL.5433
                      -rw-------  1 postgres postgres   70 Oct 29 16:36 .s.PGSQL.5433.lock
                      
                      sudo pg_dropcluster --stop 12 main
                      sudo pg_dropcluster --stop 14 main
                      sudo apt remove postgresql-14
                      sudo apt purge postgresql*
                      sudo apt install postgresql-14
                      
                      $ pg_lsclusters
                      Ver Cluster Port Status Owner    Data directory              Log file
                      14  main    5432 online postgres /var/lib/postgresql/14/main /var/log/postgresql/postgresql-14-main.log
                      
                      $ sudo su postgres -c "psql"
                      psql: error: connection to server on socket "/var/run/postgresql/.s.PGSQL.5432" failed: No such file or directory
                              Is the server running locally and accepting connections on that socket?
                      
                      $ ls -lah /var/run/postgresql/
                      total 8.0K
                      drwxrwsr-x  4 postgres postgres  160 Oct 29 16:40 .
                      drwxr-xr-x 36 root     root     1.1K Oct 29 14:08 ..
                      drwxr-s---  2 postgres postgres   40 Oct 29 14:33 12-main.pg_stat_tmp
                      drwxr-s---  2 postgres postgres  120 Oct 29 16:59 14-main.pg_stat_tmp
                      -rw-r--r--  1 postgres postgres    6 Oct 29 16:36 14-main.pid
                      srwxrwxrwx  1 postgres postgres    0 Oct 29 16:36 .s.PGSQL.5433
                      -rw-------  1 postgres postgres   70 Oct 29 16:36 .s.PGSQL.5433.lock
                      
                      $ pg_lsclusters
                      Ver Cluster Port Status                Owner    Data directory              Log file
                      12  main    5432 down,binaries_missing postgres /var/lib/postgresql/12/main /var/log/postgresql/postgresql-12-main.log
                      14  main    5433 online                postgres /var/lib/postgresql/14/main /var/log/postgresql/postgresql-14-main.log
                      
                      $ sudo su postgres -c "psql --port=5433"
                      psql (14.0 (Ubuntu 14.0-1.pgdg21.04+1))
                      Type "help" for help.
                      
                      postgres=#
                      
                      port = 5432
                      
                      $ tail /var/log/postgresql/postgresql-14-main.log
                      ...
                      2021-10-29 16:36:12.195 UTC [25236] LOG:  listening on IPv4 address "127.0.0.1", port 5433
                      2021-10-29 16:36:12.198 UTC [25236] LOG:  listening on Unix socket "/var/run/postgresql/.s.PGSQL.5433"
                      2021-10-29 16:36:12.204 UTC [25237] LOG:  database system was shut down at 2021-10-29 16:36:12 UTC
                      2021-10-29 16:36:12.210 UTC [25236] LOG:  database system is ready to accept connections
                      
                      ln -s /var/run/postgresql/.s.PGSQL.5433 /var/run/postgresql/.s.PGSQL.5432
                      
                      $ ls -lah /var/run/postgresql/
                      total 8.0K
                      drwxrwsr-x  4 postgres postgres  160 Oct 29 16:40 .
                      drwxr-xr-x 36 root     root     1.1K Oct 29 14:08 ..
                      drwxr-s---  2 postgres postgres   40 Oct 29 14:33 12-main.pg_stat_tmp
                      drwxr-s---  2 postgres postgres  120 Oct 29 16:59 14-main.pg_stat_tmp
                      -rw-r--r--  1 postgres postgres    6 Oct 29 16:36 14-main.pid
                      lrwxrwxrwx  1 postgres postgres   33 Oct 29 16:40 .s.PGSQL.5432 -> /var/run/postgresql/.s.PGSQL.5433
                      srwxrwxrwx  1 postgres postgres    0 Oct 29 16:36 .s.PGSQL.5433
                      -rw-------  1 postgres postgres   70 Oct 29 16:36 .s.PGSQL.5433.lock
                      
                      sudo pg_dropcluster --stop 12 main
                      sudo pg_dropcluster --stop 14 main
                      sudo apt remove postgresql-14
                      sudo apt purge postgresql*
                      sudo apt install postgresql-14
                      
                      $ pg_lsclusters
                      Ver Cluster Port Status Owner    Data directory              Log file
                      14  main    5432 online postgres /var/lib/postgresql/14/main /var/log/postgresql/postgresql-14-main.log
                      
                      $ sudo su postgres -c "psql"
                      psql: error: connection to server on socket "/var/run/postgresql/.s.PGSQL.5432" failed: No such file or directory
                              Is the server running locally and accepting connections on that socket?
                      
                      $ ls -lah /var/run/postgresql/
                      total 8.0K
                      drwxrwsr-x  4 postgres postgres  160 Oct 29 16:40 .
                      drwxr-xr-x 36 root     root     1.1K Oct 29 14:08 ..
                      drwxr-s---  2 postgres postgres   40 Oct 29 14:33 12-main.pg_stat_tmp
                      drwxr-s---  2 postgres postgres  120 Oct 29 16:59 14-main.pg_stat_tmp
                      -rw-r--r--  1 postgres postgres    6 Oct 29 16:36 14-main.pid
                      srwxrwxrwx  1 postgres postgres    0 Oct 29 16:36 .s.PGSQL.5433
                      -rw-------  1 postgres postgres   70 Oct 29 16:36 .s.PGSQL.5433.lock
                      
                      $ pg_lsclusters
                      Ver Cluster Port Status                Owner    Data directory              Log file
                      12  main    5432 down,binaries_missing postgres /var/lib/postgresql/12/main /var/log/postgresql/postgresql-12-main.log
                      14  main    5433 online                postgres /var/lib/postgresql/14/main /var/log/postgresql/postgresql-14-main.log
                      
                      $ sudo su postgres -c "psql --port=5433"
                      psql (14.0 (Ubuntu 14.0-1.pgdg21.04+1))
                      Type "help" for help.
                      
                      postgres=#
                      
                      port = 5432
                      
                      $ tail /var/log/postgresql/postgresql-14-main.log
                      ...
                      2021-10-29 16:36:12.195 UTC [25236] LOG:  listening on IPv4 address "127.0.0.1", port 5433
                      2021-10-29 16:36:12.198 UTC [25236] LOG:  listening on Unix socket "/var/run/postgresql/.s.PGSQL.5433"
                      2021-10-29 16:36:12.204 UTC [25237] LOG:  database system was shut down at 2021-10-29 16:36:12 UTC
                      2021-10-29 16:36:12.210 UTC [25236] LOG:  database system is ready to accept connections
                      
                      ln -s /var/run/postgresql/.s.PGSQL.5433 /var/run/postgresql/.s.PGSQL.5432
                      
                      $ ls -lah /var/run/postgresql/
                      total 8.0K
                      drwxrwsr-x  4 postgres postgres  160 Oct 29 16:40 .
                      drwxr-xr-x 36 root     root     1.1K Oct 29 14:08 ..
                      drwxr-s---  2 postgres postgres   40 Oct 29 14:33 12-main.pg_stat_tmp
                      drwxr-s---  2 postgres postgres  120 Oct 29 16:59 14-main.pg_stat_tmp
                      -rw-r--r--  1 postgres postgres    6 Oct 29 16:36 14-main.pid
                      lrwxrwxrwx  1 postgres postgres   33 Oct 29 16:40 .s.PGSQL.5432 -> /var/run/postgresql/.s.PGSQL.5433
                      srwxrwxrwx  1 postgres postgres    0 Oct 29 16:36 .s.PGSQL.5433
                      -rw-------  1 postgres postgres   70 Oct 29 16:36 .s.PGSQL.5433.lock
                      
                      sudo pg_dropcluster --stop 12 main
                      sudo pg_dropcluster --stop 14 main
                      sudo apt remove postgresql-14
                      sudo apt purge postgresql*
                      sudo apt install postgresql-14
                      
                      $ pg_lsclusters
                      Ver Cluster Port Status Owner    Data directory              Log file
                      14  main    5432 online postgres /var/lib/postgresql/14/main /var/log/postgresql/postgresql-14-main.log
                      
                      $ sudo su postgres -c "psql"
                      psql: error: connection to server on socket "/var/run/postgresql/.s.PGSQL.5432" failed: No such file or directory
                              Is the server running locally and accepting connections on that socket?
                      
                      $ ls -lah /var/run/postgresql/
                      total 8.0K
                      drwxrwsr-x  4 postgres postgres  160 Oct 29 16:40 .
                      drwxr-xr-x 36 root     root     1.1K Oct 29 14:08 ..
                      drwxr-s---  2 postgres postgres   40 Oct 29 14:33 12-main.pg_stat_tmp
                      drwxr-s---  2 postgres postgres  120 Oct 29 16:59 14-main.pg_stat_tmp
                      -rw-r--r--  1 postgres postgres    6 Oct 29 16:36 14-main.pid
                      srwxrwxrwx  1 postgres postgres    0 Oct 29 16:36 .s.PGSQL.5433
                      -rw-------  1 postgres postgres   70 Oct 29 16:36 .s.PGSQL.5433.lock
                      
                      $ pg_lsclusters
                      Ver Cluster Port Status                Owner    Data directory              Log file
                      12  main    5432 down,binaries_missing postgres /var/lib/postgresql/12/main /var/log/postgresql/postgresql-12-main.log
                      14  main    5433 online                postgres /var/lib/postgresql/14/main /var/log/postgresql/postgresql-14-main.log
                      
                      $ sudo su postgres -c "psql --port=5433"
                      psql (14.0 (Ubuntu 14.0-1.pgdg21.04+1))
                      Type "help" for help.
                      
                      postgres=#
                      
                      port = 5432
                      
                      $ tail /var/log/postgresql/postgresql-14-main.log
                      ...
                      2021-10-29 16:36:12.195 UTC [25236] LOG:  listening on IPv4 address "127.0.0.1", port 5433
                      2021-10-29 16:36:12.198 UTC [25236] LOG:  listening on Unix socket "/var/run/postgresql/.s.PGSQL.5433"
                      2021-10-29 16:36:12.204 UTC [25237] LOG:  database system was shut down at 2021-10-29 16:36:12 UTC
                      2021-10-29 16:36:12.210 UTC [25236] LOG:  database system is ready to accept connections
                      
                      ln -s /var/run/postgresql/.s.PGSQL.5433 /var/run/postgresql/.s.PGSQL.5432
                      
                      $ ls -lah /var/run/postgresql/
                      total 8.0K
                      drwxrwsr-x  4 postgres postgres  160 Oct 29 16:40 .
                      drwxr-xr-x 36 root     root     1.1K Oct 29 14:08 ..
                      drwxr-s---  2 postgres postgres   40 Oct 29 14:33 12-main.pg_stat_tmp
                      drwxr-s---  2 postgres postgres  120 Oct 29 16:59 14-main.pg_stat_tmp
                      -rw-r--r--  1 postgres postgres    6 Oct 29 16:36 14-main.pid
                      lrwxrwxrwx  1 postgres postgres   33 Oct 29 16:40 .s.PGSQL.5432 -> /var/run/postgresql/.s.PGSQL.5433
                      srwxrwxrwx  1 postgres postgres    0 Oct 29 16:36 .s.PGSQL.5433
                      -rw-------  1 postgres postgres   70 Oct 29 16:36 .s.PGSQL.5433.lock
                      
                      sudo pg_dropcluster --stop 12 main
                      sudo pg_dropcluster --stop 14 main
                      sudo apt remove postgresql-14
                      sudo apt purge postgresql*
                      sudo apt install postgresql-14
                      
                      $ pg_lsclusters
                      Ver Cluster Port Status Owner    Data directory              Log file
                      14  main    5432 online postgres /var/lib/postgresql/14/main /var/log/postgresql/postgresql-14-main.log
                      
                      $ sudo su postgres -c "psql"
                      psql: error: connection to server on socket "/var/run/postgresql/.s.PGSQL.5432" failed: No such file or directory
                              Is the server running locally and accepting connections on that socket?
                      
                      $ ls -lah /var/run/postgresql/
                      total 8.0K
                      drwxrwsr-x  4 postgres postgres  160 Oct 29 16:40 .
                      drwxr-xr-x 36 root     root     1.1K Oct 29 14:08 ..
                      drwxr-s---  2 postgres postgres   40 Oct 29 14:33 12-main.pg_stat_tmp
                      drwxr-s---  2 postgres postgres  120 Oct 29 16:59 14-main.pg_stat_tmp
                      -rw-r--r--  1 postgres postgres    6 Oct 29 16:36 14-main.pid
                      srwxrwxrwx  1 postgres postgres    0 Oct 29 16:36 .s.PGSQL.5433
                      -rw-------  1 postgres postgres   70 Oct 29 16:36 .s.PGSQL.5433.lock
                      
                      $ pg_lsclusters
                      Ver Cluster Port Status                Owner    Data directory              Log file
                      12  main    5432 down,binaries_missing postgres /var/lib/postgresql/12/main /var/log/postgresql/postgresql-12-main.log
                      14  main    5433 online                postgres /var/lib/postgresql/14/main /var/log/postgresql/postgresql-14-main.log
                      
                      $ sudo su postgres -c "psql --port=5433"
                      psql (14.0 (Ubuntu 14.0-1.pgdg21.04+1))
                      Type "help" for help.
                      
                      postgres=#
                      
                      port = 5432
                      
                      $ tail /var/log/postgresql/postgresql-14-main.log
                      ...
                      2021-10-29 16:36:12.195 UTC [25236] LOG:  listening on IPv4 address "127.0.0.1", port 5433
                      2021-10-29 16:36:12.198 UTC [25236] LOG:  listening on Unix socket "/var/run/postgresql/.s.PGSQL.5433"
                      2021-10-29 16:36:12.204 UTC [25237] LOG:  database system was shut down at 2021-10-29 16:36:12 UTC
                      2021-10-29 16:36:12.210 UTC [25236] LOG:  database system is ready to accept connections
                      
                      ln -s /var/run/postgresql/.s.PGSQL.5433 /var/run/postgresql/.s.PGSQL.5432
                      
                      $ ls -lah /var/run/postgresql/
                      total 8.0K
                      drwxrwsr-x  4 postgres postgres  160 Oct 29 16:40 .
                      drwxr-xr-x 36 root     root     1.1K Oct 29 14:08 ..
                      drwxr-s---  2 postgres postgres   40 Oct 29 14:33 12-main.pg_stat_tmp
                      drwxr-s---  2 postgres postgres  120 Oct 29 16:59 14-main.pg_stat_tmp
                      -rw-r--r--  1 postgres postgres    6 Oct 29 16:36 14-main.pid
                      lrwxrwxrwx  1 postgres postgres   33 Oct 29 16:40 .s.PGSQL.5432 -> /var/run/postgresql/.s.PGSQL.5433
                      srwxrwxrwx  1 postgres postgres    0 Oct 29 16:36 .s.PGSQL.5433
                      -rw-------  1 postgres postgres   70 Oct 29 16:36 .s.PGSQL.5433.lock
                      
                      sudo pg_dropcluster --stop 12 main
                      sudo pg_dropcluster --stop 14 main
                      sudo apt remove postgresql-14
                      sudo apt purge postgresql*
                      sudo apt install postgresql-14
                      
                      $ pg_lsclusters
                      Ver Cluster Port Status Owner    Data directory              Log file
                      14  main    5432 online postgres /var/lib/postgresql/14/main /var/log/postgresql/postgresql-14-main.log
                      
                      $ sudo su postgres -c "psql"
                      psql: error: connection to server on socket "/var/run/postgresql/.s.PGSQL.5432" failed: No such file or directory
                              Is the server running locally and accepting connections on that socket?
                      
                      $ ls -lah /var/run/postgresql/
                      total 8.0K
                      drwxrwsr-x  4 postgres postgres  160 Oct 29 16:40 .
                      drwxr-xr-x 36 root     root     1.1K Oct 29 14:08 ..
                      drwxr-s---  2 postgres postgres   40 Oct 29 14:33 12-main.pg_stat_tmp
                      drwxr-s---  2 postgres postgres  120 Oct 29 16:59 14-main.pg_stat_tmp
                      -rw-r--r--  1 postgres postgres    6 Oct 29 16:36 14-main.pid
                      srwxrwxrwx  1 postgres postgres    0 Oct 29 16:36 .s.PGSQL.5433
                      -rw-------  1 postgres postgres   70 Oct 29 16:36 .s.PGSQL.5433.lock
                      
                      $ pg_lsclusters
                      Ver Cluster Port Status                Owner    Data directory              Log file
                      12  main    5432 down,binaries_missing postgres /var/lib/postgresql/12/main /var/log/postgresql/postgresql-12-main.log
                      14  main    5433 online                postgres /var/lib/postgresql/14/main /var/log/postgresql/postgresql-14-main.log
                      
                      $ sudo su postgres -c "psql --port=5433"
                      psql (14.0 (Ubuntu 14.0-1.pgdg21.04+1))
                      Type "help" for help.
                      
                      postgres=#
                      
                      port = 5432
                      
                      $ tail /var/log/postgresql/postgresql-14-main.log
                      ...
                      2021-10-29 16:36:12.195 UTC [25236] LOG:  listening on IPv4 address "127.0.0.1", port 5433
                      2021-10-29 16:36:12.198 UTC [25236] LOG:  listening on Unix socket "/var/run/postgresql/.s.PGSQL.5433"
                      2021-10-29 16:36:12.204 UTC [25237] LOG:  database system was shut down at 2021-10-29 16:36:12 UTC
                      2021-10-29 16:36:12.210 UTC [25236] LOG:  database system is ready to accept connections
                      
                      ln -s /var/run/postgresql/.s.PGSQL.5433 /var/run/postgresql/.s.PGSQL.5432
                      
                      $ ls -lah /var/run/postgresql/
                      total 8.0K
                      drwxrwsr-x  4 postgres postgres  160 Oct 29 16:40 .
                      drwxr-xr-x 36 root     root     1.1K Oct 29 14:08 ..
                      drwxr-s---  2 postgres postgres   40 Oct 29 14:33 12-main.pg_stat_tmp
                      drwxr-s---  2 postgres postgres  120 Oct 29 16:59 14-main.pg_stat_tmp
                      -rw-r--r--  1 postgres postgres    6 Oct 29 16:36 14-main.pid
                      lrwxrwxrwx  1 postgres postgres   33 Oct 29 16:40 .s.PGSQL.5432 -> /var/run/postgresql/.s.PGSQL.5433
                      srwxrwxrwx  1 postgres postgres    0 Oct 29 16:36 .s.PGSQL.5433
                      -rw-------  1 postgres postgres   70 Oct 29 16:36 .s.PGSQL.5433.lock
                      
                      sudo pg_dropcluster --stop 12 main
                      sudo pg_dropcluster --stop 14 main
                      sudo apt remove postgresql-14
                      sudo apt purge postgresql*
                      sudo apt install postgresql-14
                      
                      $ pg_lsclusters
                      Ver Cluster Port Status Owner    Data directory              Log file
                      14  main    5432 online postgres /var/lib/postgresql/14/main /var/log/postgresql/postgresql-14-main.log
                      
                      $ sudo su postgres -c "psql"
                      psql: error: connection to server on socket "/var/run/postgresql/.s.PGSQL.5432" failed: No such file or directory
                              Is the server running locally and accepting connections on that socket?
                      
                      $ ls -lah /var/run/postgresql/
                      total 8.0K
                      drwxrwsr-x  4 postgres postgres  160 Oct 29 16:40 .
                      drwxr-xr-x 36 root     root     1.1K Oct 29 14:08 ..
                      drwxr-s---  2 postgres postgres   40 Oct 29 14:33 12-main.pg_stat_tmp
                      drwxr-s---  2 postgres postgres  120 Oct 29 16:59 14-main.pg_stat_tmp
                      -rw-r--r--  1 postgres postgres    6 Oct 29 16:36 14-main.pid
                      srwxrwxrwx  1 postgres postgres    0 Oct 29 16:36 .s.PGSQL.5433
                      -rw-------  1 postgres postgres   70 Oct 29 16:36 .s.PGSQL.5433.lock
                      
                      $ pg_lsclusters
                      Ver Cluster Port Status                Owner    Data directory              Log file
                      12  main    5432 down,binaries_missing postgres /var/lib/postgresql/12/main /var/log/postgresql/postgresql-12-main.log
                      14  main    5433 online                postgres /var/lib/postgresql/14/main /var/log/postgresql/postgresql-14-main.log
                      
                      $ sudo su postgres -c "psql --port=5433"
                      psql (14.0 (Ubuntu 14.0-1.pgdg21.04+1))
                      Type "help" for help.
                      
                      postgres=#
                      
                      port = 5432
                      
                      $ tail /var/log/postgresql/postgresql-14-main.log
                      ...
                      2021-10-29 16:36:12.195 UTC [25236] LOG:  listening on IPv4 address "127.0.0.1", port 5433
                      2021-10-29 16:36:12.198 UTC [25236] LOG:  listening on Unix socket "/var/run/postgresql/.s.PGSQL.5433"
                      2021-10-29 16:36:12.204 UTC [25237] LOG:  database system was shut down at 2021-10-29 16:36:12 UTC
                      2021-10-29 16:36:12.210 UTC [25236] LOG:  database system is ready to accept connections
                      
                      ln -s /var/run/postgresql/.s.PGSQL.5433 /var/run/postgresql/.s.PGSQL.5432
                      
                      $ ls -lah /var/run/postgresql/
                      total 8.0K
                      drwxrwsr-x  4 postgres postgres  160 Oct 29 16:40 .
                      drwxr-xr-x 36 root     root     1.1K Oct 29 14:08 ..
                      drwxr-s---  2 postgres postgres   40 Oct 29 14:33 12-main.pg_stat_tmp
                      drwxr-s---  2 postgres postgres  120 Oct 29 16:59 14-main.pg_stat_tmp
                      -rw-r--r--  1 postgres postgres    6 Oct 29 16:36 14-main.pid
                      lrwxrwxrwx  1 postgres postgres   33 Oct 29 16:40 .s.PGSQL.5432 -> /var/run/postgresql/.s.PGSQL.5433
                      srwxrwxrwx  1 postgres postgres    0 Oct 29 16:36 .s.PGSQL.5433
                      -rw-------  1 postgres postgres   70 Oct 29 16:36 .s.PGSQL.5433.lock
                      
                      brew uninstall postgresql
                      brew install postgresql@13
                      brew services start postgresql@13
                      brew link postgresql@13 --force
                      
                      rm /opt/homebrew/var/postgres/postmaster.pid
                      brew services restart postgresql
                      
                      brew postgresql-upgrade-database
                      
                      brew install postgresql
                      brew postgresql-upgrade-database
                      
                      brew postgresql-upgrade-database
                      
                      brew install postgresql
                      brew postgresql-upgrade-database
                      

                      Error: require() of ES modules is not supported when importing node-fetch

                      copy iconCopydownload iconDownload
                      // mod.cjs
                      const fetch = (...args) => import('node-fetch').then(({default: fetch}) => fetch(...args));
                      
                      import { RequestInfo, RequestInit } from "node-fetch";
                      
                      const fetch = (url: RequestInfo, init?: RequestInit) =>  import("node-fetch").then(({ default: fetch }) => fetch(url, init));
                      
                      // mod.cjs
                      const fetch = (...args) => import('node-fetch').then(({default: fetch}) => fetch(...args));
                      
                      import { RequestInfo, RequestInit } from "node-fetch";
                      
                      const fetch = (url: RequestInfo, init?: RequestInit) =>  import("node-fetch").then(({ default: fetch }) => fetch(url, init));
                      
                      "use strict";
                      
                      let got;
                      let fetch;
                      
                      module.exports.load = async function() {
                          queueMicrotask(function() {
                              // any ESM-only module that needs to be loaded can be loaded here, just add import for each using specific structure of each
                              import("got").then(({default: Got}) => got = Got );
                              fetch = (...args) => import('node-fetch').then(({default: fetch}) => fetch(...args));
                          });
                      
                          while(
                              // check each module to see if it's been loaded here
                              !got || !got.get || !fetch || typeof fetch !== "function"
                               ) {
                              // waiting for modules to load
                              console.log("Waiting for ES-Only modules to load...");
                              await new Promise((resolve)=>setTimeout(resolve, 1000));
                          }
                          module.exports.got = got;
                          module.exports.fetch = fetch;
                          console.log("ES-Only modules finished loading!");
                      }
                      
                      "use strict";
                      
                      const esmModules = require("esm_modules"); // or whatever you called the intermiary module
                      async function doMyFetching(url, options) {
                         const fetch = esmModules.fetch;
                         const result = await fetch(url, options)
                      }
                      
                      "use strict";
                      
                      let got;
                      let fetch;
                      
                      module.exports.load = async function() {
                          queueMicrotask(function() {
                              // any ESM-only module that needs to be loaded can be loaded here, just add import for each using specific structure of each
                              import("got").then(({default: Got}) => got = Got );
                              fetch = (...args) => import('node-fetch').then(({default: fetch}) => fetch(...args));
                          });
                      
                          while(
                              // check each module to see if it's been loaded here
                              !got || !got.get || !fetch || typeof fetch !== "function"
                               ) {
                              // waiting for modules to load
                              console.log("Waiting for ES-Only modules to load...");
                              await new Promise((resolve)=>setTimeout(resolve, 1000));
                          }
                          module.exports.got = got;
                          module.exports.fetch = fetch;
                          console.log("ES-Only modules finished loading!");
                      }
                      
                      "use strict";
                      
                      const esmModules = require("esm_modules"); // or whatever you called the intermiary module
                      async function doMyFetching(url, options) {
                         const fetch = esmModules.fetch;
                         const result = await fetch(url, options)
                      }
                      
                      yarn add node-fetch@^2.6.6
                      
                      or
                      
                      npm install node-fetch@^2.6.6
                      
                      {
                        "compilerOptions": { "allowJs": true, "outDir": "./dist" },
                      }
                      
                      yarn add node-fetch@^2.6.6
                      
                      or
                      
                      npm install node-fetch@^2.6.6
                      
                      {
                        "compilerOptions": { "allowJs": true, "outDir": "./dist" },
                      }
                      
                      const _importDynamic = new Function('modulePath', 'return import(modulePath)');
                      
                      export const fetch = async function (...args: any) {
                          const {default: fetch} = await _importDynamic('node-fetch');
                          return fetch(...args);
                      }
                      

                      Could not GET 'play-services-location/maven-metadata.xml'. Received status code 502 from server: Bad Gateway

                      copy iconCopydownload iconDownload
                      Could not GET 'https://google.bintray.com/exoplayer/androidx/room/room-common/maven-metadata.xml'. Received status code 502 from server: Bad Gateway
                      
                      buildscript {
                      ext.kotlin_version = '1.3.72'
                      repositories {
                          google()
                          mavenCentral()
                          //jcenter()
                      }
                      allprojects {
                          repositories {
                              google()
                              mavenCentral()
                      
                            //  maven { url "https://kotlin.bintray.com/kotlinx/" }
                          }  
                      
                      implementation 'com.xxx.yyy:a.b.c' // not use +
                      
                      implementation 'com.xxx.yyy:a.b.+' // use +
                      
                      implementation 'com.xxx.yyy:a.b.c' // not use +
                      
                      implementation 'com.xxx.yyy:a.b.+' // use +
                      
                        location:
                          git:
                            url: git://github.com/dreambitio/flutterlocation.git
                            ref: release/3.2.4
                            path: location/
                      
                      distributionUrl=https://services.gradle.org/distributions/gradle-6.8.3-all.zip
                      
                      buildscript {
                          ext.kotlin_version = '1.3.50'
                          repositories {
                              google()
                              mavenCentral() // <- replaced jcenter()
                          }
                      
                      dependencies {
                          classpath 'com.android.tools.build:gradle:4.+' // <- updated this
                          classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
                          classpath 'com.google.gms:google-services:4.3.10'
                          classpath 'com.google.firebase:firebase-crashlytics-gradle:2.4.1'
                          }
                      
                      }
                      
                      allprojects {
                          repositories {
                              google()
                              mavenCentral() // <- replaced jcenter()
                          }
                      }
                      
                      distributionUrl=https\://services.gradle.org/distributions/gradle-6.7.1-all.zip // <- updated this
                      
                      buildscript {
                          ext.kotlin_version = '1.3.50'
                          repositories {
                              google()
                              mavenCentral() // <- replaced jcenter()
                          }
                      
                      dependencies {
                          classpath 'com.android.tools.build:gradle:4.+' // <- updated this
                          classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
                          classpath 'com.google.gms:google-services:4.3.10'
                          classpath 'com.google.firebase:firebase-crashlytics-gradle:2.4.1'
                          }
                      
                      }
                      
                      allprojects {
                          repositories {
                              google()
                              mavenCentral() // <- replaced jcenter()
                          }
                      }
                      
                      distributionUrl=https\://services.gradle.org/distributions/gradle-6.7.1-all.zip // <- updated this
                      
                      dependencies {
                      ...
                        constraints {
                          implementation('com.google.android.gms:play-services-location') {
                              version {
                                  strictly "16.0.0"
                              }
                              because 'location: 3.2.4 does not specify version & google.bintray.com answers 502 Bad Gateway'
                          }
                        }
                      }
                      
                         implementation 'com.google.android.gms:play-services-ads-identifier:18.0.1'
                      
                      api 'com.google.android.gms:play-services-location:16+'
                      
                      api 'com.google.android.gms:play-services-location:16.0.0'
                      
                      api 'com.google.android.gms:play-services-location:16+'
                      
                      api 'com.google.android.gms:play-services-location:16.0.0'
                      
                       buildscript {
                          ext.kotlin_version = '1.4.0' // or higher
                          repositories {
                              google()
                              mavenCentral()  // add this
                              maven {
                                  url 'https://maven.google.com'
                              }
                              // jcenter()  //remove or comment this
                          }
                      
                          dependencies {
                              classpath 'com.android.tools.build:gradle:4.1.0'  // or higher
                              classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
                          }
                      }
                      
                      allprojects {
                          repositories {
                              google()
                              mavenCentral()  // add this
                              maven {
                                  url 'https://maven.google.com'
                              }
                              // jcenter()  // remove or comment this
                          }
                      }
                      
                      rootProject.buildDir = '../build'
                      subprojects {
                          project.buildDir = "${rootProject.buildDir}/${project.name}"
                      }
                      subprojects {
                          project.evaluationDependsOn(':app')
                      }
                      
                      task clean(type: Delete) {
                          delete rootProject.buildDir
                      }
                      
                      #Fri Mar 23 08:50:38 IST 2022
                      distributionBase=GRADLE_USER_HOME
                      distributionPath=wrapper/dists
                      zipStoreBase=GRADLE_USER_HOME
                      zipStorePath=wrapper/dists
                      distributionUrl=https\://services.gradle.org/distributions/gradle-6.7-all.zip
                      
                      flutter upgrade
                      
                       buildscript {
                          ext.kotlin_version = '1.4.0' // or higher
                          repositories {
                              google()
                              mavenCentral()  // add this
                              maven {
                                  url 'https://maven.google.com'
                              }
                              // jcenter()  //remove or comment this
                          }
                      
                          dependencies {
                              classpath 'com.android.tools.build:gradle:4.1.0'  // or higher
                              classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
                          }
                      }
                      
                      allprojects {
                          repositories {
                              google()
                              mavenCentral()  // add this
                              maven {
                                  url 'https://maven.google.com'
                              }
                              // jcenter()  // remove or comment this
                          }
                      }
                      
                      rootProject.buildDir = '../build'
                      subprojects {
                          project.buildDir = "${rootProject.buildDir}/${project.name}"
                      }
                      subprojects {
                          project.evaluationDependsOn(':app')
                      }
                      
                      task clean(type: Delete) {
                          delete rootProject.buildDir
                      }
                      
                      #Fri Mar 23 08:50:38 IST 2022
                      distributionBase=GRADLE_USER_HOME
                      distributionPath=wrapper/dists
                      zipStoreBase=GRADLE_USER_HOME
                      zipStorePath=wrapper/dists
                      distributionUrl=https\://services.gradle.org/distributions/gradle-6.7-all.zip
                      
                      flutter upgrade
                      
                       buildscript {
                          ext.kotlin_version = '1.4.0' // or higher
                          repositories {
                              google()
                              mavenCentral()  // add this
                              maven {
                                  url 'https://maven.google.com'
                              }
                              // jcenter()  //remove or comment this
                          }
                      
                          dependencies {
                              classpath 'com.android.tools.build:gradle:4.1.0'  // or higher
                              classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
                          }
                      }
                      
                      allprojects {
                          repositories {
                              google()
                              mavenCentral()  // add this
                              maven {
                                  url 'https://maven.google.com'
                              }
                              // jcenter()  // remove or comment this
                          }
                      }
                      
                      rootProject.buildDir = '../build'
                      subprojects {
                          project.buildDir = "${rootProject.buildDir}/${project.name}"
                      }
                      subprojects {
                          project.evaluationDependsOn(':app')
                      }
                      
                      task clean(type: Delete) {
                          delete rootProject.buildDir
                      }
                      
                      #Fri Mar 23 08:50:38 IST 2022
                      distributionBase=GRADLE_USER_HOME
                      distributionPath=wrapper/dists
                      zipStoreBase=GRADLE_USER_HOME
                      zipStorePath=wrapper/dists
                      distributionUrl=https\://services.gradle.org/distributions/gradle-6.7-all.zip
                      
                      flutter upgrade
                      

                      The unauthenticated git protocol on port 9418 is no longer supported

                      copy iconCopydownload iconDownload
                          - name: Fix up git URLs
                            run: echo -e '[url "https://github.com/"]\n  insteadOf = "git://github.com/"' >> ~/.gitconfig
                      
                      git config --global url."https://github.com/".insteadOf git://github.com/
                      
                      git config --global url."git@github.com:".insteadOf git://github.com/
                      
                          - name: Fix up git URLs
                            run: echo -e '[url "https://github.com/"]\n  insteadOf = "git://github.com/"' >> ~/.gitconfig
                      
                      git config --global url."https://github.com/".insteadOf git://github.com/
                      
                      git config --global url."git@github.com:".insteadOf git://github.com/
                      
                          - name: Fix up git URLs
                            run: echo -e '[url "https://github.com/"]\n  insteadOf = "git://github.com/"' >> ~/.gitconfig
                      
                      git config --global url."https://github.com/".insteadOf git://github.com/
                      
                      git config --global url."git@github.com:".insteadOf git://github.com/
                      
                      git config --global url."https://".insteadOf git://
                      
                      [remote "upstream"]
                          url = git://github.com/curlconverter/curlconverter.git
                          fetch = +refs/heads/*:refs/remotes/upstream/*
                      
                      [remote "upstream"]
                          url = git@github.com:curlconverter/curlconverter.git
                          fetch = +refs/heads/*:refs/remotes/upstream/*
                      
                      [remote "upstream"]
                          url = git://github.com/curlconverter/curlconverter.git
                          fetch = +refs/heads/*:refs/remotes/upstream/*
                      
                      [remote "upstream"]
                          url = git@github.com:curlconverter/curlconverter.git
                          fetch = +refs/heads/*:refs/remotes/upstream/*
                      
                      git config --global url."https://github".insteadOf git://github
                      
                      Unhandled rejection Error: Command failed: /usr/bin/git submodule update -q --init --recursive
                      warning: templates not found /tmp/pacote-git-template-tmp/git-clone-a001527f
                      fatal: remote error:
                        The unauthenticated git protocol on port 9418 is no longer supported.
                      Please see https://github.blog/2021-09-01-improving-git-protocol-security-github/ for more information.
                      fatal: clone of 'git://github.com/jquery/sizzle.git' into submodule path '/root/.npm/_cacache/tmp/git-clone-19674e32/src/sizzle' failed
                      Failed to clone 'src/sizzle'. Retry scheduled
                      warning: templates not found /tmp/pacote-git-template-tmp/git-clone-a001527f
                      
                      git config --global url."https://github".insteadOf git://github
                      
                      Unhandled rejection Error: Command failed: /usr/bin/git submodule update -q --init --recursive
                      warning: templates not found /tmp/pacote-git-template-tmp/git-clone-a001527f
                      fatal: remote error:
                        The unauthenticated git protocol on port 9418 is no longer supported.
                      Please see https://github.blog/2021-09-01-improving-git-protocol-security-github/ for more information.
                      fatal: clone of 'git://github.com/jquery/sizzle.git' into submodule path '/root/.npm/_cacache/tmp/git-clone-19674e32/src/sizzle' failed
                      Failed to clone 'src/sizzle'. Retry scheduled
                      warning: templates not found /tmp/pacote-git-template-tmp/git-clone-a001527f
                      
                          insteadOf = ssh://
                      
                          insteadOf = git://
                      
                          insteadOf = ssh://
                      
                          insteadOf = git://
                      

                      CentOS through a VM - no URLs in mirrorlist

                      copy iconCopydownload iconDownload
                      sed -i 's/mirrorlist/#mirrorlist/g' /etc/yum.repos.d/CentOS-Linux-*
                      sed -i 's|#baseurl=http://mirror.centos.org|baseurl=http://vault.centos.org|g' /etc/yum.repos.d/CentOS-Linux-*
                      
                      sudo dnf install centos-release-stream -y
                      sudo dnf swap centos-{linux,stream}-repos -y
                      sudo dnf distro-sync -y
                      
                      sed -i 's/mirrorlist/#mirrorlist/g' /etc/yum.repos.d/CentOS-Linux-*
                      sed -i 's|#baseurl=http://mirror.centos.org|baseurl=http://vault.centos.org|g' /etc/yum.repos.d/CentOS-Linux-*
                      
                      sudo dnf install centos-release-stream -y
                      sudo dnf swap centos-{linux,stream}-repos -y
                      sudo dnf distro-sync -y
                      

                      Springboot 2.6.0 / Spring fox 3 - Failed to start bean 'documentationPluginsBootstrapper'

                      copy iconCopydownload iconDownload
                      @SpringBootApplication
                      @EnableSwagger2
                      public class Application {
                      
                      // build.gradle
                      implementation "org.springdoc:springdoc-openapi-ui:1.6.4"
                      
                      @SpringBootApplication
                      @OpenAPIDefinition
                      public class MyApplication {
                          public static void main(String[] args) {
                              SpringApplication.run(MyApplication.class, args);
                          }
                      }
                      
                      // build.gradle
                      implementation "org.springdoc:springdoc-openapi-ui:1.6.4"
                      
                      @SpringBootApplication
                      @OpenAPIDefinition
                      public class MyApplication {
                          public static void main(String[] args) {
                              SpringApplication.run(MyApplication.class, args);
                          }
                      }
                      
                      @Bean
                      public WebMvcEndpointHandlerMapping webEndpointServletHandlerMapping(WebEndpointsSupplier webEndpointsSupplier, ServletEndpointsSupplier servletEndpointsSupplier, ControllerEndpointsSupplier controllerEndpointsSupplier, EndpointMediaTypes endpointMediaTypes, CorsEndpointProperties corsProperties, WebEndpointProperties webEndpointProperties, Environment environment) {
                              List<ExposableEndpoint<?>> allEndpoints = new ArrayList();
                              Collection<ExposableWebEndpoint> webEndpoints = webEndpointsSupplier.getEndpoints();
                              allEndpoints.addAll(webEndpoints);
                              allEndpoints.addAll(servletEndpointsSupplier.getEndpoints());
                              allEndpoints.addAll(controllerEndpointsSupplier.getEndpoints());
                              String basePath = webEndpointProperties.getBasePath();
                              EndpointMapping endpointMapping = new EndpointMapping(basePath);
                              boolean shouldRegisterLinksMapping = this.shouldRegisterLinksMapping(webEndpointProperties, environment, basePath);
                              return new WebMvcEndpointHandlerMapping(endpointMapping, webEndpoints, endpointMediaTypes, corsProperties.toCorsConfiguration(), new EndpointLinksResolver(allEndpoints, basePath), shouldRegisterLinksMapping, null);
                          }
                      
                      
                      private boolean shouldRegisterLinksMapping(WebEndpointProperties webEndpointProperties, Environment environment, String basePath) {
                              return webEndpointProperties.getDiscovery().isEnabled() && (StringUtils.hasText(basePath) || ManagementPortType.get(environment).equals(ManagementPortType.DIFFERENT));
                          }
                      
                      @EnableSwagger2
                      @SpringBootApplication
                      @EnableSwagger2
                      public class Application {}
                      
                      @EnableWebMvc
                      @SpringBootApplication
                      public class MyApp {
                          public static void main(String[] args) {
                              SpringApplication.run(MyApp.class);
                          }
                      }
                      
                      @Bean
                          public WebMvcRequestHandlerProvider webMvcRequestHandlerProvider(Optional<ServletContext> servletContext, HandlerMethodResolver methodResolver, List<RequestMappingInfoHandlerMapping> handlerMappings) {
                              handlerMappings = handlerMappings.stream().filter(rh -> rh.getClass().getName().contains("RequestMapping")).toList();
                              return new WebMvcRequestHandlerProvider(servletContext, methodResolver, handlerMappings);
                          }
                      

                      throwError(error) is now deprecated, but there is no new Error(HttpErrorResponse)

                      copy iconCopydownload iconDownload
                          catchError((error) => {
                            this.authService.signOut();
                            return throwError(error);
                          }),
                      
                          catchError((error) => {
                            this.authService.signOut();
                            return throwError(() => error);
                          }),
                      
                        getProducts(): Observable<IProduct[]> {
                          return this.http.get<IProduct[]>(this.productUrl)
                            .pipe(
                              tap(data => console.log('All: ', JSON.stringify(data))),
                              catchError(this.handleError)
                            );
                        }
                      
                        private handleError(err: HttpErrorResponse): Observable<never> {
                          // just a test ... more could would go here
                          return throwError(() => err);
                        }
                      
                        ngOnInit(): void {
                          this.sub = this.productService.getProducts().subscribe({
                            next: products => {
                              this.products = products;
                              this.filteredProducts = this.products;
                            },
                            error: err => this.errorMessage = err.message
                          });
                        }
                      
                          catchError((error) => {
                            this.authService.signOut();
                            return throwError(error);
                          }),
                      
                          catchError((error) => {
                            this.authService.signOut();
                            return throwError(() => error);
                          }),
                      
                        getProducts(): Observable<IProduct[]> {
                          return this.http.get<IProduct[]>(this.productUrl)
                            .pipe(
                              tap(data => console.log('All: ', JSON.stringify(data))),
                              catchError(this.handleError)
                            );
                        }
                      
                        private handleError(err: HttpErrorResponse): Observable<never> {
                          // just a test ... more could would go here
                          return throwError(() => err);
                        }
                      
                        ngOnInit(): void {
                          this.sub = this.productService.getProducts().subscribe({
                            next: products => {
                              this.products = products;
                              this.filteredProducts = this.products;
                            },
                            error: err => this.errorMessage = err.message
                          });
                        }
                      
                          catchError((error) => {
                            this.authService.signOut();
                            return throwError(error);
                          }),
                      
                          catchError((error) => {
                            this.authService.signOut();
                            return throwError(() => error);
                          }),
                      
                        getProducts(): Observable<IProduct[]> {
                          return this.http.get<IProduct[]>(this.productUrl)
                            .pipe(
                              tap(data => console.log('All: ', JSON.stringify(data))),
                              catchError(this.handleError)
                            );
                        }
                      
                        private handleError(err: HttpErrorResponse): Observable<never> {
                          // just a test ... more could would go here
                          return throwError(() => err);
                        }
                      
                        ngOnInit(): void {
                          this.sub = this.productService.getProducts().subscribe({
                            next: products => {
                              this.products = products;
                              this.filteredProducts = this.products;
                            },
                            error: err => this.errorMessage = err.message
                          });
                        }
                      
                          catchError((error) => {
                            this.authService.signOut();
                            return throwError(error);
                          }),
                      
                          catchError((error) => {
                            this.authService.signOut();
                            return throwError(() => error);
                          }),
                      
                        getProducts(): Observable<IProduct[]> {
                          return this.http.get<IProduct[]>(this.productUrl)
                            .pipe(
                              tap(data => console.log('All: ', JSON.stringify(data))),
                              catchError(this.handleError)
                            );
                        }
                      
                        private handleError(err: HttpErrorResponse): Observable<never> {
                          // just a test ... more could would go here
                          return throwError(() => err);
                        }
                      
                        ngOnInit(): void {
                          this.sub = this.productService.getProducts().subscribe({
                            next: products => {
                              this.products = products;
                              this.filteredProducts = this.products;
                            },
                            error: err => this.errorMessage = err.message
                          });
                        }
                      
                      return new Error(message);
                      
                      return throwError(() => new Error(message));
                      
                      return new Error(message);
                      
                      return throwError(() => new Error(message));
                      

                      ESLint Definition for rule 'import/extensions' was not found

                      copy iconCopydownload iconDownload
                      "plugins": ["import"],
                      
                      "extends": ["plugin:import/recommended"]
                      
                      "plugins": ["import"],
                      
                      "extends": ["plugin:import/recommended"]
                      
                           "eslint": "^8.7.0",
                      +    "eslint-config-airbnb-base": "^15.0.0",
                           "eslint-config-airbnb-typescript": "^16.1.0",
                      +    "eslint-plugin-import": "^2.25.4",
                      
                         plugins: ["@typescript-eslint"],
                         extends: [
                      +    "airbnb-base",
                           "airbnb-typescript/base",
                      
                           "eslint": "^8.7.0",
                      +    "eslint-config-airbnb-base": "^15.0.0",
                           "eslint-config-airbnb-typescript": "^16.1.0",
                      +    "eslint-plugin-import": "^2.25.4",
                      
                         plugins: ["@typescript-eslint"],
                         extends: [
                      +    "airbnb-base",
                           "airbnb-typescript/base",
                      
                      {
                        "compilerOptions": {
                          "allowSyntheticDefaultImports": true,
                        }
                      }
                      

                      Log4j vulnerability - Is Log4j 1.2.17 vulnerable (was unable to find any JNDI code in source)?

                      copy iconCopydownload iconDownload
                      zip -d log4j-1.2.16.jar org/apache/log4j/net/JMSAppender.class
                      zip -d log4j-1.2.16.jar org/apache/log4j/net/SocketServer.class
                      
                      #!/bin/bash
                      
                      DIR=$1
                      APPLY=$2
                      
                      # Classes to be searched for/removed
                      CLASSES="org/apache/log4j/net/SimpleSocketServer.class
                      org/apache/log4j/net/SocketServer.class
                      org/apache/log4j/net/JMSAppender.class"
                      
                      
                      PROGNAME=`basename $0`
                      PROGPATH=`echo $0 | sed -e 's,[\\/][^\\/][^\\/]*$,,'`
                      
                      usage () {
                          echo >&2 Usage: ${PROGNAME} DIR [APPLY]
                          echo >&2        Where DIR is the starting directory for find
                          echo >&2        and   APPLY = "Y" - to perform purification
                          exit 1
                      }
                      
                      # Force upper case on Apply
                      APPLY=$(echo "${APPLY}" | tr '[:lower:]' '[:upper:]')
                      
                      # Default Apply to N
                      if [ "$APPLY" == "" ] ; then
                         APPLY="N"
                      fi
                      
                      # Check parameters
                      if [ "$DIR" == "" ] ; then
                         usage
                      fi
                      echo $APPLY | grep -q -i -e '^Y$' -e '^N$' || usage
                      
                      # Search for log4j jar files - for class file removal
                      FILES=$(find $DIR -name *log4j*jar)
                      for f in $FILES
                      do
                         echo "Checking Jar [$f]"
                      
                         for jf in $CLASSES
                         do
                            unzip -v $f | grep -e "$jf"
                            if [ "$APPLY" = "Y" ]
                            then
                               echo "Deleting $jf from $f"
                               zip -d $f $jf
                            fi
                         done
                      done
                      
                      # Search for Log4j properties files - for read-only setting
                      PFILES=$(find $DIR -name *log4j*properties)
                      for f in $PFILES
                      do
                         echo "Checking permissions [$f]"
                      
                         if [ "$APPLY" = "Y" ]
                         then
                            echo "Changing permissons on $f"
                            chmod 444 $f
                         fi
                      
                         ls -l $f
                      done
                      

                      jcenter.bintray.com is down Error: 502 Bad Gateway

                      copy iconCopydownload iconDownload
                      pluginManagement {
                          repositories {
                              mavenCentral()
                              gradlePluginPortal()
                          }
                      }
                      
                      apply<EnterpriseRepositoryPlugin>()
                      
                      class EnterpriseRepositoryPlugin : Plugin<Gradle> {
                          companion object {
                              const val ENTERPRISE_REPOSITORY_URL = "https://repo.gradle.org/gradle/repo"
                          }
                      
                          override fun apply(gradle: Gradle) {
                              gradle.allprojects {
                                  repositories {
                      
                                      all {
                                          if (this !is MavenArtifactRepository || url.toString().contains("jcenter")) {
                                              project.logger.lifecycle("Repository ${(this as? MavenArtifactRepository)?.url ?: name} removed.")
                                              remove(this)
                                          }
                                      }
                      
                                      // add the enterprise repository
                                      add(maven {
                                          name = "STANDARD_ENTERPRISE_REPO"
                                          url = uri(ENTERPRISE_REPOSITORY_URL)
                                      })
                                  }
                              }
                          }
                      }
                      
                      ./gradlew assembleRelease --init-script init.gradle.kts
                      
                      apply<EnterpriseRepositoryPlugin>()
                      
                      class EnterpriseRepositoryPlugin : Plugin<Gradle> {
                          companion object {
                              const val ENTERPRISE_REPOSITORY_URL = "https://repo.gradle.org/gradle/repo"
                          }
                      
                          override fun apply(gradle: Gradle) {
                              gradle.allprojects {
                                  repositories {
                      
                                      all {
                                          if (this !is MavenArtifactRepository || url.toString().contains("jcenter")) {
                                              project.logger.lifecycle("Repository ${(this as? MavenArtifactRepository)?.url ?: name} removed.")
                                              remove(this)
                                          }
                                      }
                      
                                      // add the enterprise repository
                                      add(maven {
                                          name = "STANDARD_ENTERPRISE_REPO"
                                          url = uri(ENTERPRISE_REPOSITORY_URL)
                                      })
                                  }
                              }
                          }
                      }
                      
                      ./gradlew assembleRelease --init-script init.gradle.kts
                      
                          // Top-level build file where you can add configuration options common to all sub-projects/modules.
                      buildscript {
                          repositories {
                              google()
                              mavenCentral() // New line
                              // jcenter()
                             // NOTE: Keep any other entries you may have had here
                          }
                          dependencies {
                              classpath "com.android.tools.build:gradle:4.1.2"
                              //... no changes here
                          }
                      }
                      allprojects {
                          repositories {
                              google()
                              mavenCentral() // New line
                              // jcenter()
                             // NOTE: Keep any other entries you may have had here
                          }
                      }
                      

                      Community Discussions

                      Trending Discussions on server
                      • psql: error: connection to server on socket &quot;/tmp/.s.PGSQL.5432&quot; failed: No such file or directory
                      • Error: require() of ES modules is not supported when importing node-fetch
                      • Could not GET 'play-services-location/maven-metadata.xml'. Received status code 502 from server: Bad Gateway
                      • The unauthenticated git protocol on port 9418 is no longer supported
                      • CentOS through a VM - no URLs in mirrorlist
                      • Java, Intellij IDEA problem Unrecognized option: --add-opens=jdk.compiler/com.sun.tools.javac.code=ALL-UNNAMED
                      • Springboot 2.6.0 / Spring fox 3 - Failed to start bean 'documentationPluginsBootstrapper'
                      • ESlint - Error: Must use import to load ES Module
                      • throwError(error) is now deprecated, but there is no new Error(HttpErrorResponse)
                      • How to open emulators in different windows at Android Studio (Bumblebee | 2021.1.1)?
                      Trending Discussions on server

                      QUESTION

                      psql: error: connection to server on socket &quot;/tmp/.s.PGSQL.5432&quot; failed: No such file or directory

                      Asked 2022-Apr-04 at 15:46

                      Not really sure what caused this but most likely exiting the terminal while my rails server which was connected to PostgreSQL database was closed (not a good practice I know but lesson learned!)

                      I've already tried the following:

                      1. Rebooting my machine (using MBA M1 2020)
                      2. Restarting PostgreSQL using homebrew brew services restart postgresql
                      3. Re-installing PostgreSQL using Homebrew
                      4. Updating PostgreSQL using Homebrew
                      5. I also tried following this link but when I run cd Library/Application\ Support/Postgres terminal tells me Postgres folder doesn't exist, so I'm kind of lost already. Although I have a feeling that deleting postmaster.pid would really fix my issue. Any help would be appreciated!

                      ANSWER

                      Answered 2022-Jan-13 at 15:19
                      Resetting PostgreSQL

                      My original answer only included the troubleshooting steps below, and a workaround. I now decided to properly fix it via brute force by removing all clusters and reinstalling, since I didn't have any data there to keep. It was something along these lines, on my Ubuntu 21.04 system:

                      sudo pg_dropcluster --stop 12 main
                      sudo pg_dropcluster --stop 14 main
                      sudo apt remove postgresql-14
                      sudo apt purge postgresql*
                      sudo apt install postgresql-14
                      

                      Now I have:

                      $ pg_lsclusters
                      Ver Cluster Port Status Owner    Data directory              Log file
                      14  main    5432 online postgres /var/lib/postgresql/14/main /var/log/postgresql/postgresql-14-main.log
                      

                      And sudo -u postgres psql works fine. The service was started automatically but it can be done manually with sudo systemctl start postgresql.

                      Incidentally, I can recommend the PostgreSQL docker image, which eliminates the need to bother with a local installation.

                      Troubleshooting

                      Although I cannot provide an answer to your specific problem, I thought I'd share my troubleshooting steps, hoping that it might be of some help. It seems that you are on Mac, whereas I am running Ubuntu 21.04, so expect things to be different.

                      This is a client connection problem, as noted by section 19.3.2 in the docs.

                      The directory in my error message is different:

                      $ sudo su postgres -c "psql"
                      psql: error: connection to server on socket "/var/run/postgresql/.s.PGSQL.5432" failed: No such file or directory
                              Is the server running locally and accepting connections on that socket?
                      

                      I checked what unix sockets I had in that directory:

                      $ ls -lah /var/run/postgresql/
                      total 8.0K
                      drwxrwsr-x  4 postgres postgres  160 Oct 29 16:40 .
                      drwxr-xr-x 36 root     root     1.1K Oct 29 14:08 ..
                      drwxr-s---  2 postgres postgres   40 Oct 29 14:33 12-main.pg_stat_tmp
                      drwxr-s---  2 postgres postgres  120 Oct 29 16:59 14-main.pg_stat_tmp
                      -rw-r--r--  1 postgres postgres    6 Oct 29 16:36 14-main.pid
                      srwxrwxrwx  1 postgres postgres    0 Oct 29 16:36 .s.PGSQL.5433
                      -rw-------  1 postgres postgres   70 Oct 29 16:36 .s.PGSQL.5433.lock
                      

                      Makes sense, there is a socket for 5433 not 5432. I confirmed this by running:

                      $ pg_lsclusters
                      Ver Cluster Port Status                Owner    Data directory              Log file
                      12  main    5432 down,binaries_missing postgres /var/lib/postgresql/12/main /var/log/postgresql/postgresql-12-main.log
                      14  main    5433 online                postgres /var/lib/postgresql/14/main /var/log/postgresql/postgresql-14-main.log
                      

                      This explains how it got into this mess on my system. The default port is 5432, but after I upgraded from version 12 to 14, the server was setup to listen to 5433, presumably because it considered 5432 as already taken. Two alternatives here, get the server to listen on 5432 which is the client's default, or get the client to use 5433.

                      Let's try it by changing the client's parameters:

                      $ sudo su postgres -c "psql --port=5433"
                      psql (14.0 (Ubuntu 14.0-1.pgdg21.04+1))
                      Type "help" for help.
                      
                      postgres=#
                      

                      It worked! Now, to make it permanent I'm supposed to put this setting on a psqlrc or ~/.psqlrc file. The thin documentation on this (under "Files") was not helpful to me as I was not sure on the syntax and my attempts did not change the client's default, so I moved on.

                      To change the server I looked for the postgresql.conf mentioned in the documentation but could not find the file. I did however see /var/lib/postgresql/14/main/postgresql.auto.conf so I created it on the same directory with the content:

                      port = 5432
                      

                      Restarted the server: sudo systemctl restart postgresql

                      But the error persisted because, as the logs confirmed, the port did not change:

                      $ tail /var/log/postgresql/postgresql-14-main.log
                      ...
                      2021-10-29 16:36:12.195 UTC [25236] LOG:  listening on IPv4 address "127.0.0.1", port 5433
                      2021-10-29 16:36:12.198 UTC [25236] LOG:  listening on Unix socket "/var/run/postgresql/.s.PGSQL.5433"
                      2021-10-29 16:36:12.204 UTC [25237] LOG:  database system was shut down at 2021-10-29 16:36:12 UTC
                      2021-10-29 16:36:12.210 UTC [25236] LOG:  database system is ready to accept connections
                      

                      After other attempts did not succeed, I eventually decided to use a workaround: to redirect the client's requests on 5432 to 5433:

                      ln -s /var/run/postgresql/.s.PGSQL.5433 /var/run/postgresql/.s.PGSQL.5432
                      

                      This is what I have now:

                      $ ls -lah /var/run/postgresql/
                      total 8.0K
                      drwxrwsr-x  4 postgres postgres  160 Oct 29 16:40 .
                      drwxr-xr-x 36 root     root     1.1K Oct 29 14:08 ..
                      drwxr-s---  2 postgres postgres   40 Oct 29 14:33 12-main.pg_stat_tmp
                      drwxr-s---  2 postgres postgres  120 Oct 29 16:59 14-main.pg_stat_tmp
                      -rw-r--r--  1 postgres postgres    6 Oct 29 16:36 14-main.pid
                      lrwxrwxrwx  1 postgres postgres   33 Oct 29 16:40 .s.PGSQL.5432 -> /var/run/postgresql/.s.PGSQL.5433
                      srwxrwxrwx  1 postgres postgres    0 Oct 29 16:36 .s.PGSQL.5433
                      -rw-------  1 postgres postgres   70 Oct 29 16:36 .s.PGSQL.5433.lock
                      

                      This means I can now just run psql without having to explicitly set the port to 5433. Now, this is a hack and I would not recommend it. But in my development system I am happy with it for now, because I don't have more time to spend on this. This is why I shared the steps and the links so that you can find a proper solution for your case.

                      Source https://stackoverflow.com/questions/69754628

                      Community Discussions, Code Snippets contain sources that include Stack Exchange Network

                      Vulnerabilities

                      No vulnerabilities reported

                      Install server

                      Third-party components are handled as git submodules which have to be initialized first. So aside from the regular git checkout invoking git submodule update --init or a similar command is needed, for details see Git documentation. Several apps that are included by default in regular releases such as First run wizard or Activity are missing in master and have to be installed manually by cloning them into the apps subfolder. Otherwise, git checkouts can be handled the same as release archives, by using the stable* branches. Note they should never be used on production systems.
                      🚀 Set up your local development environment
                      🐛 Pick a good first issue
                      👩‍🔧 Create a branch and make your changes. Remember to sign off your commits using git commit -sm "Your commit message"
                      ⬆ Create a pull request and @mention the people from the issue to review
                      👍 Fix things that come up during review
                      🎉 Wait for it to get merged!

                      Support

                      All contributions to this repository from June, 16 2016 on are considered to be licensed under the AGPLv3 or any later version.

                      DOWNLOAD this Library from

                      Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from
                      over 430 million Knowledge Items
                      Find more libraries
                      Reuse Solution Kits and Libraries Curated by Popular Use Cases
                      Explore Kits

                      Save this library and start creating your kit

                      Explore Related Topics

                      Share this Page

                      share link
                      Consider Popular Privacy Libraries
                      Try Top Libraries by nextcloud
                      Compare Privacy Libraries with Highest Support
                      Compare Privacy Libraries with Highest Quality
                      Compare Privacy Libraries with Highest Security
                      Compare Privacy Libraries with Permissive License
                      Compare Privacy Libraries with Highest Reuse
                      Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from
                      over 430 million Knowledge Items
                      Find more libraries
                      Reuse Solution Kits and Libraries Curated by Popular Use Cases
                      Explore Kits

                      Save this library and start creating your kit

                      • © 2022 Open Weaver Inc.