synology

Cronjob: Command Not Found

北战南征 提交于 2021-01-27 17:19:00
问题 I have a cronjob that is the following: */10 * * * * root cd /some/directory && python3 FILE.py >> Output.txt 2>&1 if i run that command from a regular command line, it works fine. But when ran from cronjob, I get /bin/sh: python3: not found But when I run echo $PATH it returns /sbin:/bin:/usr/sbin:/usr/bin:/usr/syno/sbin:/usr/syno/bin:/usr/local/sbin:/usr/local/bin:/usr/local/python3/bin:/opt/bin (Note that /usr/local/python3/bin is included in this directory How do I fix this? 回答1: It seems

Cronjob: Command Not Found

流过昼夜 提交于 2021-01-27 17:07:59
问题 I have a cronjob that is the following: */10 * * * * root cd /some/directory && python3 FILE.py >> Output.txt 2>&1 if i run that command from a regular command line, it works fine. But when ran from cronjob, I get /bin/sh: python3: not found But when I run echo $PATH it returns /sbin:/bin:/usr/sbin:/usr/bin:/usr/syno/sbin:/usr/syno/bin:/usr/local/sbin:/usr/local/bin:/usr/local/python3/bin:/opt/bin (Note that /usr/local/python3/bin is included in this directory How do I fix this? 回答1: It seems

PhpStorm - Synology - CLI Interpreter - Updates

主宰稳场 提交于 2020-07-03 05:40:46
问题 I want to create a new project in PhpStorm, but I can't figure out why I can't add a PHP Interpreter in PhpStorm 2020.1.1. First some info: All is starting from my Synology NAS DS415+ with latest DSM 6.2.3-25426. Installed on NAS: Web Station MariaDB 10 phpMyAdmin PHP 7.2 PHP 7.3 Apache HTTP Server 2.4 SSH-connection is added successfully in PhpStorm. Z-driveletter is /web-folder. So, first things first. I created a /composer folder inside my /web folder. Composer.phar is selected in path as

PhpStorm - Synology - CLI Interpreter - Updates

允我心安 提交于 2020-07-03 05:39:45
问题 I want to create a new project in PhpStorm, but I can't figure out why I can't add a PHP Interpreter in PhpStorm 2020.1.1. First some info: All is starting from my Synology NAS DS415+ with latest DSM 6.2.3-25426. Installed on NAS: Web Station MariaDB 10 phpMyAdmin PHP 7.2 PHP 7.3 Apache HTTP Server 2.4 SSH-connection is added successfully in PhpStorm. Z-driveletter is /web-folder. So, first things first. I created a /composer folder inside my /web folder. Composer.phar is selected in path as

Get gofile.me through command line - Synology

一个人想着一个人 提交于 2020-05-29 12:46:10
问题 I am writing a small module in PHP that will send emails to my customers (using PHPMailer). I do not want to attach huge files to those emails but rather publish a link to download the files (Zipped). The files are stored on a Synology under DSM6.x. Is there a way through the command line in SSH to point to the desired files and generate the gofile.me link using Synology instructions ? Thanks 回答1: This is possible via Synology REST API. Although maybe this is not exactly what you want, here's

LDAP on local domain with Mediawiki

对着背影说爱祢 提交于 2020-02-28 23:50:45
问题 Just got my MediaWiki running on a local domain (running as container on Synology nas). Now i want to configure so only domain users can access the Wiki and are automatically logged in. This is for the sole purpose of tracking user name with page edits. My local domain is abc.local and my domain controller is Windows Server 2008 R2. I've done the following: 1) Installed extensions LDAPProvider , LDAPAuthentication2 , and PluggableAuth . 2) Added the following to the bottom of my LocalSettings

Missing pyconfig.h while installing a package

*爱你&永不变心* 提交于 2020-01-30 06:43:45
问题 I'm using Python3 (v3.4) add-on on my Synology NAS. When I try to install package (via ssh using python3 setup.py install ) it returns error: invalid Python installation: unable to open /volume1/@appstore/py3k/usr/local/include/python3.4m/pyconfig.h (No such file or directory) When I search the disk for the pyconfig.h file, it finds nothing and the folder ...include/python3.4m doesn't even exist. The problem occurred some time ago (in version 3.3), but I searched the disk, found the pyconfig

Python3 UnicodeEncodeError when run via Synology task scheduler

时光怂恿深爱的人放手 提交于 2020-01-24 14:00:06
问题 I get a Python3 UnicodeEncodeError when I run my script via the Synology task scheduler. I do not get this error when I run the script via the commandline (using PuTTY). Why is this and how can I solve it? Simple test script: import sys print (sys.version) # to confirm the correct Python version print("Fichier non trouvé♠ #M–Nein") # to test non ascii characters test = "Fichier non trouvé♠ #M–Nein" print ("test is " + test) test2 = str(test) # to test if the string function causes and issue

“Algorithm negotiation fail” error in Eclipse when trying to connect by SSH to a personal Git Server

半腔热情 提交于 2020-01-15 18:50:04
问题 I have Eclipse Juno, a Synology Server DS213+ with a Git Server. I'm trying to checkout a project from my Git Server to my workspace and when I use EGit in Eclipse I have this error: org.eclipse.jgit.api.errors.TransportException: ssh://[route]/volume1/Git/project.git: Algorithm negotiation fail at org.eclipse.jgit.api.LsRemoteCommand.execute(LsRemoteCommand.java:223) at org.eclipse.jgit.api.LsRemoteCommand.call(LsRemoteCommand.java:159) at org.eclipse.egit.core.op.ListRemoteOperation.run

“Algorithm negotiation fail” error in Eclipse when trying to connect by SSH to a personal Git Server

浪子不回头ぞ 提交于 2020-01-15 18:49:02
问题 I have Eclipse Juno, a Synology Server DS213+ with a Git Server. I'm trying to checkout a project from my Git Server to my workspace and when I use EGit in Eclipse I have this error: org.eclipse.jgit.api.errors.TransportException: ssh://[route]/volume1/Git/project.git: Algorithm negotiation fail at org.eclipse.jgit.api.LsRemoteCommand.execute(LsRemoteCommand.java:223) at org.eclipse.jgit.api.LsRemoteCommand.call(LsRemoteCommand.java:159) at org.eclipse.egit.core.op.ListRemoteOperation.run