Does CRIU restore the process at the same base address?
CRIU restores page mappings of the process. Does that mean the process will be restored with the same base address like (
0x400000)? Please correct me If I am wrong.
See also questions close to this topic
Jupyter does not show folder in my working directory
I am running docker Jupiter notebook on a MacBook Pro. When starting Jupyter home only shows some of the folders in the working directory. When I cd to a folder and use it as the working directory I get the message "Notebook list is empty." See examples below.
LewIss-MacBook-Pro:MyTensorFlow lewleib$ ls
Gorner_tensorflow-mnist Tensor2018 models Gorner_tensorflow-rnn Untitled.ipynb tensorflow MyDeepTest generate_hmb3.py tensorflow-without-a-phd-master My_tensor1.html guided testgen NeuralNet1.ipynb install.sh README.md mnist
One level down:
LewIss-MacBook-Pro:MyDeepTest lewleib$ ls README.md guided models generate_hmb3.py install.sh testgen
And one level more:
LewIss-MacBook-Pro:guided lewleib$ ls
chauffeur_guided.py epoch_guided.py ncoverage.py rambo_guided.py
When I try and call Jupiter note book:
LewIss-MacBook-Pro:guided lewleib$ docker run -it -p 8888:8888 -p 6006:6006 -v ~/lewleib/MyTensorFlow/MyDeepTest/guided:/notebooks tensorflow/tensorflow
I get the following:
guided Last Modified Name ..seconds ago The notebook list is empty.
Accessing docker containers through IIS
I have 2 Web API projects (2.1 core) in Visual Studio that I am able to run through Visual Studio and docker CLI. Both APIs are accessible through the docker host/IP ports (the API at
0.0.0.0:54281->80/tcpwas accessible through
http://localhost:54281). However, I am not sure how to configure docker to work with IIS on the container host. Is the solution to configure IIS to use a reverse proxy to the docker host/IP? I researched configuring IIS within a container but to access the site still required using the IIS docker host/IP.
One of the sites is using a Windows 2008 server and the other is using an Azure Windows 2016 environment.
Spring Shell appilication inside docker
I am trying to deploy/run a spring shell application inside a docker container. It is starting but filing when tries to open CLI.
2018-07-20 19:24:44.588 INFO 1 --- [ main] ConditionEvaluationReportLoggingListener : Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled. 2018-07-20 19:24:44.597 ERROR 1 --- [ main] o.s.boot.SpringApplication : Application run failed java.io.IOError: java.io.IOException: Unable to parse columns at org.jline.terminal.impl.AbstractPosixTerminal.getSize(AbstractPosixTerminal.java:61) ~[jline-3.4.0.jar!/:na] at org.jline.reader.impl.LineReaderImpl.readLine(LineReaderImpl.java:481) ~[jline-3.4.0.jar!/:na] at org.jline.reader.impl.LineReaderImpl.readLine(LineReaderImpl.java:390) ~[jline-3.4.0.jar!/:na] at org.springframework.shell.jline.InteractiveShellApplicationRunner$JLineInputProvider.readInput(InteractiveShellApplicationRunner.java:115) ~[spring-shell-core-2.0.0.RELEASE.jar!/:2.0.0.RELEASE] at org.springframework.shell.Shell.run(Shell.java:125) ~[spring-shell-core-2.0.0.RELEASE.jar!/:2.0.0.RELEASE] at org.springframework.shell.jline.InteractiveShellApplicationRunner.run(InteractiveShellApplicationRunner.java:84) ~[spring-shell-core-2.0.0.RELEASE.jar!/:2.0.0.RELEASE] at org.springframework.boot.SpringApplication.callRunner(SpringApplication.java:788) [spring-boot-2.0.3.RELEASE.jar!/:2.0.3.RELEASE] at org.springframework.boot.SpringApplication.callRunners(SpringApplication.java:778) [spring-boot-2.0.3.RELEASE.jar!/:2.0.3.RELEASE] at org.springframework.boot.SpringApplication.run(SpringApplication.java:335) [spring-boot-2.0.3.RELEASE.jar!/:2.0.3.RELEASE] at org.springframework.boot.SpringApplication.run(SpringApplication.java:1255) [spring-boot-2.0.3.RELEASE.jar!/:2.0.3.RELEASE] at org.springframework.boot.SpringApplication.run(SpringApplication.java:1243) [spring-boot-2.0.3.RELEASE.jar!/:2.0.3.RELEASE] at com.robustwealth.simulator.RwFixEngineApplication.main(RwFixEngineApplication.java:14) [classes!/:0.0.1-SNAPSHOT] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.8.0_181] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[na:1.8.0_181] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.8.0_181] at java.lang.reflect.Method.invoke(Method.java:498) ~[na:1.8.0_181] at org.springframework.boot.loader.MainMethodRunner.run(MainMethodRunner.java:48) [app.jar:0.0.1-SNAPSHOT] at org.springframework.boot.loader.Launcher.launch(Launcher.java:87) [app.jar:0.0.1-SNAPSHOT] at org.springframework.boot.loader.Launcher.launch(Launcher.java:50) [app.jar:0.0.1-SNAPSHOT] at org.springframework.boot.loader.JarLauncher.main(JarLauncher.java:51) [app.jar:0.0.1-SNAPSHOT] Caused by: java.io.IOException: Unable to parse columns at org.jline.terminal.impl.ExecPty.doGetInt(ExecPty.java:278) ~[jline-3.4.0.jar!/:na] at org.jline.terminal.impl.ExecPty.doGetSize(ExecPty.java:263) ~[jline-3.4.0.jar!/:na] at org.jline.terminal.impl.ExecPty.getSize(ExecPty.java:170) ~[jline-3.4.0.jar!/:na] at org.jline.terminal.impl.AbstractPosixTerminal.getSize(AbstractPosixTerminal.java:59) ~[jline-3.4.0.jar!/:na]
This might be because it is not able to fine any terminal inside docker. How can we overcome this ?
Azure VM Disk restore - Get more details behind error message "Failed to trigger restore"
Upon a scenario of restoring an Azure VM with Azure Disk Encryption such that it will just allow for restoring the disk to a storage account, I get an error "Failed to trigger restore". I believe it is role permission issues related. But my goal is to find more details of the error message and document it accordingly.
To find the detailed, I looked 1) in the Recovery Services Vault Activity Log, but nothing related to the restore activity. (which I think is product gap) 2) in OMS Log analytics and did a query for ActivityLog filtered for the specific Recovery Services Vault resource, which is I think the same as 1) 3) Try to find an azure powershell cmdlet related to get activitylog, but none found.
Any guidance to find the detailed error message such that it provides insight to the root cause is much appreciated.
Is there a way to recover deleted Firefox bookmarks?
I created a new profile on Firefox today, then synced it. I then deleted bookmarks that I didn't need (thinking it would simply remove them from the new profile), and now I can't find any way of getting them back.
I tried the "Import and Backup" option to restore, but it doesn't appear that there were any backups of my bookmarks (which it seems like a good idea to have turned on by default, but I digress).
Any other way of getting those deleted bookmarks back? Or am I out of luck?
Thanks in advance!
Easy backup and restore VM's when using Azure
I have a couple of VMs that I want to backup and restore easily and often. Preferably as a group.
I have tried default Azure backup and restore but noticed that it doesn't seem to do much. It is easy to create and schedule backups but it is not clear to me how these backups can be used to bring a VM back to its original state.
The use cases for the default backup / restore seem to be very different from what I expected. I expected something somewhat similar to VirtualBox: take a snapshot and then restore takes the VM back to the snapshot.
Restore of VM in Azure does not seem to be a supported use case. I think the idea is more to clone / duplicate the machine.
The default "restore" is a feature to create another VM because it you try to restore Azure shows an error message
A virtual machine with the same already exists in the selected resource group. Please change the virtual machine name or select a new resource group.
There is an option to restore disks. This seems to work at first. Restore job completes successfully but nothing it restored. The file system is the same as before restore.
There is no detailed log so there is no way to determine what is happening. There is only exit status: success restore completed successfully.
Are there other ways to mimic VirtualBox functionality? Take snapshots and restore VM's using such snapshots?
Does MS have plans to enhance backup in such way that it also supports restore?
Sqlite WALmode do not support memory mode?
I create my sqlite DB connection by using memory mode:
connection = DriverManager.getConnection("jdbc:sqlite:file:" + dbName + "?mode=memory&cache=shared")
And then use WAL-mode by excute: "pragma journal_mode=WAL"
I found that the memory size growing all the time when insert/delete operation. And it can not release even i call the wal_checkpoint(TRUNCATE).
have we to close the connection after call sqlite wal checkpoint to make it take effect?
-walfile truncated to zero, after call
pragma wal_checkpoint(TRUNCATE)manually. But the
-shmfile not change. And i found after the next insert the
-walfile become more larger, and
-shmfile become larger too, the insert become slower.
It is seems to the checkpoint not take effect at all. The program require take the connection all the time and can't close it during running.
Is there any way to make the
wal_checkpointtake effect by not close the db connection?