Всем здравствуйте, помогите пожалуйста. Поставил 1с сервер на windows server 2012, ставлю PostgreSQL и при установке выходит ошибка
Не удалось запустить intidb: -1073741515!
Пожалуйста, посмотрите файл ‘C:Program FilesPostgreSQL12.7-1.1Ctmpinitdb.log’ для детальной информации.
Указанный файл при этом пустой.
При нажатии ОК происходит откат и всплывает сообщение
Расположение недоступно
Файл C:Program FilesPostgreSQL недоступен. Если он находится на этом компьютере, убедитесь, что диск подключен или вставлен, и попробуйте еще раз. Если это сетевой файл, проверьте, подключены ли вы к сети или к Интернету, и повторите попытку. Если не удается найти файл, возможно, он был перемещен или удален.
Может кто подсказать, в чем причина?
I am reinstalling PostgreSQL using pgInstaller postgresql-8.3.16-1. An Error occurs in the last step of the install process:
Failed to run initdb:1!
tmpinitdb.log shows this message:
The application has failed to start because its side-by-side
configuration is incorrect. Please see the application event log or
use the command-line sxstrace.exe tool for more detail.
The message is quite simple but I can’t locate the root cause of the install failure.
Any one knows what’s the reason?
asked Oct 23, 2011 at 15:52
1
You probably already have a database cluster installed in the location where your Posgres8.3 install is trying to init a new one. You can’t really mix and match versions like that.
If possible, install the old version you had when you created the existing database. Then use pg_dumpall to create a .SQL dump of all of your data. You can then move or delete the old database (usually at /var/lib/pgsql) and install the new version. finally, apply the database dump to get the old data back.
For more details on this, read the Upgrading a PostgreSQL cluster manual page.
If you are installing the same version, there’s no need to upgrade the cluster, you can probably safely ignore errors about initdb, so long as everything runs Ok.
answered Oct 23, 2011 at 16:01

Здравствуйте, при установке PostgreSQL (любой версии 9.6, 10.5, 11.5) вылетает ошибка «Failed to run initdb: 1! Please see the logfile in C:….tmpinitdb.log.»
Пути установки оставлял стандартные и ставил на другой диск, итог всегда один.
ОС: Windows Server 2008 R2 64bit.
Прикрепил лог установки.
running bootstrap script … initdb: could not execute command «»C:/Program Files/PostgreSQL/9.6.7-1.1C/bin/postgres.exe» —boot -x1 -F «: No error
initdb: removing contents of data directory «G:/PostgreSQL/data»
Отсюда видно «initdb: could not execute command», не может выполнить команду.
Подскажите, в какую сторону копать, в чем может быть проблема?
I’m following these instructions, however I can only get to step 17.2.
Despite installing postgresql successfully via the
sudo apt-get install postgresql
command, upon running
initdb -D /usr/local/pgsql/data
Ubuntu tells me that it ‘initdb’ isn’t installed. The instructions tell me this command is installed by
sudo apt-get install postgresql
so what’s going on? I can make initdb available by installing postgres-xc, but I think postgres-xc is just some weird third party rubbish, and it’s not detailed in the instructions. Any ideas?
asked Nov 5, 2013 at 21:20
You will find initdb under /usr/lib/postgresql/x.y/bin/. See also /usr/share/doc/postgresql-common/README.Debian.gz for more information on the setup on Debian and Ubuntu.
answered Nov 6, 2013 at 2:00
5
initdb is intended to be run under the postgres user account that is created during the install. After installing postgresql you can do:
sudo su - postgres
Then you should be able to run initdb.
answered Jan 8, 2014 at 21:44
4
initdb is not installed as user executable. Is only installed in /usr/lib/postgresql/X.X/bin/, because it always depends on the version. initdb can only be executed from that specific directory.
As mentioned in other answers, installation of postgres creates a default directory that may be in a limited partition. Users may want to change this, but it requires other steps also. see here.
answered Jul 14, 2018 at 4:32
ilias iliadisilias iliadis
3111 gold badge2 silver badges9 bronze badges
Follow the following steps with user root
passwd postgres— your passwordsu postgrespsql- Create a user with your user name like
CREATE USER SAM ; create database sam;- Log out and type
psql <your_user>
answered Jan 16, 2014 at 12:32
smn_onrockssmn_onrocks
5265 silver badges14 bronze badges
1
Возникла проблема при установке.
1) Если в процессе установки я отмечаю галочку «Иницилизировать кластер базы данных», то в конце установки выскаивает ошибка Failed to run initdb: 1! Please see the logfile in C:….tmpinitdb.log.
И процесс установки откатывается, вычищая все из каталога постгреса.
2) Если галочку «Иницилизировать кластер базы данных» убираю, то ошибки не возникает. Но запуская команду
C:Program FilesPostgreSQL8.3bin>initdb -D «C:ProgramFilesPostgreSQL8.3Data»
Получаю:
The program «postgres» is needed by initdb but was not found in the same directory as «C:Program FilesPostgreSQL8.3bin/initdb».
хотя файл initdb.exe там есть.
Я отключал контроль UAC, но ничего не помогает. Если заранее убираю галочку «только чтение» в свойсвтвах папки PostgreSQL, то в последующем она снова появляется и не знаю как убрать.
Еще проблема — не понимаю как удалить аккаунты в винде, которые создал PostgreSQL.
Нашел пару источников — но и они не помогли
http://forumserver.twoplustwo.com/showthread.php?t=162543
http://www.postgresqlforums.com/forums/viewtopic.php?f=41&t=191
