Skip to content
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

Debian chroot #1910

Closed
superpippo82xxx opened this issue Nov 4, 2015 · 50 comments
Closed

Debian chroot #1910

superpippo82xxx opened this issue Nov 4, 2015 · 50 comments
Labels

Comments

@superpippo82xxx
Copy link

Debian chroot not working good after dsm6 update.
After update service start and i can ssh but i can't change anything form webpage.
Overview page is always loading... and no service are listed.
Thanks

Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

@cytec
Copy link
Member

cytec commented Nov 4, 2015

see #1880 (comment)
DSM 6 is still in BETA and there are no toolchains provided by synology...

@Dr-Bean Dr-Bean added the dsm 6 label Nov 6, 2015
@doychi
Copy link

doychi commented Feb 20, 2016

I notice the tool chain has been released for DSM 6 (https://sourceforge.net/projects/dsgpl/files/).

I'm not familiar with C, but would like to help when and where I can.

@cytec
Copy link
Member

cytec commented Feb 21, 2016

@doychi those are beta toolchains, we are not going to use them until the final version is out... even if that happened most likely you'll have to wait some time till a dev updates to 6.0 and recompiles packages...

@R1skNt
Copy link

R1skNt commented Apr 15, 2016

@Dr-Bean the problem still exists after the last update 8.4-7 of chroot

@Dr-Bean
Copy link
Contributor

Dr-Bean commented Apr 15, 2016

@R1skNt Not very surprising, the recent package update has no relation with DSM6.

@mcondarelli
Copy link

Are there any news on this?
The stable toolchains for DSM-6.0 are out (see: SourceForge link), but I guess some developer will have to (at least) recompile.
I am not sure this is just a recompilation issue, something might have changed in the interfaces.
I am willing to help (I'm interested mainly in the Avoton port for my DS415+), but I know nothing about the graphical interfaces on DSM.

@Toka69
Copy link

Toka69 commented May 10, 2016

Hello.
I try to recompile Debian-chroot for DS414 Armadaxp. I installed Ubuntu in Virtualbox. However, the organization of the toolchain does not correspond any more to the guide of the developer based on DSM5.0
What complicates me the task. If I success, I would announce my results here.

@Toka69
Copy link

Toka69 commented May 14, 2016

For the moment my tries are fruitless. If somebody manages to compile and to make the package with the toolchain for DSM 6 I am interested.
While waiting for the update of the repository.
Thank you.

@ghost
Copy link

ghost commented Jun 12, 2016

how fix this, work around? :(

@Ulli2k
Copy link

Ulli2k commented Jul 28, 2016

any solution available?

@Toka69
Copy link

Toka69 commented Sep 10, 2016

Hi
After months, I retry to find a solution to automaticaly launch some services in chroot when the NAS boot.
And you know what, I tried and it works great. So, the web based demon configuration is not necessary.
In DSM 6, go to -> control panel -> Task Scheduler
Then create a Triggered Task
In the General section select a name for the task, for user select an admin user, for event select Boot-up and ticked Enabled.
In the Task Settings section, insert in Run command :

CHROOT=/volume1/@appstore/debian-chroot/var/chroottarget
mount -o bind /dev $CHROOT/dev
mount -o bind /proc $CHROOT/proc
mount -o bind /dev/pts $CHROOT/dev/pts
mount -o bind /sys $CHROOT/sys
cp /etc/resolv.conf $CHROOT/etc/resolv.conf
cp /etc/hosts $CHROOT/etc/hosts
#below, an example to launch postgresql previously installed
chroot $CHROOT /etc/init.d/postgresql start

Of course, at the first line volume1 must be replaced by the volume where the packages are installed.

@teejay-87
Copy link

@Toka69
Thank you very much! Finally, I managed to get it working on startup!

But, I'm not a linux expert.

I want to ask the following:
Can those mountings affect the functionality of DiskStation in any way?
AFAIK, you are mapping important "system" path of Linux to other locations...

@belkone
Copy link

belkone commented Oct 15, 2016

Is there a chance to rectify the problem with the Web GUI?

@mcondarelli
Copy link

My feeling is SynoCommunity is not working on DSM6 at all. At least I cannot see any sign of activity here on github.
I sincerely hope to be proved wrong.
This is a real shame because debian-chroot is (was?) a very useful add-on.
I am currently holding to DSM 5.2 for this very reason, but I will have to upgrade, sooner or later.
Apparently everybody jumped on "Docker" bandwagon.

@belkone
Copy link

belkone commented Oct 15, 2016

I feel the same, such a sad truth.. ;<
I will try to find a solution for this problem, let You know, if I solve this issue.

@mcondarelli
Copy link

@belkone This specific seems connected to some permission/executable change (see milanaleksic comment on #2207), but the bad thing is I see no trace of DSM6 in spksrc/kernel.

@belkone
Copy link

belkone commented Oct 15, 2016

@mcondarelli I solved this issue, in DSM6 was made a change in 3rd party packages URL.

For fix SynoCommunity's Debian-Chroot Web GUI on DSM6:
We have to edit file:
/var/packages/debian-chroot/target/app/debian-chroot.js
and change lines, from:
"url": "3rdparty/debian-chroot/debian-chroot.cgi/direct/router",
to:
"url": "/webman/3rdparty/debian-chroot/debian-chroot.cgi/direct/router",
and:
'url': '3rdparty/debian-chroot/debian-chroot.cgi/direct/poller',
to:
'url': '/webman/3rdparty/debian-chroot/debian-chroot.cgi/direct/poller',
After that, web interface is working again ;)

Edit:
workaround to the problem of closing UI: #1910 (comment)

@teejay-87
Copy link

teejay-87 commented Oct 15, 2016

@belkone Thanks for the fix! Still the window refuses to close :D

@belkone
Copy link

belkone commented Oct 15, 2016

@teejay-87 you're welcome!
I will try to fix closing the window when I find some time, then I will post solution here ;)

@mcondarelli
Copy link

@belkone There are actually two instances of "3rdparty/debian-chroot/debian..." I changed them into:

debian-chroot.js:    "url": "3rdparty/debian-chroot/debian-chroot.cgi/direct/router",
debian-chroot.js:    'url': '3rdparty/debian-chroot/debian-chroot.cgi/direct/poller',

(without leading slash)

@belkone
Copy link

belkone commented Oct 16, 2016

@mcondarelli I already added 'Pooler' line to my fix-comment ;)

@Matioupi
Copy link

Matioupi commented Nov 1, 2016

Thanks for the workaround, this solves the UI with the infinite refresh.
Any news on the "close" capability ?

@Matioupi
Copy link

Matioupi commented Nov 1, 2016

why do you remove the call to the parent class ?

SYNOCOMMUNITY.DebianChroot.AppWindow.superclass.onClose.apply(this, arguments);

@belkone
Copy link

belkone commented Nov 1, 2016

I think it's not important here, because we're calling doClose() and onDeactivate() directly on the calling element (this) but I may be wrong.

@sorcer1122
Copy link

Guys, you are amazing!!!

@teejay-87
Copy link

@belkone
I'm reading now, thanks for your solution!

I know Sencha a bit (Syno interface is made with an old Sencha version), and I think your solution is acceptable and it has probably no other consequences.

Probably something broke with superclass call (apply simply calls a function with specified scope and arguments) in DSM 6.0, but the JS source is compacted so it's hard to find what is failing.

But, as you already stated, I think that calling doClose() and onDeactivate() on this will suffice.

@monochromec
Copy link

Issue reared its ugly head again in DSM 6.0.2-8451-2. Upgrade to 6.0.2-8451-9 didn't help: "Overview" progress indicator keeps spinning and "Services" tab is empty. belkone's workaround unfortunately didn't help.

More than happy to provide additional information, just let me know.

@Masterfion
Copy link

Hello :)
Same here !

@ph3x
Copy link

ph3x commented Jan 28, 2017

I'm also affected by the issue described by monochromec.
System is a DS412+ with DSM 6.0.2-8451 Update 9

If any logs can be provided I'm glad to help.

Cheers,
Christian

@computaholic
Copy link

computaholic commented Feb 8, 2017

Any news on this? I am also affected. I am happy to debug if anything is needed.

EDIT: Is there any way to register services without the gui?

@lepennec
Copy link

Dear all,
I've made the fixes proposed by @belkone and they seem to work for me... (DSM 6 and DS716+II)
Erwan

@jpearn
Copy link

jpearn commented Feb 26, 2017

@belkone fix working on DSM 6.1 thanks !

@bonzini
Copy link

bonzini commented Mar 11, 2017

DSM 6.1 here, I also needed to ./pip install click from /volume1/@appstore/debian-chroot/env/bin; after doing that it worked.

@popplegit
Copy link

Also seeing the infinite 'loading' problem for debian-chroot, with DSM6.1 on a DS716+ii
I've tried the fixes above (3rdparty -> /webman/3rdparty, edit onClose, and pip install click) but no joy.
Any suggestions please how even to investigate this? Couldn't find anything useful in /var/log
Thanks!

@popplegit
Copy link

less haste, less red face... Working fine following reboot!

