This commit is contained in:
@@ -237,29 +237,6 @@ IMPORTANT NOTES:
|
||||
|
||||
=-=-=-=-=-=-=-=-
|
||||
|
||||
|
||||
GRAFANA / INFLUXDB / DOCKER
|
||||
|
||||
Container to run the whole shebang:
|
||||
|
||||
- https://github.com/philhawthorne/docker-influxdb-grafana
|
||||
docker run -d \
|
||||
--name docker-influxdb-grafana \
|
||||
-p 3003:3003 \
|
||||
-p 3004:8083 \
|
||||
-p 8086:8086 \
|
||||
-p 22022:22 \
|
||||
-v /path/for/influxdb:/var/lib/influxdb \
|
||||
-v /path/for/grafana:/var/lib/grafana \
|
||||
philhawthorne/docker-influxdb-grafana:latest
|
||||
|
||||
NOTE: you can leave out the paths and it works and the name is a little verbose
|
||||
|
||||
Dashboard for Grafana and app.metrics:
|
||||
- https://grafana.com/dashboards/2125
|
||||
|
||||
|
||||
MSBUILD reference for csproj file
|
||||
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
|
||||
https://docs.microsoft.com/en-us/visualstudio/msbuild/msbuild#BKMK_ProjectFile
|
||||
|
||||
DOCKER / LINUX CHEAT SHEET
|
||||
Alpine linux enter container and run shell from docker:
|
||||
docker run -it [container_id] /bin/ash
|
||||
|
||||
@@ -7,43 +7,10 @@
|
||||
TODO: post to server and test
|
||||
|
||||
|
||||
Backup testing on linux:
|
||||
|
||||
Result of the backup now button:
|
||||
2020-06-06 18:06:22.4172|ERROR|CoreJobBackup|RunProgram error running command:pg_dump --dbname=postgresql://postgres:letmein@postgresserver:5432/AyaNova -Fc > /var/lib/ayanova/files/backup/manual-db-20200606180622413.backup=>System.ComponentModel.Win32Exception (2): No such file or directory
|
||||
at System.Diagnostics.Process.ForkAndExecProcess(String filename, String[] argv, String[] envp, String cwd, Boolean redirectStdin, Boolean redirectStdout, Boolean redirectStderr, Boolean setCredentials, UInt32 userId, UInt32 groupId, UInt32[] groups, Int32& stdinFd, Int32& stdoutFd, Int32& stderrFd, Boolean usesTerminal, Boolean throwOnNoExec)
|
||||
at System.Diagnostics.Process.StartCore(ProcessStartInfo startInfo)
|
||||
at System.Diagnostics.Process.Start()
|
||||
at AyaNova.Util.RunProgram.RunLinuxBash(String cmd, String arguments, Int32 waitForExitTimeOut) in C:\data\code\raven\server\AyaNova\util\RunProgram.cs:line 96
|
||||
at AyaNova.Util.RunProgram.Run(String cmd, String arguments, ILogger log, Int32 waitForExitTimeOut) in C:\data\code\raven\server\AyaNova\util\RunProgram.cs:line 28
|
||||
2020-06-06 18:06:22.4365|ERROR|CoreJobBackup|Backup failed=>System.ComponentModel.Win32Exception (2): No such file or directory
|
||||
at AyaNova.Util.RunProgram.Run(String cmd, String arguments, ILogger log, Int32 waitForExitTimeOut) in C:\data\code\raven\server\AyaNova\util\RunProgram.cs:line 37
|
||||
at AyaNova.Biz.CoreJobBackup.DoWorkAsync(Boolean OnDemand) in C:\data\code\raven\server\AyaNova\generator\CoreJobBackup.cs:line 112
|
||||
2020-06-06 18:06:22.4399|ERROR|JobsBiz|ProcessJobs::Exclusive -> job Backup (on demand) failed with exception=>System.ComponentModel.Win32Exception (2): No such file or directory
|
||||
at AyaNova.Biz.CoreJobBackup.DoWorkAsync(Boolean OnDemand) in C:\data\code\raven\server\AyaNova\generator\CoreJobBackup.cs:line 112
|
||||
at AyaNova.Biz.CoreJobBackup.DoWorkAsync(Boolean OnDemand) in C:\data\code\raven\server\AyaNova\generator\CoreJobBackup.cs:line 112
|
||||
at AyaNova.Biz.JobsBiz.ProcessJobAsync(OpsJob job) in C:\data\code\raven\server\AyaNova\biz\JobsBiz.cs:line 268
|
||||
at AyaNova.Biz.JobsBiz.ProcessJobsAsync() in C:\data\code\raven\server\AyaNova\biz\JobsBiz.cs:line 173
|
||||
|
||||
todo: backup
|
||||
Change pg_dump stuff to just generic command to call for backup
|
||||
add switch somewhere to "automatic backup" so can turn off in event of externally done backup
|
||||
todo: add switch somewhere to "automatic backup" so can turn off in event of externally done backup
|
||||
this will take backup processing out of the generator loop
|
||||
but keep the backup ui so even if external, can download the backup files
|
||||
|
||||
Include pg_dump into AyaNova container so it can call it directly?
|
||||
https://docs.docker.com/engine/examples/postgresql_service/
|
||||
https://docs.docker.com/engine/examples/dotnetcore/
|
||||
sudo apt install postgresql-client
|
||||
Alpine linux install postgres client:
|
||||
apk add postgresql-client
|
||||
Alpine linux enter container and run shell from docker:
|
||||
docker run -it [container_id] /bin/ash
|
||||
Manual backup command as it's run by AyaNova:
|
||||
pg_dump --dbname=postgresql://postgres:letmein@postgresserver:5432/AyaNova -Fc > /var/lib/ayanova/files/backup/manual-db-20200606184524472.backup
|
||||
|
||||
|
||||
todo: make docker cheat sheet
|
||||
|
||||
todo: add backup master time out setting
|
||||
environment variable
|
||||
|
||||
Reference in New Issue
Block a user