synology | Golang API for Synology NAS | Network Attached Storage library
kandi X-RAY | synology Summary
kandi X-RAY | synology Summary
Golang API for Synology NAS
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Basic example of synology
- errFromCode returns an error from the given code .
- DownloadStationInfoGetConfig fetches the current station info .
- errFromData tries to find an error from the given data
synology Key Features
synology Examples and Code Snippets
Community Discussions
Trending Discussions on synology
QUESTION
I am trying to use OpenVPN on my Synology NAS. I configure everything I need and then when I try to export configuration files, the openvpn.zip file that contains only 2 files (README.txt and openvpn.ovpn), the ca.crt file is not included.
Thus, I can't do anything. Would you have any idea about how to correct this unfortunate state?
I have recently updated to DSM 7
VPN Server 1.4.4-2855 after DSM update uninstalled and installed and configured again. Several reboots. Nothing worked for me.
Exported ZIP file contains only Readme.txt and openVPN.opvn.
Thank you for your help!
...ANSWER
Answered 2022-Mar-16 at 17:20The zip-File contains 2 files:
QUESTION
I have a docker compose for a media server i'm building using multiple containers, i want these containers to be able to R/W a cifs share mounted on host, after trying multiple ways i can't seem get them to write. here's the mounted share : /etc/fstab
...ANSWER
Answered 2022-Feb-28 at 10:41QUESTION
I have the following JSON scheme:
...ANSWER
Answered 2022-Feb-24 at 21:57Without further details wrt conditions, array indices etc, I guess this is what you want:
QUESTION
I'm using Seafile (on docker) to sync some files to a Synology nas and it is all working correctly. I've created an external folder that is pointed to /shared
folder in the container.
I think I already know the answer, but are the files synced to the server stored 'normally' somewhere? i.e. If I sync a folder called 'photos' and it has 'a.jpg' in it, will I be able to find that file on the seafile server?
The reason for the question is I would like to backup the original files that are sync'd, rather than having to backup the seafile DB, etc.
(I am aware that syncthing does what I want, so I may choose to use that instead, just want to confirm my understanding)
Thanks
...ANSWER
Answered 2022-Jan-21 at 16:55No you won't find your a.jpg
file on the server. Your files are going to be turned into blocks of bytes.
If you take a look at this part of the documentation of data model
FSThere are two types of FS objects, SeafDir Object and Seafile Object. SeafDir Object represents a directory, and Seafile Object represents a file.
BlockA file is further divided into blocks with variable lengths. We use Content Defined Chunking algorithm to divide file into blocks. A clear overview of this algorithm can be found at http://pdos.csail.mit.edu/papers/lbfs:sosp01/lbfs.pdf. On average, a block's size is around 1MB.
So backing up files will won't be as easy as making a raw copy of the seafile
drive. As mentioned by @JensV you may still achieve something along those lines using the seafile drive client.
QUESTION
The problem
During night hours, I want to turn off WIFI only WLR-9500 router. I want to accomplish this using a bash script from my synology NAS. Unfortunately I cannot install OpenWRT on my router, nor is there a timing table in there to turn wifi ON and OFF during predetermined hours.
What did I try so far
I have been fiddling around quite a lot with the curl command, but to to no avail yet. I managed to login into the router, and get the page that manages the radio ON/OFF, and this page/frame (using a web browser allows to turn of radio)
This is what the pageframe looks like:
Which is actually a subframe of this page:
The page frame (html) source from the router looks like this:
...ANSWER
Answered 2022-Jan-11 at 19:39As @konsolebox suggested: the solution was using wireshark to find out what was actually posted by the page:
QUESTION
On my synology I have this docker container running: https://registry.hub.docker.com/r/mgvazquez/ibgateway/
In the "manual" is says: "In this example you will launch the Interactive Brokers Gateway in paper mode listening on port 4001, and the VNC Server listening on port 5900"
So in the docker container I did the following port mapping:
Local port 32778 to container 5900 and local port 32776 to container 4001. My Synology Nas is 192.168.2.6.
When I connect from my local pc using vnc to 192.168.2.6:32778 it works perfectly.
Now, In my Python script I do:
...ANSWER
Answered 2021-Dec-27 at 20:34First, just for testing, try and use port 4001 directly:
QUESTION
I have a Synology NAS (DS1621+) in my local network. A shared folder XXX is crated with SMB3 and SMB2 MTU enabled. The "Enable Recycle Bin" option is also activated for this shared folder. And I can see there is a #recycle directory in this folder.
In my Windows10 Pro, I connect to my NAS by using "Map network drive" in Explorer. But when I try to delete something in this shared folder, it always makes a "delete permanent", and the recycle option is in gray (see image below).
I've learned that SMB protocol supports truly the recycling functionality. So how could I fix this problem?
Thanks for your help.
...ANSWER
Answered 2021-Dec-17 at 12:06Solution
After searching in a Chinese forum, I find out that this is just a graphical misunderstanding. In fact, the file is NOT permanently deleted when "Enable Recycle Bin" is activated on NAS. It will be moved to #recycle directory on your shared folder, and you can access it through Synology DSM. So, you can delete any files in Windows on that SMB share without any worries about permanent lost. But in Windows, it always shows a warning panel of "permanent delete" when you do a removing action.
If you want to deactivate the warning panel of permanent delete in your Windows, you can go to your user foled in C:\Users\{username}, choose a system default folder, for example "Downloads". Right click on this folder, go to "Location" tab and change the location to your SMB share. In this case, the files you that you delete will be showed in Recycle Bin on your Windows desktop as usual.
References
QUESTION
I'm trying to run my Web API/Swagger application in four different ways. Using IIS and IIS Express work perfectly. But when I start it as project or in WSL then it starts to complain about something with MySQL. And adding 'EnableRetryOnFailure()' doesn't solve the problem...
The DBContext is added as:
ANSWER
Answered 2021-Dec-15 at 02:49But then I noticed that WSL is running in a different subnet on my system. My system and my NAS are in the 192.168.. range while WSL runs in the 172.30.. range. So WSL can't find the server as they're in different networks. My solution is simple, as I have a domain name and my router fas port forwarding for one port to the MariaDB database so I connect by using a domain name and custom port. And now it does work from WSL.
This is annoying, but it works.
QUESTION
My setup: Nginx reverse proxy which proxy's traffic from my domain to a Synology NAS
https://photo.domain.com => Synology Photos (local IP)
But, when trying to upload large files (=videos), the upload fails. Connecting directly to the local IP works just fine - so: Somehow the proxy fails.
In /etc/nginx/nginx.conf i have specified:
...ANSWER
Answered 2021-Dec-09 at 10:40Solved this with:
QUESTION
Now i need to run a py file that uses 3rd party libraries in Task Schedulers of Synology NAS. I got the privilege in the NAS terminal by sudo su
, and installed pip by command curl -k https://bootstrap.pypa.io/get-pip.py | python3
.
The script wheel is installed in '/var/packages/py3k/target/usr/local/bin'. I then try installing pandas with sudo python3 -m pip install pandas
, the installation is successful. Then I go on installing requests, DateTime as well. They are all successful.
When i go to /volume1/@appstore/py3k/usr/local/lib/python3.5/site-packages
, i can see them all there.
I have 2 py files scheduled actually, one is a simple py file, another is a py file that uses 3rd party libraries. The simple py file runs successfully in the NAS. It repeats itself every minute as set. But the one using 3rd party still can't run.
The below is the simple py file which runs perfectly,
...ANSWER
Answered 2021-Nov-23 at 17:58Try specify the file name and path at the same time.
That is write_file('/volume1/homes/admin/python/log.txt' , print_time())
in your case. I assume you are putting the log.txt file in the same location as your result.txt file.
I remember synology nas likes more evident paths to look for files.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install synology
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page