bacula-dir failed at start - centos

I want to install/config a backup-server by useing Bacula.
I've installed and configured everything with the help of
Bacula Tutorial
Now I tried to start the bacular director (bacula-dir) but nothing happens.
In debug-mode (bacula-dir -d 200) I get the following output.
bacula-dir: dird.c:223-0 Debug level = 200
bacula-dir: jcr.c:140-0 read_last_jobs seek to 192
bacula-dir: jcr.c:147-0 Read num_items=0
bacula-dir: dir_plugins.c:160-0 Load dir plugins
bacula-dir: dir_plugins.c:162-0 No dir plugin dir!
bacula-dir: mysql.c:709-0 db_init_database first time
bacula-dir: mysql.c:177-0 mysql_init done
bacula-dir: mysql.c:202-0 mysql_real_connect done
bacula-dir: mysql.c:204-0 db_user=bacula db_name=bacula db_password=password
bacula-dir: mysql.c:227-0 opendb ref=1 connected=1 db=7fe692baa560
bacula-dir: sql_create.c:357-0 In create mediatype
bacula-dir: sql_create.c:361-0 selectmediatype: SELECT MediaTypeId,MediaType FROM MediaType WHERE MediaType='File'
bacula-dir: mysql.c:249-0 closedb ref=0 connected=1 db=7fe692baa560
bacula-dir: mysql.c:256-0 close db=7fe692baa560
bacula-dir: pythonlib.c:102-0 No script dir. prog=DirStartUp
bacula-dir: dird.c:364-0 Start UA server
bacula-dir: bnet_server.c:112-0 Addresses host[ipv4:193.175.220.151:9101]
bacula-dir: job.c:1334-0 wstorage=storage1
bacula-dir: job.c:1343-0 wstore=storage1 where=Job resource
bacula-dir: job.c:1034-0 JobId=0 created Job=*JobMonitor*.2017-07-25_12.49.35_01
bacula-dir: dird.c:377-0 wait for next job
bacula-dir: scheduler.c:104-0 Enter wait_for_next_job
bacula-dir: scheduler.c:273-0 enter find_runs()
bacula-dir: scheduler.c:286-0 now = 5977223f: h=12 m=6 md=24 wd=2 wom=3 woy=30
bacula-dir: scheduler.c:303-0 nh = 5977304f: h=13 m=6 md=24 wd=2 wom=3 woy=30
bacula-dir: scheduler.c:312-0 Got job: WebServ1-backup
bacula-dir: scheduler.c:355-0 run#7fe692b84938: run_now=0 run_nh=0
bacula-dir: scheduler.c:355-0 run#7fe692b84a08: run_now=0 run_nh=0
bacula-dir: scheduler.c:355-0 run#7fe692b84ad8: run_now=0 run_nh=0
bacula-dir: scheduler.c:374-0 Leave find_runs()
It seems like there is an endless loop because after a few seconds the last 5 lines are starting again.
Can anybody help and tell me what I've done wrong or where I can get more informations about the error?
The server is a centOS 7 64bit.
Sorry for the bad english.

Problem solved by reconfiguration the director.

Related

Supervisord not releasing log file during rotation

