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

After installation, it gets stuck after startup #45

Open
Diluka opened this issue Sep 4, 2024 · 8 comments
Open

After installation, it gets stuck after startup #45

Diluka opened this issue Sep 4, 2024 · 8 comments

Comments

@Diluka
Copy link

Diluka commented Sep 4, 2024

rr: 24.7.1
manager: 2.0.79

image

SYNOCOMMUNITY.RRManager.AppInstance launch failed:  TypeError: Cannot read properties of null (reading 'rr_manager_config')

Uncaught SyntaxError: Unexpected end of JSON input

/webman/3rdparty/rr-manager/webapi/getRrReleaseInfo.cgi this request return empty content

# curl https://api.github.com/repos/RROrg/rr/releases/latest
curl: (35) error:0A000410:SSL routines::sslv3 alert handshake failure

python deps maybe install failed, check /var/log/packages/rr-manager.log

solution

add -x (--proxy) option to curl, modify file /var/packages/rr-manager/target/app/scripts/getRrReleaseInfo.cgi

response=$(curl -s "${URL}")

@LanceTsen
Copy link

How to modify? --> response=$(curl -s -x "${URL}") ?

@Diluka
Copy link
Author

Diluka commented Sep 6, 2024 via email

@LanceTsen
Copy link

The problem is due to github cannot be accessed directly from China and need to set proxy.
response=$(curl -s -x 'proxyserver address':'port'--proxy-user 'youname':'password' "${URL}")

@T-REX-XP
Copy link
Owner

The problem is due to github cannot be accessed directly from China and need to set proxy. response=$(curl -s -x 'proxyserver address':'port'--proxy-user 'youname':'password' "${URL}")

Can you try the latest version of RRM? I manage to add the proxy support from DSM control center.

@Diluka
Copy link
Author

Diluka commented Jan 10, 2025

all if(typeof response?.responseText === 'string') should be change to if(response?.responseText)

because it try to parse empty string to json without error catch

@Diluka
Copy link
Author

Diluka commented Jan 10, 2025

if (!self.installed) {
//create rr tmp folder
self.rrManagerConfig = self.rrConfig.rr_manager_config;
SYNO.API.currentManager.requestAPI('SYNO.FileStation.CreateFolder', "create", "2", {
folder_path: `/${self.rrManagerConfig.SHARE_NAME}`,
name: self.rrManagerConfig.RR_TMP_DIR,
force_parent: false
});
self.installed = true;
}

self.rrConfig.rr_manager_config will be undefined, you should check before use

@Diluka
Copy link
Author

Diluka commented Jan 10, 2025

ajax to /webman/3rdparty/rr-manager/scripts/getConfig.cgi returns empty string cause rr_manager_config to beundefined

2025/01/10 17:07:48 mv: cannot stat '/volume1/@tmp/synopkg.tmp/rr-manager/rr-manager/config.txt': No such file or directory

@Diluka
Copy link
Author

Diluka commented Jan 10, 2025

I tried latest rr-manager. it's still error

2025/01/10 17:39:54     End syno_sync_var_folder
2025/01/10 17:39:54     Begin service_postinst
2025/01/10 17:39:54     ====================================================
2025/01/10 17:39:54     Python 3.11.10
2025/01/10 17:39:54     Default pip version 24.2
2025/01/10 17:39:56     ====================================================
2025/01/10 17:39:56     Install packages from wheels
2025/01/10 17:39:56     Install packages from wheels [/volume1/@appstore/rr-manager/share/wheelhouse/requirements.txt]
2025/01/10 17:39:56     Looking in links: /volume1/@appstore/rr-manager/share/wheelhouse
2025/01/10 17:39:58     Collecting PyYAML (from -r /volume1/@appstore/rr-manager/share/wheelhouse/requirements.txt (line 1))
2025/01/10 17:40:14       Downloading PyYAML-6.0.2-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (2.1 kB)
2025/01/10 17:40:14     Downloading PyYAML-6.0.2-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (762 kB)
2025/01/10 17:40:35        ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 763.0/763.0 kB 35.3 kB/s eta 0:00:00
2025/01/10 17:40:35     Installing collected packages: PyYAML
2025/01/10 17:40:35     Successfully installed PyYAML-6.0.2
2025/01/10 17:40:35     Installed modules:
2025/01/10 17:40:36     certifi==2024.8.30
2025/01/10 17:40:36     distlib==0.3.8
2025/01/10 17:40:36     filelock==3.16.1
2025/01/10 17:40:36     platformdirs==4.3.6
2025/01/10 17:40:36     PyYAML==6.0.2
2025/01/10 17:40:36     six==1.16.0
2025/01/10 17:40:36     virtualenv==20.26.6
2025/01/10 17:40:36     ====================================================
2025/01/10 17:40:36     Install packages to the app/libs folder
2025/01/10 17:41:01     ERROR: Could not find a version that satisfies the requirement PyYAML (from versions: none)
2025/01/10 17:41:01     ERROR: No matching distribution found for PyYAML
2025/01/10 17:41:07     ====================================================
2025/01/10 17:41:07     Populate config.txt
2025/01/10 17:41:07     End service_postinst
2025/01/10 17:41:07     install rr-manager 2.0-79 End postinst ret=[0]
2025/01/10 17:41:07     install rr-manager 2.0-79 Begin start-stop-status start
2025/01/10 17:41:07     install rr-manager 2.0-79 End start-stop-status start ret=[0]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants