หน้า 1 จากทั้งหมด 1

เจอปัญหา cannot write to log file pg_upgrade_internal.log ตอนอัพเกรด postgresql

โพสต์แล้ว: 27/07/2017 7:20 pm
โดย mindphp
เจอปัญหา cannot write to log file pg_upgrade_internal.log ตอนอัพเกรด postgresql

หลังจากรันคำสั่ง

โค้ด: เลือกทั้งหมด

sudo -H -u postgres /usr/lib/postgresql/9.4/bin/pg_upgrade
-b /usr/lib/postgresql/9.1/bin
-B /usr/lib/postgresql/9.4/bin
-d /var/lib/postgresql/9.1/main
-D /var/lib/postgresql/9.4/main
-o ‘ -c config_file=/etc/postgresql/9.1/main/postgresql.conf’
-O ‘ -c config_file=/etc/postgresql/9.4/main/postgresql.conf’

Re: เจอปัญหา cannot write to log file pg_upgrade_internal.log ตอนอัพเกรด postgresql

โพสต์แล้ว: 27/07/2017 7:28 pm
โดย mindphp
แก้ปัญหาโดย สร้าง folder สำหรับเก็บ log จากการ อัพเกรด แล้ว chmod 777 ไว้