I've got a pair of CentOS 7 servers that are running SupervisorD with one program. Supervisord is not set to handle any log rotations.. supervisord.conf's lines related to size and backups both = 0.
supervisord.conf
[unix_http_server]
file=/var/run/dir1/supervisor.sock ; the path to the socket file
[supervisord]
logfile=/var/log/dir1/supervisord.log ; main log file; default $CWD/supervisord.log
logfile_maxbytes=0
; logfile_maxbytes=50MB ; max main logfile bytes b4 rotation; default 50MB
logfile_backups=0
;logfile_backups=10 ; # of main logfile backups; 0 means none, default 10
loglevel=trace ; log level; default info; others: debug,warn,trace
pidfile=/var/run/dir1/supervisord.pid ; supervisord pidfile; default supervisord.pid
nodaemon=false ; start in foreground if true; default false
minfds=786068
minprocs=200 ; min. avail process descriptors;default 200
[rpcinterface:supervisor]
supervisor.rpcinterface_factory = supervisor.rpcinterface:make_main_rpcinterface
[supervisorctl]
serverurl=unix:///var/run/dir1/supervisor.sock ; use a unix:// URL for a unix socket
[include]
files = /etc/supervisord.d/*.conf
program1.conf
[program:jobengine]
; Set full path to Job Engine program if using virtualenv
command=python /opt/program1/jobengine/jobengine.pyc --namespace=worker%(process_num)02d
environment=PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin:
directory=/opt/program1
user=root
numprocs=4
process_name=%(process_num)01d
stdout_logfile=/var/log/dir1/jobengine.log
stderr_logfile=/var/log/dir1/jobengine.log
autostart=true
autorestart=true
startsecs=10
startretries=999
; Below lines added to ensure supervisord does not perform any log handling, in favor of logrotate
stdout_logfile_maxbytes=0
stderr_logfile_maxbytes=0
stdout_logfile_backups=0
stderr_logfile_backups=0
; Need to wait for currently executing tasks to finish at shutdown.
; Increase this if you have very long running tasks.
stopwaitsecs = 600
; Causes supervisor to send the termination signal (SIGTERM) to the whole process group.
stopasgroup=false
; default (999)
priority=999
logrotate/program1.conf
# Track main logs, jobengine logs, etc.
/var/log/dir1/*log {
# Run as the Apache user
su apache apache
# CloudBolt will create the log file
missingok
# Do not rotate empty logs
notifempty
# Do not compress logs
nocompress
# Use `*.log.1` naming instead of `*.log-YYYYMMDD` format
nodateext
# Keep 5 archived logs
rotate 5
# Rotate files larger than this size
size 5M
}
So what happens is logrotate kicks off at it's appropriate time, however supervisord refuses to move from the old to the new log file. I'm used to the logrotate having a postscript for a restart signal however I'm 100% new to supervisord so I've been trying to verify how to gracefully restart supervisord and it's child processes. The way I understand it, 'stopwaitsecs' force supervisord to wait the specified time if busy and when I test the 4 child pids are killed via SIGTERM immediately.
What I need is supervisord to only restart once the child pids have completed w/e they're doing.
I also, on a whim, tried sending supervisord a SIGUSR2, and also a supervisorctl reload.. everything seems to kill the processes immediately.
What am I doing wrong here?

EasyPHP Webserver - Dashboard - http://127.0.0.1:10000 No longer loading

I am running EasyPHP Webserver 14.1 on Win Server 2012.
When I first installed it the dashboard loaded fine.
Now that I have built up my PHPbb3 forum it no longer loads. The browser continuously states
Waiting for response from 172.0.0.1...
but nothing happens, it just keeps spinning trying to load.
Is there any way I can fix /restore / reinstall the dashboard without affecting any work I've done on PHPbb3?
If it helps after some searching on this forum I created a .bat file containing:
ews-dashboard.exe -S 127.0.0.1:10000 -c ews-dashboard.ini cmd /k
This opens a CMD window containing the following:
C:\Program Files (x86)\EasyPHP-Webserver-14.1b2\dashboard>ews-dashboard.exe -S 127.0.0.1:10000 -c ews-dashboard.ini
PHP 5.4.30 Development Server started at Tue Nov 14 14:33:33 2017
Listening on http://127.0.0.1:10000
Document root is C:\Program Files (x86)\EasyPHP-Webserver-14.1b2\dashboard
Press Ctrl-C to quit.
But this doesn't seem to change anything.
it will work if you change the current port.
start-ews.bat
ews-dashboard.exe -S 127.0.0.1:1000 -c ews-dashboard.ini cmd /k
ews-dashboard.ini
[ServiceEx]
ServiceExeFullPath = "D:/Program Files/EasyPHP-Webserver\dashboard\ews-dashboard.exe"
; program arguments to be sent to executable
options = "-S 127.0.0.1:1000"
; can program interact with desktop [true | false] (default: true)
desktop = false
; start type (valid values: Auto Manual Disabled) (default: auto)
Start=Auto
; start the service upon installation [true | false] (default: no)
StartNow=true

PostgreSQL 9.5 showing unexpected behavior when installed with different locale other than default

On Windows 7, I am trying to install PostgreSQL 9.5 ( postgresql-9.5.2-1-windows-x64.exe) with different locales, but it is getting installed with default locale only, which is, English_United States.1252. I tried both the methods, GUI and unattended/silent, but the result is same.
I followed the below steps:
Set the locale of system to the particular locale, for ex. English, Australia.
Restarted the system.
Installed PostgreSQL using following command with parameter --locale:
start /w postgresql-9.5.2-1-windows-x64.exe --mode unattended --unattendedmodeui none --superaccount "postgres" --superpassword "postgrespwd" --prefix "C:\Program Files\PostgreSQL\9.5" --datadir "C:\Program Files\PostgreSQL\9.5\data" --serverport "5432" --install_runtimes 1 --locale "English, Australia"
Executed the command: Show lc_collate and got the output as English_United States.1252
Similarly, I followed the same steps while installing through GUI mode, selected option English, Australia.
Here is the output of PostgreSQL log file bitrock_installer.log (GUI mode):
Log started 11/08/2017 at 17:02:06
Preferred installation mode : qt
Trying to init installer in mode qt
Mode qt successfully initialized
Executing C:\Users\user\AppData\Local\Temp/postgresql_installer_ec63d13cf6/temp_check_comspec.bat
Script exit code: 0
Script output:
"test ok"
Script stderr:
Could not find registry key HKEY_LOCAL_MACHINE\SOFTWARE\PostgreSQL\Installations\postgresql-x64-9.5 Data Directory. Setting variable iDataDirectory to empty value
Could not find registry key HKEY_LOCAL_MACHINE\SOFTWARE\PostgreSQL\Installations\postgresql-x64-9.5 Base Directory. Setting variable iBaseDirectory to empty value
Could not find registry key HKEY_LOCAL_MACHINE\SOFTWARE\PostgreSQL\Installations\postgresql-x64-9.5 Service ID. Setting variable iServiceName to empty value
Could not find registry key HKEY_LOCAL_MACHINE\SOFTWARE\PostgreSQL\Installations\postgresql-x64-9.5 Service Account. Setting variable iServiceAccount to empty value
Could not find registry key HKEY_LOCAL_MACHINE\SOFTWARE\PostgreSQL\Installations\postgresql-x64-9.5 Super User. Setting variable iSuperuser to empty value
Could not find registry key HKEY_LOCAL_MACHINE\SOFTWARE\PostgreSQL\Installations\postgresql-x64-9.5 Branding. Setting variable iBranding to empty value
Could not find registry key HKEY_LOCAL_MACHINE\SOFTWARE\PostgreSQL\Installations\postgresql-x64-9.5 Version. Setting variable brandingVer to empty value
Could not find registry key HKEY_LOCAL_MACHINE\SOFTWARE\PostgreSQL\Installations\postgresql-x64-9.5 Shortcuts. Setting variable iShortcut to empty value
Could not find registry key HKEY_LOCAL_MACHINE\SOFTWARE\PostgreSQL\Installations\postgresql-x64-9.5 DisableStackBuilder. Setting variable iDisableStackBuilder to empty value
[17:02:13] Existing base directory:
[17:02:13] Existing data directory:
[17:02:13] Using branding: PostgreSQL 9.5
[17:02:13] Using Super User: postgres and Service Account: NT AUTHORITY\NetworkService
[17:02:13] Using Service Name: postgresql-x64-9.5
Executing cscript //NoLogo "C:\Users\user\AppData\Local\Temp\postgresql_installer_ec63d13cf6\prerun_checks.vbs"
Script exit code: 0
Script output:
The scripting host appears to be functional.
Script stderr:
Executing C:\Users\user\AppData\Local\Temp\postgresql_installer_ec63d13cf6\vcredist_x64.exe /passive /norestart
Script exit code: 0
Script output:
Script stderr:
Executing C:\Users\user\AppData\Local\Temp\postgresql_installer_ec63d13cf6\getlocales.exe
Script exit code: 0
Script output:
AfrikaansxxCOMMAxxxxSPxxSouthxxSPxxAfrica=Afrikaans, South Africa
AlbanianxxCOMMAxxxxSPxxAlbania=Albanian, Albania
AlsatianxxCOMMAxxxxSPxxFrance=Alsatian, France
AmharicxxCOMMAxxxxSPxxEthiopia=Amharic, Ethiopia
ArabicxxCOMMAxxxxSPxxAlgeria=Arabic, Algeria
ArabicxxCOMMAxxxxSPxxBahrain=Arabic, Bahrain
ArabicxxCOMMAxxxxSPxxEgypt=Arabic, Egypt
ArabicxxCOMMAxxxxSPxxIraq=Arabic, Iraq
ArabicxxCOMMAxxxxSPxxJordan=Arabic, Jordan
ArabicxxCOMMAxxxxSPxxKuwait=Arabic, Kuwait
ArabicxxCOMMAxxxxSPxxLebanon=Arabic, Lebanon
ArabicxxCOMMAxxxxSPxxLibya=Arabic, Libya
ArabicxxCOMMAxxxxSPxxMorocco=Arabic, Morocco
ArabicxxCOMMAxxxxSPxxOman=Arabic, Oman
ArabicxxCOMMAxxxxSPxxQatar=Arabic, Qatar
ArabicxxCOMMAxxxxSPxxSaudixxSPxxArabia=Arabic, Saudi Arabia
ArabicxxCOMMAxxxxSPxxSyria=Arabic, Syria
ArabicxxCOMMAxxxxSPxxTunisia=Arabic, Tunisia
ArabicxxCOMMAxxxxSPxxUxxDOTxxAxxDOTxxExxDOTxx=Arabic, U.A.E.
ArabicxxCOMMAxxxxSPxxYemen=Arabic, Yemen
ArmenianxxCOMMAxxxxSPxxArmenia=Armenian, Armenia
AssamesexxCOMMAxxxxSPxxIndia=Assamese, India
AzerixxSPxxxxOBxxCyrillicxxCBxxxxCOMMAxxxxSPxxAzerbaijan=Azeri (Cyrillic), Azerbaijan
AzerixxSPxxxxOBxxLatinxxCBxxxxCOMMAxxxxSPxxAzerbaijan=Azeri (Latin), Azerbaijan
BashkirxxCOMMAxxxxSPxxRussia=Bashkir, Russia
BasquexxCOMMAxxxxSPxxSpain=Basque, Spain
BelarusianxxCOMMAxxxxSPxxBelarus=Belarusian, Belarus
BengalixxCOMMAxxxxSPxxBangladesh=Bengali, Bangladesh
BengalixxCOMMAxxxxSPxxIndia=Bengali, India
BosnianxxSPxxxxOBxxCyrillicxxCBxxxxCOMMAxxxxSPxxBosniaxxSPxxandxxSPxxHerzegovina=Bosnian (Cyrillic), Bosnia and Herzegovina
BosnianxxSPxxxxOBxxLatinxxCBxxxxCOMMAxxxxSPxxBosniaxxSPxxandxxSPxxHerzegovina=Bosnian (Latin), Bosnia and Herzegovina
BretonxxCOMMAxxxxSPxxFrance=Breton, France
BulgarianxxCOMMAxxxxSPxxBulgaria=Bulgarian, Bulgaria
CatalanxxCOMMAxxxxSPxxSpain=Catalan, Spain
ChinesexxSPxxxxOBxxSimplifiedxxCBxxxxCOMMAxxxxSPxxSingapore=Chinese (Simplified), Singapore
ChinesexxSPxxxxOBxxTraditionalxxCBxxxxCOMMAxxxxSPxxHongxxSPxxKongxxSPxxSxxDOTxxAxxDOTxxRxxDOTxx=Chinese (Traditional), Hong Kong S.A.R.
ChinesexxSPxxxxOBxxTraditionalxxCBxxxxCOMMAxxxxSPxxMacaoxxSPxxSxxDOTxxAxxDOTxxRxxDOTxx=Chinese (Traditional), Macao S.A.R.
ChinesexxSPxxxxOBxxTraditionalxxCBxxxxCOMMAxxxxSPxxTaiwan=Chinese (Traditional), Taiwan
CorsicanxxCOMMAxxxxSPxxFrance=Corsican, France
CroatianxxCOMMAxxxxSPxxCroatia=Croatian, Croatia
CroatianxxSPxxxxOBxxLatinxxCBxxxxCOMMAxxxxSPxxBosniaxxSPxxandxxSPxxHerzegovina=Croatian (Latin), Bosnia and Herzegovina
CzechxxCOMMAxxxxSPxxCzechxxSPxxRepublic=Czech, Czech Republic
DanishxxCOMMAxxxxSPxxDenmark=Danish, Denmark
DarixxCOMMAxxxxSPxxAfghanistan=Dari, Afghanistan
DivehixxCOMMAxxxxSPxxMaldives=Divehi, Maldives
DutchxxCOMMAxxxxSPxxBelgium=Dutch, Belgium
DutchxxCOMMAxxxxSPxxNetherlands=Dutch, Netherlands
EnglishxxCOMMAxxxxSPxxAustralia=English, Australia
EnglishxxCOMMAxxxxSPxxBelize=English, Belize
EnglishxxCOMMAxxxxSPxxCanada=English, Canada
EnglishxxCOMMAxxxxSPxxCaribbean=English, Caribbean
EnglishxxCOMMAxxxxSPxxIndia=English, India
EnglishxxCOMMAxxxxSPxxIreland=English, Ireland
EnglishxxCOMMAxxxxSPxxJamaica=English, Jamaica
EnglishxxCOMMAxxxxSPxxMalaysia=English, Malaysia
EnglishxxCOMMAxxxxSPxxNewxxSPxxZealand=English, New Zealand
EnglishxxCOMMAxxxxSPxxRepublicxxSPxxofxxSPxxthexxSPxxPhilippines=English, Republic of the Philippines
EnglishxxCOMMAxxxxSPxxSingapore=English, Singapore
EnglishxxCOMMAxxxxSPxxSouthxxSPxxAfrica=English, South Africa
EnglishxxCOMMAxxxxSPxxTrinidadxxSPxxandxxSPxxTobago=English, Trinidad and Tobago
EnglishxxCOMMAxxxxSPxxUnitedxxSPxxKingdom=English, United Kingdom
EnglishxxCOMMAxxxxSPxxUnitedxxSPxxStates=English, United States
EnglishxxCOMMAxxxxSPxxZimbabwe=English, Zimbabwe
EstonianxxCOMMAxxxxSPxxEstonia=Estonian, Estonia
FaroesexxCOMMAxxxxSPxxFaroexxSPxxIslands=Faroese, Faroe Islands
FilipinoxxCOMMAxxxxSPxxPhilippines=Filipino, Philippines
FinnishxxCOMMAxxxxSPxxFinland=Finnish, Finland
FrenchxxCOMMAxxxxSPxxBelgium=French, Belgium
FrenchxxCOMMAxxxxSPxxCanada=French, Canada
FrenchxxCOMMAxxxxSPxxFrance=French, France
FrenchxxCOMMAxxxxSPxxLuxembourg=French, Luxembourg
FrenchxxCOMMAxxxxSPxxPrincipalityxxSPxxofxxSPxxMonaco=French, Principality of Monaco
FrenchxxCOMMAxxxxSPxxSwitzerland=French, Switzerland
FrisianxxCOMMAxxxxSPxxNetherlands=Frisian, Netherlands
GalicianxxCOMMAxxxxSPxxSpain=Galician, Spain
GeorgianxxCOMMAxxxxSPxxGeorgia=Georgian, Georgia
GermanxxCOMMAxxxxSPxxAustria=German, Austria
GermanxxCOMMAxxxxSPxxGermany=German, Germany
GermanxxCOMMAxxxxSPxxLiechtenstein=German, Liechtenstein
GermanxxCOMMAxxxxSPxxLuxembourg=German, Luxembourg
GermanxxCOMMAxxxxSPxxSwitzerland=German, Switzerland
GreekxxCOMMAxxxxSPxxGreece=Greek, Greece
GreenlandicxxCOMMAxxxxSPxxGreenland=Greenlandic, Greenland
GujaratixxCOMMAxxxxSPxxIndia=Gujarati, India
HausaxxSPxxxxOBxxLatinxxCBxxxxCOMMAxxxxSPxxNigeria=Hausa (Latin), Nigeria
HebrewxxCOMMAxxxxSPxxIsrael=Hebrew, Israel
HindixxCOMMAxxxxSPxxIndia=Hindi, India
HungarianxxCOMMAxxxxSPxxHungary=Hungarian, Hungary
IcelandicxxCOMMAxxxxSPxxIceland=Icelandic, Iceland
IgboxxCOMMAxxxxSPxxNigeria=Igbo, Nigeria
IndonesianxxCOMMAxxxxSPxxIndonesia=Indonesian, Indonesia
InuktitutxxSPxxxxOBxxLatinxxCBxxxxCOMMAxxxxSPxxCanada=Inuktitut (Latin), Canada
InuktitutxxSPxxxxOBxxSyllabicsxxCBxxxxCOMMAxxxxSPxxCanada=Inuktitut (Syllabics), Canada
IrishxxCOMMAxxxxSPxxIreland=Irish, Ireland
ItalianxxCOMMAxxxxSPxxItaly=Italian, Italy
ItalianxxCOMMAxxxxSPxxSwitzerland=Italian, Switzerland
JapanesexxCOMMAxxxxSPxxJapan=Japanese, Japan
KannadaxxCOMMAxxxxSPxxIndia=Kannada, India
KazakhxxCOMMAxxxxSPxxKazakhstan=Kazakh, Kazakhstan
KhmerxxCOMMAxxxxSPxxCambodia=Khmer, Cambodia
KinyarwandaxxCOMMAxxxxSPxxRwanda=Kinyarwanda, Rwanda
KiswahilixxCOMMAxxxxSPxxKenya=Kiswahili, Kenya
KonkanixxCOMMAxxxxSPxxIndia=Konkani, India
KoreanxxCOMMAxxxxSPxxKorea=Korean, Korea
KyrgyzxxCOMMAxxxxSPxxKyrgyzstan=Kyrgyz, Kyrgyzstan
LaoxxCOMMAxxxxSPxxLaoxxSPxxPxxDOTxxDxxDOTxxRxxDOTxx=Lao, Lao P.D.R.
LatvianxxCOMMAxxxxSPxxLatvia=Latvian, Latvia
LithuanianxxCOMMAxxxxSPxxLithuania=Lithuanian, Lithuania
LowerxxSPxxSorbianxxCOMMAxxxxSPxxGermany=Lower Sorbian, Germany
LuxembourgishxxCOMMAxxxxSPxxLuxembourg=Luxembourgish, Luxembourg
MacedonianxxSPxxxxOBxxFYROMxxCBxxxxCOMMAxxxxSPxxMacedoniaxxSPxxxxOBxxFYROMxxCBxx=Macedonian (FYROM), Macedonia (FYROM)
MalayalamxxCOMMAxxxxSPxxIndia=Malayalam, India
MalayxxCOMMAxxxxSPxxBruneixxSPxxDarussalam=Malay, Brunei Darussalam
MalayxxCOMMAxxxxSPxxMalaysia=Malay, Malaysia
MaltesexxCOMMAxxxxSPxxMalta=Maltese, Malta
MaorixxCOMMAxxxxSPxxNewxxSPxxZealand=Maori, New Zealand
MapudungunxxCOMMAxxxxSPxxChile=Mapudungun, Chile
MarathixxCOMMAxxxxSPxxIndia=Marathi, India
MohawkxxCOMMAxxxxSPxxCanada=Mohawk, Canada
MongolianxxSPxxxxOBxxCyrillicxxCBxxxxCOMMAxxxxSPxxMongolia=Mongolian (Cyrillic), Mongolia
NepalixxCOMMAxxxxSPxxNepal=Nepali, Nepal
NorwegianxxSPxxxxOBxxBokmålxxCBxxxxCOMMAxxxxSPxxNorway=Norwegian (Bokmål), Norway
NorwegianxxSPxxxxOBxxNynorskxxCBxxxxCOMMAxxxxSPxxNorway=Norwegian (Nynorsk), Norway
OccitanxxCOMMAxxxxSPxxFrance=Occitan, France
OriyaxxCOMMAxxxxSPxxIndia=Oriya, India
PashtoxxCOMMAxxxxSPxxAfghanistan=Pashto, Afghanistan
PersianxxCOMMAxxxxSPxxIran=Persian, Iran
PolishxxCOMMAxxxxSPxxPoland=Polish, Poland
PortuguesexxCOMMAxxxxSPxxBrazil=Portuguese, Brazil
PortuguesexxCOMMAxxxxSPxxPortugal=Portuguese, Portugal
PunjabixxCOMMAxxxxSPxxIndia=Punjabi, India
QuechuaxxCOMMAxxxxSPxxBolivia=Quechua, Bolivia
QuechuaxxCOMMAxxxxSPxxEcuador=Quechua, Ecuador
QuechuaxxCOMMAxxxxSPxxPeru=Quechua, Peru
RomanianxxCOMMAxxxxSPxxRomania=Romanian, Romania
RomanshxxCOMMAxxxxSPxxSwitzerland=Romansh, Switzerland
RussianxxCOMMAxxxxSPxxRussia=Russian, Russia
SamixxSPxxxxOBxxInarixxCBxxxxCOMMAxxxxSPxxFinland=Sami (Inari), Finland
SamixxSPxxxxOBxxLulexxCBxxxxCOMMAxxxxSPxxNorway=Sami (Lule), Norway
SamixxSPxxxxOBxxLulexxCBxxxxCOMMAxxxxSPxxSweden=Sami (Lule), Sweden
SamixxSPxxxxOBxxNorthernxxCBxxxxCOMMAxxxxSPxxFinland=Sami (Northern), Finland
SamixxSPxxxxOBxxNorthernxxCBxxxxCOMMAxxxxSPxxNorway=Sami (Northern), Norway
SamixxSPxxxxOBxxNorthernxxCBxxxxCOMMAxxxxSPxxSweden=Sami (Northern), Sweden
SamixxSPxxxxOBxxSkoltxxCBxxxxCOMMAxxxxSPxxFinland=Sami (Skolt), Finland
SamixxSPxxxxOBxxSouthernxxCBxxxxCOMMAxxxxSPxxNorway=Sami (Southern), Norway
SamixxSPxxxxOBxxSouthernxxCBxxxxCOMMAxxxxSPxxSweden=Sami (Southern), Sweden
SanskritxxCOMMAxxxxSPxxIndia=Sanskrit, India
ScottishxxSPxxGaelicxxCOMMAxxxxSPxxUnitedxxSPxxKingdom=Scottish Gaelic, United Kingdom
SerbianxxSPxxxxOBxxCyrillicxxCBxxxxCOMMAxxxxSPxxBosniaxxSPxxandxxSPxxHerzegovina=Serbian (Cyrillic), Bosnia and Herzegovina
SerbianxxSPxxxxOBxxCyrillicxxCBxxxxCOMMAxxxxSPxxMontenegro=Serbian (Cyrillic), Montenegro
SerbianxxSPxxxxOBxxCyrillicxxCBxxxxCOMMAxxxxSPxxSerbia=Serbian (Cyrillic), Serbia
SerbianxxSPxxxxOBxxCyrillicxxCBxxxxCOMMAxxxxSPxxSerbiaxxSPxxandxxSPxxMontenegroxxSPxxxxOBxxFormerxxCBxx=Serbian (Cyrillic), Serbia and Montenegro (Former)
SerbianxxSPxxxxOBxxLatinxxCBxxxxCOMMAxxxxSPxxBosniaxxSPxxandxxSPxxHerzegovina=Serbian (Latin), Bosnia and Herzegovina
SerbianxxSPxxxxOBxxLatinxxCBxxxxCOMMAxxxxSPxxMontenegro=Serbian (Latin), Montenegro
SerbianxxSPxxxxOBxxLatinxxCBxxxxCOMMAxxxxSPxxSerbia=Serbian (Latin), Serbia
SerbianxxSPxxxxOBxxLatinxxCBxxxxCOMMAxxxxSPxxSerbiaxxSPxxandxxSPxxMontenegroxxSPxxxxOBxxFormerxxCBxx=Serbian (Latin), Serbia and Montenegro (Former)
SesothoxxSPxxsaxxSPxxLeboaxxCOMMAxxxxSPxxSouthxxSPxxAfrica=Sesotho sa Leboa, South Africa
SetswanaxxCOMMAxxxxSPxxSouthxxSPxxAfrica=Setswana, South Africa
SinhalaxxCOMMAxxxxSPxxSrixxSPxxLanka=Sinhala, Sri Lanka
SlovakxxCOMMAxxxxSPxxSlovakia=Slovak, Slovakia
SlovenianxxCOMMAxxxxSPxxSlovenia=Slovenian, Slovenia
SpanishxxCOMMAxxxxSPxxArgentina=Spanish, Argentina
SpanishxxCOMMAxxxxSPxxBolivarianxxSPxxRepublicxxSPxxofxxSPxxVenezuela=Spanish, Bolivarian Republic of Venezuela
SpanishxxCOMMAxxxxSPxxBolivia=Spanish, Bolivia
SpanishxxCOMMAxxxxSPxxChile=Spanish, Chile
SpanishxxCOMMAxxxxSPxxColombia=Spanish, Colombia
SpanishxxCOMMAxxxxSPxxCostaxxSPxxRica=Spanish, Costa Rica
SpanishxxCOMMAxxxxSPxxDominicanxxSPxxRepublic=Spanish, Dominican Republic
SpanishxxCOMMAxxxxSPxxEcuador=Spanish, Ecuador
SpanishxxCOMMAxxxxSPxxElxxSPxxSalvador=Spanish, El Salvador
SpanishxxCOMMAxxxxSPxxGuatemala=Spanish, Guatemala
SpanishxxCOMMAxxxxSPxxHonduras=Spanish, Honduras
SpanishxxCOMMAxxxxSPxxMexico=Spanish, Mexico
SpanishxxCOMMAxxxxSPxxNicaragua=Spanish, Nicaragua
SpanishxxCOMMAxxxxSPxxPanama=Spanish, Panama
SpanishxxCOMMAxxxxSPxxParaguay=Spanish, Paraguay
SpanishxxCOMMAxxxxSPxxPeru=Spanish, Peru
SpanishxxCOMMAxxxxSPxxPuertoxxSPxxRico=Spanish, Puerto Rico
SpanishxxCOMMAxxxxSPxxSpain=Spanish, Spain
SpanishxxCOMMAxxxxSPxxSpain=Spanish, Spain
SpanishxxCOMMAxxxxSPxxUnitedxxSPxxStates=Spanish, United States
SpanishxxCOMMAxxxxSPxxUruguay=Spanish, Uruguay
SwedishxxCOMMAxxxxSPxxFinland=Swedish, Finland
SwedishxxCOMMAxxxxSPxxSweden=Swedish, Sweden
SyriacxxCOMMAxxxxSPxxSyria=Syriac, Syria
TajikxxSPxxxxOBxxCyrillicxxCBxxxxCOMMAxxxxSPxxTajikistan=Tajik (Cyrillic), Tajikistan
TamazightxxSPxxxxOBxxLatinxxCBxxxxCOMMAxxxxSPxxAlgeria=Tamazight (Latin), Algeria
TamilxxCOMMAxxxxSPxxIndia=Tamil, India
TatarxxCOMMAxxxxSPxxRussia=Tatar, Russia
TeluguxxCOMMAxxxxSPxxIndia=Telugu, India
ThaixxCOMMAxxxxSPxxThailand=Thai, Thailand
TurkishxxCOMMAxxxxSPxxTurkey=Turkish, Turkey
TurkmenxxCOMMAxxxxSPxxTurkmenistan=Turkmen, Turkmenistan
UkrainianxxCOMMAxxxxSPxxUkraine=Ukrainian, Ukraine
UpperxxSPxxSorbianxxCOMMAxxxxSPxxGermany=Upper Sorbian, Germany
UrduxxCOMMAxxxxSPxxIslamicxxSPxxRepublicxxSPxxofxxSPxxPakistan=Urdu, Islamic Republic of Pakistan
UzbekxxSPxxxxOBxxCyrillicxxCBxxxxCOMMAxxxxSPxxUzbekistan=Uzbek (Cyrillic), Uzbekistan
UzbekxxSPxxxxOBxxLatinxxCBxxxxCOMMAxxxxSPxxUzbekistan=Uzbek (Latin), Uzbekistan
VietnamesexxCOMMAxxxxSPxxVietnam=Vietnamese, Vietnam
WelshxxCOMMAxxxxSPxxUnitedxxSPxxKingdom=Welsh, United Kingdom
WolofxxCOMMAxxxxSPxxSenegal=Wolof, Senegal
YakutxxCOMMAxxxxSPxxRussia=Yakut, Russia
YorubaxxCOMMAxxxxSPxxNigeria=Yoruba, Nigeria
isiXhosaxxCOMMAxxxxSPxxSouthxxSPxxAfrica=isiXhosa, South Africa
isiZuluxxCOMMAxxxxSPxxSouthxxSPxxAfrica=isiZulu, South Africa
Script stderr:
Preparing to Install
Preparing to Install
Creating directory C:\Program Files\PostgreSQL\9.5
...
Creating directory C:\Program Files\PostgreSQL\9.5\symbols
Unpacking files
Unpacking C:\Program Files\PostgreSQL\9.5\server_3rd_party_licenses.txt
...
Unpacking C:\Program Files\PostgreSQL\9.5\symbols\pg_ctl.pdb
[17:04:36] Running the post-installation/upgrade actions:
[17:04:36] Write the base directory to the ini file...
[17:04:36] Write the version number to the ini file...
Initialising the database cluster (this may take a few minutes)...
Executing cscript //NoLogo "C:\Program Files\PostgreSQL\9.5/installer/server/initcluster.vbs" "NT AUTHORITY\NetworkService" "postgres" "****" "C:\Program Files\PostgreSQL\9.5" "C:\Program Files\PostgreSQL\9.5\data" 5432 "English, Australia" 0
Script exit code: 0
Script output:
WScript.Shell Initialized...
Scripting.FileSystemObject initialized...
Called CreateDirectory(C:\Program Files\PostgreSQL\9.5\data)...
Called CreateDirectory(C:\Program Files\PostgreSQL\9.5)...
WScript.Network initialized...
strParentOfDataDirC:\Program Files\PostgreSQL\9.5
logged in useruser-PC\user
Called AclCheck(C:\Program Files\PostgreSQL\9.5\data)
Called IsVistaOrNewer()...
'winmgmts' object initialized...
Version:6.1
MajorVersion:6
Executing icacls to ensure the user-PC\user account can read the path C:\Program Files\PostgreSQL\9.5\data
Executing batch file 'radF52B7.bat'...
processed file: C:\Program Files\PostgreSQL\9.5\data
Successfully processed 1 files; Failed processing 0 files
Called IsVistaOrNewer()...
'winmgmts' object initialized...
Version:6.1
MajorVersion:6
Ensuring we can write to the data directory (using icacls) to user-PC\user:
Executing batch file 'radF52B7.bat'...
processed file: C:\Program Files\PostgreSQL\9.5\data
Successfully processed 1 files; Failed processing 0 files
Executing batch file 'radF52B7.bat'...
The files belonging to this database system will be owned by user "user".
This user must also own the server process.
The database cluster will be initialized with locale "English_United States.1252".
The default text search configuration will be set to "english".
Data page checksums are disabled.
fixing permissions on existing directory C:/Program Files/PostgreSQL/9.5/data ... ok
creating subdirectories ... ok
selecting default max_connections ... 100
selecting default shared_buffers ... 128MB
selecting dynamic shared memory implementation ... windows
creating configuration files ... ok
creating template1 database in C:/Program Files/PostgreSQL/9.5/data/base/1 ... ok
initializing pg_authid ... ok
setting password ... ok
initializing dependencies ... ok
creating system views ... ok
loading system objects' descriptions ... ok
creating collations ... not supported on this platform
creating conversions ... ok
creating dictionaries ... ok
setting privileges on built-in objects ... ok
creating information schema ... ok
loading PL/pgSQL server-side language ... ok
vacuuming database template1 ... ok
copying template1 to template0 ... ok
copying template1 to postgres ... ok
syncing data to disk ... ok
Success. You can now start the database server using:
"C:\Program Files\PostgreSQL\9.5\bin\pg_ctl" -D "C:\Program Files\PostgreSQL\9.5\data" -l logfile start
Reading: C:\Program Files\PostgreSQL\9.5\data\postgresql.conf exists...
Writing: C:\Program Files\PostgreSQL\9.5\data\postgresql.conf exists...
Called AclCheck(C:\Program Files\PostgreSQL\9.5\data)
Called IsVistaOrNewer()...
'winmgmts' object initialized...
Version:6.1
MajorVersion:6
Executing icacls to ensure the NT AUTHORITY\NetworkService account can read the path C:\Program Files\PostgreSQL\9.5\data
Executing batch file 'radF52B7.bat'...
processed file: C:\Program Files\PostgreSQL\9.5\data
Successfully processed 1 files; Failed processing 0 files
Called IsVistaOrNewer()...
'winmgmts' object initialized...
Version:6.1
MajorVersion:6
Granting service account access to the data directory (using icacls) to NT AUTHORITY\NetworkService:
Executing batch file 'radF52B7.bat'...
processed file: C:\Program Files\PostgreSQL\9.5\data
processed file: C:\Program Files\PostgreSQL\9.5\data\base
processed file: C:\Program Files\PostgreSQL\9.5\data\global
processed file: C:\Program Files\PostgreSQL\9.5\data\pg_clog
processed file: C:\Program Files\PostgreSQL\9.5\data\pg_commit_ts
...
Successfully processed 884 files; Failed processing 0 files
initcluster.vbs ran to completion
Script stderr:
Configuring database server startup...
Executing cscript //NoLogo "C:\Program Files\PostgreSQL\9.5\installer\server\startupcfg.vbs" 9.5 "NT AUTHORITY\NetworkService" "****" "C:\Program Files\PostgreSQL\9.5" "C:\Program Files\PostgreSQL\9.5\data" "postgresql-x64-9.5"
Script exit code: 0
Script output:
startupcfg.vbs ran to completion
Script stderr:
Creating menu shortcuts...
Executing cscript //NoLogo "C:\Program Files\PostgreSQL\9.5\installer\server\createshortcuts.vbs" 9.5 "postgres" 5432 "PostgreSQL 9.5" "C:\Program Files\PostgreSQL\9.5" "C:\Program Files\PostgreSQL\9.5\data" "postgresql-x64-9.5"
Script exit code: 0
Script output:
Start FixupFile(C:\Program Files\PostgreSQL\9.5\scripts\serverctl.vbs)...
Opening file for reading...
Closing file (reading)...
Replacing placeholders...
Opening file for writing...
Closing file...
End FixupFile()...
Start FixupFile(C:\Program Files\PostgreSQL\9.5\scripts\runpsql.bat)...
Opening file for reading...
Closing file (reading)...
Replacing placeholders...
Opening file for writing...
Closing file...
End FixupFile()...
createshortcuts.vbs ran to completion
Script stderr:
Starting the database server...
Executing cscript //NoLogo "C:\Program Files\PostgreSQL\9.5\installer\server\startserver.vbs" postgresql-x64-9.5
Script exit code: 0
Script output:
Starting postgresql-x64-9.5
Service postgresql-x64-9.5 started successfully
startserver.vbs ran to completion
Script stderr:
[17:05:32] Installing the adminpack module in the postgres database...
Executing C:\Program Files\PostgreSQL\9.5\bin\psql.exe -c "CREATE EXTENSION adminpack" -d postgres
Script exit code: 0
Script output:
CREATE EXTENSION
Script stderr:
[17:05:34] Write the data directory to the ini file...
[17:05:34] Write the port number, service ID, locale and superuser to the ini file...
[17:05:34] Write ServiceID(postgresql-x64-9.5) to registry/ini...
[17:05:34] Write Superuser to ini file and windows registry...
[17:05:34] Write Service Account to ini file and windows registry...
[17:05:34] Write the server description to the ini file...
[17:05:34] Write the server branding to the ini file...
[17:05:34] Write the 'whether stack-builder is disabled or not' to the ini file...
[17:05:35] Finished running post-installation/upgrade tasks.
[17:05:35] Delete the temporary scripts directory...
Creating Uninstaller
Creating uninstaller 25%
Creating uninstaller 50%
Creating uninstaller 75%
Creating uninstaller 100%
Installation completed
Log finished 11/08/2017 at 17:05:47
From the above logs, here is the important ones which reflect the issue:
Executing cscript //NoLogo "C:\Program Files\PostgreSQL\9.5/installer/server/initcluster.vbs" "NT AUTHORITY\NetworkService" "postgres" "****" "C:\Program Files\PostgreSQL\9.5" "C:\Program Files\PostgreSQL\9.5\data" 5432 "English, Australia" 0
Script exit code: 0
.
.
.
The database cluster will be initialized with locale "English_United States.1252".
When I installed PostgreSQL 8.4.8 under same conditions (in GUI mode), there were no issues with that. It got installed with locale English, Australia.
Any idea, what can be the reason behind this?
Update:
When I selected Default Locale in GUI mode (PostgreSQL 9.5), then only it got installed with English, Australia locale. Output of command Show lc_collate was English_Australia.1252.
Same issue exists in postgresql-9.5.9-1-windows-x64.exe

Debugging Eclipse performance problems

To debug Eclipse performance problems, I created this .options file:
org.eclipse.jdt.ui/debug=true
org.eclipse.jdt.launching/debug = true
org.eclipse.jdt.launching/debug/classpath/jreContainer = true
# trace generation of type constraints and create toString info for debugging
org.eclipse.jdt.ui/debug/TypeConstraints=false
# timing output for code assist
org.eclipse.jdt.ui/debug/ResultCollector=false
org.eclipse.jdt.debug/debug=false
org.eclipse.jdt.debug/debug/jdiEvents=false
org.eclipse.jdt.debug/debug/jdiRequestTimes=false
org.eclipse.jdt.debug/debug/astEvaluations=false
org.eclipse.jdt.debug/debug/astEvaluations/callingThreads=false
# Turn on debug tracing for org.eclipse.jdt.core plugin
org.eclipse.jdt.core/debug=true
# Reports java builder activity : nature of build, built state reading, indictment process
org.eclipse.jdt.core/debug/builder=true
# Reports java builder stats
org.eclipse.jdt.core/debug/builder/stats=true
# Reports compiler activity
org.eclipse.jdt.core/debug/compiler=true
# Turn on debugging for the org.eclipse.core.resources plugin.
org.eclipse.core.resources/debug=true
# Reports the start and end of all builder invocations
org.eclipse.core.resources/build/invoking=true
# Reports the start and end of build delta calculations
org.eclipse.core.resources/build/delta=true
# For incremental builds, displays which builder is being run and
because of changes in which project.
org.eclipse.core.resources/build/needbuild=true
# Prints a stack trace every time an operation finishes that requires a
build
org.eclipse.core.resources/build/needbuildstack=true
The file is in the same folder as eclipse.ini.
When I open the about dialog, I can see the option -debug in the eclipse.commands variable:
...
-product
org.eclipse.epp.package.jee.product
-console
-consoleLog
-debug
$HOME/tools/eclipse/kepler-SR2
-data
$HOME/workspace
-vm
$HOME/tools/java/jdk1.8.0_25/bin/java
...
(I replaced my home folder with $HOME for privacy reasons).
But I don't see any trace output in the console where I started Eclipse. I can see output from the m2e:
2015-01-19 17:04:46,892 [Worker-12] INFO o.e.m.c.i.embedder.EclipseLogger - Using 'UTF-8' encoding to copy filtered resources.
2015-01-19 17:04:46,892 [Worker-12] INFO o.e.m.c.i.embedder.EclipseLogger - Copying 1 resource
When I press Enter, I get an OSGi prompt.
But no trace of a trace output. What did I miss?
When starting Eclipse with -debug, you can see which configuration files it loads during startup. The output looks like this:
...
Install location:
file:$HOME/tools/eclipse/kepler-SR2/
Configuration file:
file:$HOME/tools/eclipse/kepler-SR2/configuration/config.ini loaded
Configuration location:
file:$HOME/tools/eclipse/kepler-SR2/configuration/
Framework located:
file:$HOME/tools/eclipse/kepler-SR2/plugins/org.eclipse.osgi_3.9.1.v20140110-1610.jar
Framework classpath:
file:$HOME/tools/eclipse/kepler-SR2/plugins/org.eclipse.osgi_3.9.1.v20140110-1610.jar
Splash location:
$HOME/tools/eclipse/kepler-SR2//plugins/org.eclipse.platform_4.3.2.v20140221-1700/splash.bmp
Debug options:
file:$HOME/tools/eclipse/kepler-SR2/.options loaded
Time to load bundles: 5
...
Note the last path which gives the debug options. In the case above, this was:
Debug options:
file:$HOME/tools/eclipse/kepler-SR2 loaded
which is a folder ... Why would Eclipse do this? Because it was told so:
-debug
$HOME/tools/eclipse/kepler-SR2
-data
Notice the path between -debug and -data? Get rid of that and it will work (or specify the path to a real options file).

Where to find logs for a cloud-init user-data script?

I'm initializing spot instances running a derivative of the standard Ubuntu 13.04 AMI by pasting a shell script into the user-data field.
This works. The script runs. But it's difficult to debug because I can't figure out where the output of the script is being logged, if anywhere.
I've looked in /var/log/cloud-init.log, which seems to contain a bunch of stuff that would be relevant to debugging cloud-init, itself, but nothing about my script. I grepped in /var/log and found nothing.
Is there something special I have to do to turn logging on?
The default location for cloud init user data is already /var/log/cloud-init-output.log, in AWS, DigitalOcean and most other cloud providers. You don't need to set up any additional logging to see the output.
You could create a cloud-config file (with "#cloud-config" at the top) for your userdata, use runcmd to call the script, and then enable output logging like this:
output: {all: '| tee -a /var/log/cloud-init-output.log'}
so I tried to replicate your problem. Usually I work in Cloud Config and therefore I just created a simple test user-data script like this:
#!/bin/sh
echo "Hello World. The time is now $(date -R)!" | tee /root/output.txt
echo "I am out of the output file...somewhere?"
yum search git # just for fun
ls
exit 0
Notice that, with CloudInit shell scripts, the user-data "will be executed at rc.local-like level during first boot. rc.local-like means 'very late in the boot sequence'"
After logging in into my instance (a Scientific Linux machine) I first went to /var/log/boot.log and there I found:
Hello World. The time is now Wed, 11 Sep 2013 10:21:37 +0200! I am
out of the file. Log file somewhere? Loaded plugins: changelog,
kernel-module, priorities, protectbase, security,
: tsflags, versionlock 126 packages excluded due to repository priority protections 9 packages excluded due to repository
protections ^Mepel/pkgtags
| 581 kB 00:00
=============================== N/S Matched: git =============================== ^[[1mGit^[[0;10mPython.noarch : Python ^[[1mGit^[[0;10m Library c^[[1mgit^[[0;10m.x86_64 : A fast web
interface for ^[[1mgit^[[0;10m
...
... (more yum search output)
...
bin etc lib lost+found mnt proc sbin srv tmp var
boot dev home lib64 media opt root selinux sys usr
(other unrelated stuff)
So, as you can see, my script ran and was rightly logged.
Also, as expected, I had my forced log 'output.txt' in /root/output.txt with the content:
Hello World. The time is now Wed, 11 Sep 2013 10:21:37 +0200!
So...I am not really sure what is happening in you script.
Make sure you're exiting the script with
exit 0 #or some other code
If it still doesn't work, you should provide more info, like your script, your boot.log, your /etc/rc.local, and your cloudinit.log.
btw: what is your cloudinit version?