@nimbling
Copy link

Following these edits AND A REBOOT this now kinda-sorta works for me, too :)

@jaylik
Copy link

jaylik commented Apr 17, 2017

Hmm... still,
:5000/webman/3rdparty/debian-chroot/debian-chroot.cgi/direct/router 405 (Not Allowed)

@Flash226
Copy link

I need autostart cron service after restart DSM. How can I do it?

@ElanHasson
Copy link

you have to login and logout.

@bruor
Copy link

bruor commented Jun 13, 2017

I'm on a DS1512+ DSM 6.1.1-15101 Update 4

I've attempted to make the edits here to get things working by replacing the lines dealing with 3rdparty urls and the change that belkone suggested for making the close function work.

However, now the debian chroot app won't even open within DSM. Anyone got any ideas on what I might need to do to make it work?

I manually installed pip as root, and did a "pip install click" but even after reboot the chroot app won't launch.

EDIT: after figuring out that I had to run pip locally inside the flexget env to get the qbittorrent plugin to work, I attempted to run "pip install click" from within the debian chroot package target folders but there was no change in behavior after a reboot.

@ghost
Copy link

ghost commented Jun 30, 2017

@bruor
I have just python installed from package center. In /volume1/@app*/python/bin is placed the pip binary. With ./pip install click and reboot my gui runs without freezer (and with webman workarounds)

@bruor
Copy link

bruor commented Jun 30, 2017

My @app* put me in @appstore. I installed click as root and rebooted. No change in UI, the debian logo shows up at the top and shows the little spinning symbol indefinitely.

@ghost
Copy link

ghost commented Jun 30, 2017

"*" is the symbol for wildcard, @appstore is correct.
Du you install click from python binaries? Im not sure but i think python package has to be installed for chroot.
If you edited the close function in debian-chroot.js, please check the brackets {} and the comma after closing bracket " }, ". If there is a error in this syntax, chroot will not start. I had similar issues in other js-files on my raspberry. Compare your syntax with the workaround from post above.

@bruor
Copy link

bruor commented Jun 30, 2017

I'm not sure what that means. At this point I've SSH'd an and installed click in that shell, within the app store folder, and within the debian chroot app folder.

I've also logged into the chroot and made sure it's installed there.

I'll check the markup on that bracket later, currently the chroot works, it's loading all my services I just can't use the Synology app to admin it etc. The startup services I defined for the chroot on DSM5 are auto starting without issue.

@ghost
Copy link

ghost commented Jun 30, 2017

Ok my fault, only webgui didn't start, i thought chroot didn't run at all.

@VinxItak
Copy link

DSM 6.1.3-15152 Update 3, still have the problem (overview is loading).
3rdparty -> /webman/3rdparty : no change
edit onClose : works, i can close the debian chroot window
pip install click : no change
reboot : no change

@AGagarin
Copy link

AGagarin commented Jun 17, 2020

3rdparty -> /webman/3rdparty
edit onClose
pip install click

on the top of Auth.py add

import sys

For src/debian-chroot update all the files above.
WHEELS = pyextdirect==0.3.1 flask click Werkzeug Jinja2 itsdangerous

Have checked on DS918+ apollolake. XPenology 6.2.3
Gui is not displaying updates correctly need to fixed, but service status is Ok

@hgy59 hgy59 closed this as not planned Won't fix, can't repro, duplicate, stale Apr 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: Not planned
Development

No branches or pull requests