-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Gateone doesnt work anymore after dsm 6 #2340
Comments
no workaround? |
same issue here |
Dr-Bean, can i somehow get this working, or do we really need to wait on Synology for this adduser command problem? |
Simply put, you have three choices at this point: wait for someone else to (help) add DSM6 compatibility, contribute and help solve the aforementioned issues yourself or downgrade to/do a clean install of a supported DSM version. |
Well i wished i had more knowledge about the used code, but i dont, otherwise i would try to help whereever i could. Its only anoyying, because i used Gateone alot from the web when i was at costumers, when i need to ssh into something. I like it more then putty. Guess i have to wait. Downgrading my Synology isnt possible so far i know, i asked that already Synology Support. |
@Diaoul, any plans to have a look at this and update the package? ;-) |
Dsm 6 : ssl_certificate : /usr/syno/etc/certificate/system/default/fullchain.pem Hello Mr.bean wants you access to the repository, can one make a commit, with information about certificates that I have published? |
Hi, Any news about this compilation ? GateOne is very powerful software I think it should be fixed. |
Guess Synology doesnt wanna change their path stuff. I think the solution have to come from someone out of SynoCommunity. Were almost 6 months further. I tried running the package as root, but cant still start the package. Still hope someone can look into this and get gateone working again. @kanjusei : did you get gateone working? |
A workaround that I used to get the package functioning was to edit the start-stop-status script (located in /var/packages/gateone/scripts/) to comment out the line that attempts to copy the certificate into the SSL folder (i.e., put a # in front of this line in the function start_daemon(): then I manually copied the ssl certificates from the system location into the folder gateone is looking for them:
Alternatively, you could edit the start-stop-status script to replace the cp command with one that looks in the right place (and renames appropriately). I don't really know how git works very well, but I've attempted to create a pull request that does this: #2504 |
@joshlawless: Got the Gateone running also now with your workaround. But i cant access the Gateone webinterface on 8271. Edit, it worked before i uninstalled it. Used your code again, but now it doesnt start anymore. Sigh :( Where can i package config file after its being downloaded? Package center says port 8271 is being used. Gateone cant be installed. @joshlawless: Where does write gateone his port information? \etc.. ? (which file) Nevermind found the gateone.sc file under /usr/local/etc/services.d |
Another try
Any other possible fixes to get it started or to see where it fails? |
I also got this issue after upgrading to DSM6 some weeks ago. Finally I found some time to have a closer look - and now fixed it on my DS214play running 6.0.2-8451 Update 1. This is what i did:
Then installed/upgraded some (whyever) missing python packages using: And after doing another GateOne is alive again :-) addendum: changes survived upgrade to 6.0.2-8451 Update 2. |
Thanks your awesome! That worked like a charm! |
Should a 5 step work-around close this issue? |
Why should i leave it open? Nobody wants to make it compatible for DSM 6.0. |
@Oxize @Dr-Bean and @GoodOmens83 are working on an global DSM6 fix... This is not something that should be done on a per package base but globally to provide DSM6 support for all Packages. feel free to join the discussion over here: #2345 or #2216 if you have something usefull... all of this was already stated by @Dr-Bean here: #2340 (comment) |
@ujle Your method didn't work for me. But i find a workaround. Just need to edit a few strings:
|
The above script modification worked great for me (thank you), but I had to leave the chown line uncommented to let gateone take control of the files. Otherwise, you'll get a bunch of non-obvious permission errors from Tornado when you attempt to access GateOne and the page won't load. |
For me none of this worked. the log in
and if you look at the script this: su ${USER} -c "PATH=${PATH} nohup ${PYTHON} ${GATEONE} \
--settings_dir=${SETTINGS_DIR} > ${INSTALL_DIR}/var/gateone_startup.log &" with these variables: # Package
PACKAGE="gateone"
DNAME="GateOne"
# Others
INSTALL_DIR="/usr/local/${PACKAGE}"
PYTHON_DIR="/usr/local/python"
PATH="${INSTALL_DIR}/bin:${INSTALL_DIR}/env/bin:${PYTHON_DIR}/bin:${PATH}"
PYTHON="${INSTALL_DIR}/env/bin/python"
GATEONE="${INSTALL_DIR}/env/bin/gateone"
SETTINGS_DIR="${INSTALL_DIR}/var/conf.d"
PID_FILE="${INSTALL_DIR}/var/gateone.pid"
USER="gateone" map to this: su gateone -c "PATH=/usr/local/gateone/bin:/usr/local/gateone/env/bin:/usr/local/python/bin:${PATH} \
nohup /usr/local/python/bin/python /usr/local/gateone/env/bin/gateone \
--settings_dir=/usr/local/gateone/var/conf.d > /usr/local/gateone/var/gateone_startup.log &" as you can see the actual command start python with |
Post scriptum: if I execute the start-stop script from root (after |
is there a chance to have this problem solved in the coming days via a new package ? Tx |
Joining in, +1 for a fix. |
Joining too. |
@ymartin59 problem arises with only admin user on system |
as @flip111 just said, this issue is occurring for me, where I only had 1 account (and is a admin account). There's something else broken here. This is on the latest version of DSM and I had never installed gateone before. |
@Hardtarget24 , @flip111 : OK, might be related to recent DSM changes, but not sure. Could you please do the following:
|
@vletroye : I was trying to install your modified GateOne package on my DS216+II / DSM 6.2.1, but it was rejected. On your download page it is not listed for this particular Synology model, so I assume that this is the reason, that it is only made for particular models/architectures. Do you plan to extend the available versions to other models? Or do you see another explanation for the fault? |
Indeed, your DS216+II is a Braswell while my repackaging of GateOne was for the Avoton. As I see that original package was made for apollolake avoton braswell broadwell broadwellnk bromolow cedarview denverton dockerx64 grantley kvmx64 x86 x86_64, I did publish a new version of my package. Notice that I didn't test this package on any other architecture than mine... But as of now, you should see it available on my SSPK server for your DS216+II V. |
trying on DSM 6.1.3 Xpenology 3615xs intel i3-7100 apollolake. |
yes, I found now that it works and I can open a terminal window in the browser by directly typing the address:port. |
Realmagnum, your firmware is 6.1.3. That's possibly the issue. The package is for a DSM >= 6.1-15047. No idea how DSM compare 6.1-15047 and 6.1.3 ?! 6.1-15047 is the minimal firmware specified in the original package. V. |
|
@vletroye directly connecting to port 8271 by browser works to show GateOne .. but i like it to be part of DSM. Not sure if it's a good idea to setup NAT for port 8271 |
@flip111 Now, because the package Gate-one is using an "admin port", you have no choice but configure a NAT for that port, even if the "window" is embedded into the DSM. The embedding of the window is purely "aesthetic" ... |
What's an "admin port"?
Either gateone running on my DS connects from the DS to SSH on the DS in
which case I don't need NAT.
Or it opens the connection from my browser and connects to the ssh port on
my DS. in which case I might just as well use my OS terminal to connect
over SSH.
…On Wed, Nov 21, 2018, 19:15 Valéry Letroye ***@***.*** wrote:
@flip111 <https://github.com/flip111>
I finally succeeded in upgrading my DSM to the latest version (DSM
6.2.1-23824 Update 1). And after reinstalling GateOne (my own package), I
still see the icon in the menu....
Now, because the package Gate-one is using an "admin port", you have no
choice but configure a NAT for that port, even if the "window" is embedded
into the DSM. The embedding of the window is purely "aesthetic" ...
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#2340 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ACI_gN7sjSbGaAtiVN3Yocd1Ts8z5ohIks5uxaZngaJpZM4IkbWA>
.
|
The "adminport" of a package for Synology is the port on which the DSM will connect to get the Web interface. See doc here: https://originhelp.synology.com/developer-guide/synology_package/INFO_optional_fields.html : 'A package listens to a specific port to display its own UI. If the package is defined by a port, a link will be opened when the package is started.' So, a NAT must be configured for that adminport. Next, once you enter into the web interface of GateOne (via its adminport), all commands will be executed over SSH. But GateOne is not connecting over SSH from its web interface (client side). It's executing the commands from its backend (the part running on the DS). So there is no need to configure a NAT for the port used by SSH. |
If it's DSM that is connecting to the package (which runs on another port) they are both on localhost and don't need NAT for the package-port. |
my version - DSM 6.1.3-15152 Update 4 |
@flip111 : the connection onto the admin port is made from the client (The web UI of DSM, running in the browser). You can verify that by opening the debug window of your Browser (F12). |
@Realmagnum : I am not sure how to configure the package to be compatible with 6.1.3-15152. Indeed, according to the documentation, the minimum version of DSM (os_min_ver) to run a package must be like X.Y-Z with X=DSM major number, Y=DSM minor number, Z=DSM build number https://originhelp.synology.com/developer-guide/synology_package/INFO_necessary_fields.html I would expect the package installer to be able to see that 6.1.3-15152 is higher than 6.1-15047. But I can't confirm that... |
@flip111 The config file refers to protocol "http", but it should be "https". That's a bug and I can fix it. Not sure it fixes your problem as well though. Which NAS model and DSM version do you have? Let me know and I will build a test version for you. |
@vletroye
@m4tt075 |
@flip111 Sorry, it's called "Control Panel" in English I believe. It is on the desktop, when you log into the web-interface of your NAS. |
I searched my control panel for "permissions" the only thing that turned up
was something about shared folders
…On Wed, Nov 28, 2018, 18:39 m4tt075 ***@***.*** wrote:
@flip111 <https://github.com/flip111> Sorry, it's called "Control Panel"
in English I believe. It is on the desktop, when you log into the
web-interface of your NAS.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#2340 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ACI_gF1am85YVjP1B75H7h2aKhcy3iVEks5uzthrgaJpZM4IkbWA>
.
|
argh Try "privileges", please... |
@flip111 Here your apollolake test build: |
@m4tt075 i checked it. Actually @vletroye suggested this before, but i forgot to get back to this comment when he asked 4 questions and i only answered 2 of them. So i saw a checkbox with my name unchecked and i checked it and the icon appeared.
I said this but it turns out not to be true, because Synology creates an admin user and guest user even though in the installation it asks the name of the admin user. So i was under the assumption that (because of the installation) the admin user was my user account. |
@flip111 Thanks for reporting back. And glad that the solution was so straight-forward after all. I was seriously worried that Synology had changed intrinsics of their DSM system again. I'll PR the "https fix" and all should be fine. Thanks again for testing. |
@ymartin59 ^^ FYI. |
after a few days of frustration, I was lucky and finally discovered the addtional knobs in the Synology Browser GUI which allow to open a GateOne terminal via the Nginx server of my Synology station, without going through nasty configuration files on the command line.
|
@paicl01 I try to follow your tip. But although I have just like you the HSTS option NOT checkmarked, the browser(Chrome, Edge, FireFox) throws an the error 'Your connection is not private'. Under 'Advanced' it says; "You cannot visit gateone.MySynologyHomestationName.synology.me right now because the website uses HSTS." "MySynologyHomestationName" is a replacement of the real name of my synology NAS. |
Can anybody from SynoCommunity compile a new Gateone package for DSM 6? After the release of DSM 6, GateOne isnt working anymore. I used this webbased ssh client alot.
DS214+
DSM 6.0-7321 Update 6
Problem: Package fails to run after clicking "Run" in package center, and automatically stops again.
Tried to reinstall gateone several times, and rebooting NAS. Doesnt work. If i need to test something, let me know.
gateone.log
[I 160523 13:33:35 server:4179] Gate One License: AGPLv3 (http://www.gnu.org/licenses/agpl-.0.html) [I 160523 13:33:35 server:4188] Imported applications: Terminal [I 160523 13:33:35 server:4340] Version: 1.2.0 (20151116212858) [I 160523 13:33:35 server:4341] Tornado version 4.3 [I 160523 13:33:35 server:4361] Connections to this server will be allowed from the following origins: '*' [I 160523 13:33:35 server:4380] No SSL private key found. One will be generated. [I 160523 13:33:47 server:4384] No SSL certificate found. One will be generated. [I 160523 13:33:49 server:3678] No authentication method configured. All users will be ANONYMOUS [I 160523 13:33:49 server:3759] Loaded global plugins: gateone.plugins.editor, gateone.plugins.help
The text was updated successfully, but these errors were encountered: