If this is a container that actually does exist and has a volume attached, verify the path to the volume is valid. When the path is no longer valid, the Synology Docker GUI will not start the container and simply states “Container does not exist”.
After deleting, saving, re-editing, re-adding the volume, then starting the container it came started up just fine.
The Objective: Reject all requests that reach the NGINX server with our a host name in its header
Why it matters: When a request is made to via IP address (http://your.add.rress.here), it will return what is determined to be the “default server” for that IP address. This is often not the desired result. The result we are going for here is to close the connect with the requesting client.
- generate a bogus cert and store it in your /etc/nginx/certs/bogus/ (or whichever folder you use for your certificates)
- create a “default.conf” configuration file in your /etc/nginx/conf.d/ (or whichever folder you include in your config)
- add the configuration to the “default.conf” file (update it if your folders are different for certs)
- test your configuration (/usr/sbin/nginx -t -c /etc/nginx/nginx.conf)
- if all is well, restart your service (sudo service nginx restart)
- validate it’s working as intended
listen 80 default_server;
listen 443 default_server ssl;
Want to know some details on what’s going on with your Atlassian application? (JIRA, Confluence, any JVM application).
Add these lines your Java Options:
Create a jmxremote.password file
- Copy C:\Program Files\Atlassian\JIRA\jre\lib\management\jmxremote.password.template to C:\Program Files\Atlassian\JIRA\jre\lib\management\jmxremote.password
- Edit jmxremote.password to add your credentials
- Set permissions on jmxremote.password
- Set owner the the user your Atlassian application runs as
- Remove inheriting permissions
- Remove all account permissions except for owner
- save your settings
Start your service & launch jconsole
Note: Running jconsole.exe -debug is helpful for troubleshooting
Use your favorite monitoring tool to collect the stats
SolarWinds SAM module supports JMX
Verify client configuration
Local Computer Policy
Verify Resultant Policy is correct
Verify Correct GPO’s are being applied
C:\>gpresult /scope computer
Update Group Policies
telenet wsus-server-01.domain.com 8530
If you are using a hosts file and having troubles with resolution, check out this post
Reset the client
wuauclt.exe /resetauthorization /detectnow
Force check in
Check WSUS in 10-15 minutes
If you are still having issues check out the client log file:
windows version: Server 2003 R2 Standard x64 SP2
Verify it’s not working
ipconfig /displaydns | more
Check for type-o’s!
Start with the simple solution first
Verify hosts file location
Open Registry Editor
Verify key: My Computer\HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services|Tcpip\Parameters\DataBasePath
Copy Value data and paste it into Explorer to verify you are editing the correct file
Verify file permissions (This was my issue)
If machine\users is not given Read and Read & Execute permissions, add the account.
Hardware: Synology DS716+
Software: Synology Photo Station 6
Data Files: .jpg & .arw (raw)
When using a Synology NAS to manage your photos via the Photo Station 6 application when I delete the JPG the RAW (ARW) remains behind.
Search the photo directory for orphan .arw files (ones without a matching .jpg), then remove it. While we are at it, lets record what we delete to a file.
Deploy an Ubuntu docker image and mount the photos directory
Use the code
rootdir = '/mnt/photo/Dump/2016/2016-02_Muppo-playing'
files = os.listdir(rootdir)
for file in files:
filename, file_ext = os.path.splitext(rootdir + '/' + file)
if not os.path.isfile(filename + '.JPG'):
os.remove(rootdir + '/' + file)
print('REMOVED:' + rootdir + '/' + file)
with open("clean-up.log", "a") as logfile:
logfile.write('REMOVED:' + rootdir + '/' + file)
This process assumes your linux machine has Centrify Express running on it.
Determine the group name
$adquery user rick -G
Add entry to sudoers file
sudo echo “%domain_admins ALL=(ALL) NOPASSWD: ALL” >> /etc/sudoers
In this walk through we will perform the following:
Note: The actual nginx configuration will not be covered here.
- Deploy the nginx Docker container (vr-ngx-01)
- Mount the following folders and file:
- it’s assumed your sites .conf file is in this director
- it’s assumed your SSL certs live here and are properly referenced in your /etc/nginx/conf.d/your.site.conf
- it’s assumed SSL is configured and includes conf.d/*.conf
- Link vr-ngx-01 to the Home-Assistant container (vr-hass-01)
- Fire up the container and verify connectivity over a secured connection
- Remove local port mapping for vr-hass-01
1. Deploy the container
2. Mount the local folders & file
3. Link vr-ngx-01 to vr-hass-01
4. Verify site loads
Browse to https://YOUR-SYNOLOGY-NAME:4443
Note: to make this appear at https://www.virtualrick.com you can configure your router/firewall for port forwarding. Example: external TCP 443 forwards to internal TCP 4443.
5. Remove local port mapping for vr-hass-01
Now that the nginx container is linked to the home-assistant container, there is no need for the home-assistant service port (8123) to be available directly.
Make sure the home-assistant container is turned off, then edit the container and remove the local port configuration.
Update: Link to post following this one with steps for deploying nginx as a proxy for the Home-Assistant container deployed here: CLICK HERE
I recently received my Synology DS716+ and discovered it supports running Docker containers. I figured why not run Home-Assistant in a Docker container on the Synology? Doing this will free my Raspberry Pi for another project. Here is what I did to make this happen.
Store your configuration.yaml here
Store any scripts called within your confiruation.yaml. I have a number of scripts used to execute remote commands on various devices.
I mount this folder so I can store the keys that are trusted on remote devices
Step by step screenshots
Download the image
Create the container
Launch the application