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

ps3netserv not starting on DS916 DSM6.1 #3399

Closed
soapy01 opened this issue Jul 25, 2018 · 35 comments
Closed

ps3netserv not starting on DS916 DSM6.1 #3399

soapy01 opened this issue Jul 25, 2018 · 35 comments

Comments

@soapy01
Copy link

soapy01 commented Jul 25, 2018

For new Package Requests, see the guidelines

Setup

Package Name: PS3netsrv
Package Version: 1.47.08-2

NAS Model: DS916
NAS Architecture: Braswell
DSM version: DSM 6.1.7-15284 Update 2

Expected behavior

Package should start

Actual behavior

Package did not start

Steps to reproduce

1. Install package
2. Run package
3. Package does not run

Package log

Check Package Center or /usr/local/{package}/var/

Thu Jul 26 00:45:12 CEST 2018
Starting ps3netsrv command /bin/stdbuf -o L -e L /volume1/@appstore/ps3netsrv/bin/ps3netsrv
/volume1/@appstore/ps3netsrv/bin/ps3netsrv: /lib/libstdc++.so.6: no version information available (required by /volume1/@appstore/ps3netsrv/bin/ps3netsrv)
/volume1/@appstore/ps3netsrv/bin/ps3netsrv: /lib/libstdc++.so.6: no version information available (required by /volume1/@appstore/ps3netsrv/bin/ps3netsrv)
ps3netsrv build 20170310 (mod by aldostools)

Usage: ps3netsrv [rootdirectory] [port] [whitelist]

 Default port: 38008

 Whitelist: x.x.x.x, where x is 0-255 or *
 (e.g 192.168.1.* to allow only connections from 192.168.1.0-192.168.1.255)

Other logs

E.g. /var/log/messages or /var/log/synopkg.log

/var/log/messages/:

2018-07-25T01:16:08+02:00 Diskstation916 kernel: [709303.748637] net_ratelimit: 3 callbacks suppressed
2018-07-25T16:58:45+02:00 Diskstation916 builtin-dyn-myds-job: myds_report_info.cpp:118 Failed to query service check, resp={"code":"badparam"}
2018-07-25T16:58:45+02:00 Diskstation916 builtin-dyn-myds-job: synomyds.cpp:137 Failed to report MyDS info, code=1
2018-07-25T22:25:28+02:00 Diskstation916 synoscgi_SYNO.Core.Package.Installation_1_install[8906]: resource_api.cpp:163 Acquire service-cfg for ps3netsrv when 0x0001 (done)
2018-07-25T22:33:18+02:00 Diskstation916 synoscgi_SYNO.Core.Package.Uninstallation_1_uninstall[12434]: resource_api.cpp:231 Release service-cfg for ps3netsrv when 0x0004 (done)
2018-07-25T22:33:21+02:00 Diskstation916 synodrnode: Delete session of user[sc-ps3netsrv] by user-delete hook
2018-07-25T22:33:49+02:00 Diskstation916 synoscgi_SYNO.Core.Package.Installation_1_install[13247]: resource_api.cpp:163 Acquire service-cfg for ps3netsrv when 0x0001 (done)
2018-07-25T22:34:15+02:00 Diskstation916 synoscgi_SYNO.Docker.Registry_1_tags[13946]: util.cpp:296 Fail to query url=https://hub.docker.com/v2/repositories/library/mccloud/ps3netsrv/tags/?page=1&page_size=100, CURLcode=22, err=Error
2018-07-25T22:34:15+02:00 Diskstation916 synoscgi_SYNO.Docker.Registry_1_tags[13946]: util.cpp:298 httpCode=404
2018-07-25T22:34:25+02:00 Diskstation916 synoscgi_SYNO.Docker.Registry_1_tags[14023]: util.cpp:296 Fail to query url=https://hub.docker.com/v2/repositories/library/dreamcat4/ps3netsrv/tags/?page=1&page_size=100, CURLcode=22, err=Error
2018-07-25T22:34:25+02:00 Diskstation916 synoscgi_SYNO.Docker.Registry_1_tags[14023]: util.cpp:298 httpCode=404
2018-07-25T22:34:39+02:00 Diskstation916 synoscgi_SYNO.Core.Package.Uninstallation_1_uninstall[14121]: resource_api.cpp:231 Release service-cfg for ps3netsrv when 0x0004 (done)
2018-07-25T22:34:43+02:00 Diskstation916 synodrnode: Delete session of user[sc-ps3netsrv] by user-delete hook
2018-07-25T22:34:59+02:00 Diskstation916 synoscgi_SYNO.Docker.Image_1_pull_start[14029]: mail_read_by_tag_and_convert.c (656) Bad email format.
Onderwerp: Docker-image: downloaden van docker.io/dreamcat4/ps3netsrv is voltooid.
2018-07-25T22:34:59+02:00 Diskstation916 synoscgi_SYNO.Docker.Image_1_pull_start[14029]: mail_read_by_tag_and_convert.c (766) Failed to get subject and content from temp file.
2018-07-25T22:34:59+02:00 Diskstation916 synoscgi_SYNO.Docker.Image_1_pull_start[14029]: sysnotify_send_notification.c:222 Failed to get mail content.
2018-07-25T22:34:59+02:00 Diskstation916 synoscgi_SYNO.Docker.Image_1_pull_start[14029]: image.cpp:982 Fail to send notification.
2018-07-25T22:37:12+02:00 Diskstation916 kernel: [786167.033335] aufs au_opts_verify:1571:dockerd[18734]: dirperm1 breaks the protection by the permission bits on the lower branch
2018-07-25T22:37:13+02:00 Diskstation916 kernel: [786167.520081] aufs au_opts_verify:1571:dockerd[18734]: dirperm1 breaks the protection by the permission bits on the lower branch
2018-07-25T22:37:16+02:00 Diskstation916 kernel: [786170.673474] aufs au_opts_verify:1571:dockerd[19660]: dirperm1 breaks the protection by the permission bits on the lower branch
2018-07-25T22:37:20+02:00 Diskstation916 ntpd[8140]: bind(34) AF_INET6 fe80::d80c:5dff:fec8:cbf8%56#123 flags 0x11 failed: Cannot assign requested address
2018-07-25T22:37:20+02:00 Diskstation916 ntpd[8140]: unable to create socket on docker4478e79 (35) for fe80::d80c:5dff:fec8:cbf8%56#123
2018-07-25T22:58:26+02:00 Diskstation916 synonetd: net_if_is_bonding_slave.c:46 Cannot get flags of network interface: No such device
2018-07-25T22:58:26+02:00 Diskstation916 synonetd: net_if_is_bonding_slave.c:46 Cannot get flags of network interface: No such device
2018-07-25T22:58:45+02:00 Diskstation916 synonetd: SYSTEM:  Last message 'net_if_is_bonding_sl' repeated 1 times, suppressed by syslog-ng on Diskstation916
2018-07-25T22:58:45+02:00 Diskstation916 kernel: [787459.829672] aufs au_opts_verify:1571:dockerd[18768]: dirperm1 breaks the protection by the permission bits on the lower branch
2018-07-25T22:58:50+02:00 Diskstation916 kernel: [787464.422800] aufs au_opts_verify:1571:dockerd[18888]: dirperm1 breaks the protection by the permission bits on the lower branch
2018-07-25T23:25:25+02:00 Diskstation916 synonetd: net_if_is_bonding_slave.c:46 Cannot get flags of network interface: No such device
2018-07-25T23:25:25+02:00 Diskstation916 synonetd: net_if_is_bonding_slave.c:46 Cannot get flags of network interface: No such device
2018-07-25T23:25:25+02:00 Diskstation916 synonetd: net_if_is_bonding_slave.c:46 Cannot get flags of network interface: No such device
2018-07-25T23:42:07+02:00 Diskstation916 kernel: [790061.943220] aufs au_opts_verify:1571:dockerd[20616]: dirperm1 breaks the protection by the permission bits on the lower branch
2018-07-25T23:43:34+02:00 Diskstation916 kernel: [790148.265754] aufs au_opts_verify:1571:dockerd[20314]: dirperm1 breaks the protection by the permission bits on the lower branch
2018-07-25T23:43:38+02:00 Diskstation916 ntpd[8140]: bind(34) AF_INET6 fe80::202e:17ff:fe07:c52f%60#123 flags 0x11 failed: Cannot assign requested address
2018-07-25T23:43:38+02:00 Diskstation916 ntpd[8140]: unable to create socket on docker5b1adf2 (38) for fe80::202e:17ff:fe07:c52f%60#123
2018-07-25T23:50:10+02:00 Diskstation916 synonetd: net_if_is_bonding_slave.c:46 Cannot get flags of network interface: No such device
2018-07-25T23:50:10+02:00 Diskstation916 synonetd: net_if_is_bonding_slave.c:46 Cannot get flags of network interface: No such device
2018-07-25T23:50:22+02:00 Diskstation916 synonetd: SYSTEM:  Last message 'net_if_is_bonding_sl' repeated 2 times, suppressed by syslog-ng on Diskstation916
2018-07-25T23:50:22+02:00 Diskstation916 synoscgi_SYNO.Docker.Registry_1_tags[8658]: util.cpp:296 Fail to query url=https://hub.docker.com/v2/repositories/library/mccloud/ps3netsrv/tags/?page=1&page_size=100, CURLcode=22, err=Error
2018-07-25T23:50:22+02:00 Diskstation916 synoscgi_SYNO.Docker.Registry_1_tags[8658]: util.cpp:298 httpCode=404
2018-07-25T23:51:00+02:00 Diskstation916 synoscgi_SYNO.Docker.Image_1_pull_start[8907]: mail_read_by_tag_and_convert.c (656) Bad email format.
Onderwerp: Docker-image: downloaden van docker.io/mccloud/ps3netsrv is voltooid.
2018-07-25T23:51:00+02:00 Diskstation916 synoscgi_SYNO.Docker.Image_1_pull_start[8907]: mail_read_by_tag_and_convert.c (766) Failed to get subject and content from temp file.
2018-07-25T23:51:00+02:00 Diskstation916 synoscgi_SYNO.Docker.Image_1_pull_start[8907]: sysnotify_send_notification.c:222 Failed to get mail content.
2018-07-25T23:51:00+02:00 Diskstation916 synoscgi_SYNO.Docker.Image_1_pull_start[8907]: image.cpp:982 Fail to send notification.
2018-07-25T23:53:11+02:00 Diskstation916 kernel: [790725.580770] aufs au_opts_verify:1571:dockerd[20616]: dirperm1 breaks the protection by the permission bits on the lower branch
2018-07-25T23:53:11+02:00 Diskstation916 kernel: [790725.922301] aufs au_opts_verify:1571:dockerd[20616]: dirperm1 breaks the protection by the permission bits on the lower branch
2018-07-25T23:53:12+02:00 Diskstation916 kernel: [790727.029547] aufs au_opts_verify:1571:dockerd[20616]: dirperm1 breaks the protection by the permission bits on the lower branch
2018-07-25T23:59:19+02:00 Diskstation916 synonetd: net_if_is_bonding_slave.c:46 Cannot get flags of network interface: No such device
2018-07-25T23:59:19+02:00 Diskstation916 synonetd: net_if_is_bonding_slave.c:46 Cannot get flags of network interface: No such device
2018-07-25T23:59:19+02:00 Diskstation916 synonetd: net_if_is_bonding_slave.c:46 Cannot get flags of network interface: No such device
2018-07-26T00:00:20+02:00 Diskstation916 kernel: [791155.157014] aufs au_opts_verify:1571:dockerd[19660]: dirperm1 breaks the protection by the permission bits on the lower branch
2018-07-26T00:00:23+02:00 Diskstation916 kernel: [791157.598275] aufs au_opts_verify:1571:dockerd[20299]: dirperm1 breaks the protection by the permission bits on the lower branch
2018-07-26T00:02:59+02:00 Diskstation916 synonetd: net_if_is_bonding_slave.c:46 Cannot get flags of network interface: No such device
2018-07-26T00:02:59+02:00 Diskstation916 synonetd: net_if_is_bonding_slave.c:46 Cannot get flags of network interface: No such device
2018-07-26T00:03:40+02:00 Diskstation916 synonetd: SYSTEM:  Last message 'net_if_is_bonding_sl' repeated 1 times, suppressed by syslog-ng on Diskstation916
2018-07-26T00:03:40+02:00 Diskstation916 kernel: [791355.131677] aufs au_opts_verify:1571:dockerd[21883]: dirperm1 breaks the protection by the permission bits on the lower branch
2018-07-26T00:03:42+02:00 Diskstation916 kernel: [791357.005693] aufs au_opts_verify:1571:dockerd[21883]: dirperm1 breaks the protection by the permission bits on the lower branch
2018-07-26T00:06:02+02:00 Diskstation916 synonetd: net_if_is_bonding_slave.c:46 Cannot get flags of network interface: No such device
2018-07-26T00:06:02+02:00 Diskstation916 synonetd: net_if_is_bonding_slave.c:46 Cannot get flags of network interface: No such device
2018-07-26T00:06:42+02:00 Diskstation916 synonetd: SYSTEM:  Last message 'net_if_is_bonding_sl' repeated 1 times, suppressed by syslog-ng on Diskstation916
2018-07-26T00:06:42+02:00 Diskstation916 synoscgi_SYNO.Docker.Registry_1_tags[16925]: util.cpp:296 Fail to query url=https://hub.docker.com/v2/repositories/library/shawly/ps3netsrv/tags/?page=1&page_size=100, CURLcode=22, err=Error
2018-07-26T00:06:42+02:00 Diskstation916 synoscgi_SYNO.Docker.Registry_1_tags[16925]: util.cpp:298 httpCode=404
2018-07-26T00:07:03+02:00 Diskstation916 synoscgi_SYNO.Docker.Image_1_pull_start[17007]: mail_read_by_tag_and_convert.c (656) Bad email format.
Onderwerp: Docker-image: downloaden van docker.io/shawly/ps3netsrv is voltooid.
2018-07-26T00:07:03+02:00 Diskstation916 synoscgi_SYNO.Docker.Image_1_pull_start[17007]: mail_read_by_tag_and_convert.c (766) Failed to get subject and content from temp file.
2018-07-26T00:07:03+02:00 Diskstation916 synoscgi_SYNO.Docker.Image_1_pull_start[17007]: sysnotify_send_notification.c:222 Failed to get mail content.
2018-07-26T00:07:03+02:00 Diskstation916 synoscgi_SYNO.Docker.Image_1_pull_start[17007]: image.cpp:982 Fail to send notification.
2018-07-26T00:08:30+02:00 Diskstation916 kernel: [791644.732892] aufs au_opts_verify:1571:dockerd[20299]: dirperm1 breaks the protection by the permission bits on the lower branch
2018-07-26T00:08:30+02:00 Diskstation916 kernel: [791645.016823] aufs au_opts_verify:1571:dockerd[20299]: dirperm1 breaks the protection by the permission bits on the lower branch
2018-07-26T00:08:58+02:00 Diskstation916 kernel: [791672.555088] aufs au_opts_verify:1571:dockerd[19663]: dirperm1 breaks the protection by the permission bits on the lower branch
2018-07-26T00:09:01+02:00 Diskstation916 kernel: [791676.184231] aufs au_opts_verify:1571:dockerd[21883]: dirperm1 breaks the protection by the permission bits on the lower branch
2018-07-26T00:10:50+02:00 Diskstation916 synonetd: net_if_is_bonding_slave.c:46 Cannot get flags of network interface: No such device
2018-07-26T00:10:50+02:00 Diskstation916 synonetd: net_if_is_bonding_slave.c:46 Cannot get flags of network interface: No such device
2018-07-26T00:11:03+02:00 Diskstation916 synonetd: SYSTEM:  Last message 'net_if_is_bonding_sl' repeated 1 times, suppressed by syslog-ng on Diskstation916
2018-07-26T00:11:03+02:00 Diskstation916 kernel: [791797.371049] aufs au_opts_verify:1571:dockerd[18888]: dirperm1 breaks the protection by the permission bits on the lower branch
2018-07-26T00:11:25+02:00 Diskstation916 synonetd: net_if_is_bonding_slave.c:46 Cannot get flags of network interface: No such device
2018-07-26T00:11:25+02:00 Diskstation916 synonetd: net_if_is_bonding_slave.c:46 Cannot get flags of network interface: No such device
2018-07-26T00:11:51+02:00 Diskstation916 synonetd: SYSTEM:  Last message 'net_if_is_bonding_sl' repeated 1 times, suppressed by syslog-ng on Diskstation916
2018-07-26T00:11:51+02:00 Diskstation916 synoscgi_SYNO.Docker.Container_1_get_process[21479]: profile.cpp:352 [/var/packages/Docker/etc/shawly-ps3netsrv1.config] does not exist.
2018-07-26T00:11:51+02:00 Diskstation916 synoscgi_SYNO.Docker.Container_1_get[21480]: profile.cpp:352 [/var/packages/Docker/etc/shawly-ps3netsrv1.config] does not exist.
2018-07-26T00:11:51+02:00 Diskstation916 synoscgi_SYNO.Docker.Container_1_get[21480]: container.cpp:733 Error: The container name is empty
2018-07-26T00:12:21+02:00 Diskstation916 synoscgi_SYNO.Docker.Registry_1_tags[21771]: util.cpp:296 Fail to query url=https://hub.docker.com/v2/repositories/library/xioustic/ps3netsrv/tags/?page=1&page_size=100, CURLcode=22, err=Error
2018-07-26T00:12:21+02:00 Diskstation916 synoscgi_SYNO.Docker.Registry_1_tags[21771]: util.cpp:298 httpCode=404
2018-07-26T00:12:36+02:00 Diskstation916 synoscgi_SYNO.Docker.Image_1_pull_start[21776]: mail_read_by_tag_and_convert.c (656) Bad email format.
Onderwerp: Docker-image: downloaden van docker.io/xioustic/ps3netsrv is voltooid.
2018-07-26T00:12:36+02:00 Diskstation916 synoscgi_SYNO.Docker.Image_1_pull_start[21776]: mail_read_by_tag_and_convert.c (766) Failed to get subject and content from temp file.
2018-07-26T00:12:36+02:00 Diskstation916 synoscgi_SYNO.Docker.Image_1_pull_start[21776]: sysnotify_send_notification.c:222 Failed to get mail content.
2018-07-26T00:12:36+02:00 Diskstation916 synoscgi_SYNO.Docker.Image_1_pull_start[21776]: image.cpp:982 Fail to send notification.
2018-07-26T00:13:26+02:00 Diskstation916 kernel: [791941.032597] aufs au_opts_verify:1571:dockerd[12635]: dirperm1 breaks the protection by the permission bits on the lower branch
2018-07-26T00:13:27+02:00 Diskstation916 kernel: [791941.370502] aufs au_opts_verify:1571:dockerd[12635]: dirperm1 breaks the protection by the permission bits on the lower branch
2018-07-26T00:13:28+02:00 Diskstation916 kernel: [791942.481838] aufs au_opts_verify:1571:dockerd[19660]: dirperm1 breaks the protection by the permission bits on the lower branch
2018-07-26T00:16:26+02:00 Diskstation916 synoscgi_SYNO.Docker.Registry_1_tags[23262]: util.cpp:296 Fail to query url=https://hub.docker.com/v2/repositories/library/mccloud/ps3netsrv/tags/?page=1&page_size=100, CURLcode=22, err=Error
2018-07-26T00:16:26+02:00 Diskstation916 synoscgi_SYNO.Docker.Registry_1_tags[23262]: util.cpp:298 httpCode=404
2018-07-26T00:16:30+02:00 Diskstation916 synonetd: net_if_is_bonding_slave.c:46 Cannot get flags of network interface: No such device
2018-07-26T00:16:30+02:00 Diskstation916 synonetd: net_if_is_bonding_slave.c:46 Cannot get flags of network interface: No such device
2018-07-26T00:16:41+02:00 Diskstation916 synonetd: SYSTEM:  Last message 'net_if_is_bonding_sl' repeated 1 times, suppressed by syslog-ng on Diskstation916
2018-07-26T00:16:41+02:00 Diskstation916 synoscgi_SYNO.Docker.Container_1_get[23546]: profile.cpp:352 [/var/packages/Docker/etc/xioustic-ps3netsrv1.config] does not exist.
2018-07-26T00:16:41+02:00 Diskstation916 synoscgi_SYNO.Docker.Container_1_get[23546]: container.cpp:733 Error: The container name is empty
2018-07-26T00:16:44+02:00 Diskstation916 synoscgi_SYNO.Docker.Container_1_get_process[23553]: profile.cpp:352 [/var/packages/Docker/etc/xioustic-ps3netsrv1.config] does not exist.
2018-07-26T00:17:06+02:00 Diskstation916 synoscgi_SYNO.Docker.Image_1_pull_start[23312]: mail_read_by_tag_and_convert.c (656) Bad email format.
Onderwerp: Docker-image: downloaden van docker.io/mccloud/ps3netsrv is voltooid.
2018-07-26T00:17:06+02:00 Diskstation916 synoscgi_SYNO.Docker.Image_1_pull_start[23312]: mail_read_by_tag_and_convert.c (766) Failed to get subject and content from temp file.
2018-07-26T00:17:06+02:00 Diskstation916 synoscgi_SYNO.Docker.Image_1_pull_start[23312]: sysnotify_send_notification.c:222 Failed to get mail content.
2018-07-26T00:17:06+02:00 Diskstation916 synoscgi_SYNO.Docker.Image_1_pull_start[23312]: image.cpp:982 Fail to send notification.
2018-07-26T00:18:23+02:00 Diskstation916 kernel: [792237.970740] aufs au_opts_verify:1571:dockerd[12634]: dirperm1 breaks the protection by the permission bits on the lower branch
2018-07-26T00:18:24+02:00 Diskstation916 kernel: [792238.278272] aufs au_opts_verify:1571:dockerd[12634]: dirperm1 breaks the protection by the permission bits on the lower branch
2018-07-26T00:18:24+02:00 Diskstation916 kernel: [792239.204789] aufs au_opts_verify:1571:dockerd[12635]: dirperm1 breaks the protection by the permission bits on the lower branch
2018-07-26T00:26:21+02:00 Diskstation916 synonetd: net_if_is_bonding_slave.c:46 Cannot get flags of network interface: No such device
2018-07-26T00:26:21+02:00 Diskstation916 synonetd: net_if_is_bonding_slave.c:46 Cannot get flags of network interface: No such device
2018-07-26T00:26:35+02:00 Diskstation916 synonetd: SYSTEM:  Last message 'net_if_is_bonding_sl' repeated 1 times, suppressed by syslog-ng on Diskstation916
2018-07-26T00:26:35+02:00 Diskstation916 synoscgi_SYNO.Core.Package.Installation_1_install[27281]: resource_api.cpp:163 Acquire service-cfg for ps3netsrv when 0x0001 (done)
2018-07-26T00:36:10+02:00 Diskstation916 synoscgi_SYNO.Core.Package.Uninstallation_1_uninstall[30223]: resource_api.cpp:231 Release service-cfg for ps3netsrv when 0x0004 (done)
2018-07-26T00:36:14+02:00 Diskstation916 synodrnode: Delete session of user[sc-ps3netsrv] by user-delete hook
2018-07-26T00:37:06+02:00 Diskstation916 synoscgi_SYNO.Core.Package.Installation_1_install[31231]: resource_api.cpp:163 Acquire service-cfg for ps3netsrv when 0x0001 (done)
2018-07-26T00:42:43+02:00 Diskstation916 synoscgi_SYNO.Core.Package.Uninstallation_1_uninstall[1063]: resource_api.cpp:231 Release service-cfg for ps3netsrv when 0x0004 (done)
2018-07-26T00:42:46+02:00 Diskstation916 synodrnode: Delete session of user[sc-ps3netsrv] by user-delete hook
2018-07-26T00:44:51+02:00 Diskstation916 synoscgi_SYNO.Core.Package.Installation_1_install[2145]: resource_api.cpp:163 Acquire service-cfg for ps3netsrv when 0x0001 (done)
2018-07-26T01:03:38+02:00 Diskstation916 synoscgi_SYNO.Core.Package.Uninstallation_1_uninstall[7349]: resource_api.cpp:231 Release service-cfg for ps3netsrv when 0x0004 (done)
2018-07-26T01:03:39+02:00 Diskstation916 synodrnode: Delete session of user[sc-ps3netsrv] by user-delete hook



/var/log/synopkg.log:

2018/07/26 18:20:17 install ps3netsrv 1.47.08-2 Begin preinst
/volume1/@tmp/pkginstall/scripts/service-setup: line 20: type: service_preinst: not found
2018/07/26 18:20:17 install ps3netsrv 1.47.08-2 End preinst ret=[0]
2018/07/26 18:20:17 install ps3netsrv 1.47.08-2 Begin /bin/mv -f /volume1/@tmp/pkginstall/package /volume1/@appstore/ps3netsrv
2018/07/26 18:20:17 install ps3netsrv 1.47.08-2 End /bin/mv -f /volume1/@tmp/pkginstall/package /volume1/@appstore/ps3netsrv ret=[0]
2018/07/26 18:20:17 install ps3netsrv 1.47.08-2 Begin /bin/rm -rf /var/packages/ps3netsrv
2018/07/26 18:20:17 install ps3netsrv 1.47.08-2 End /bin/rm -rf /var/packages/ps3netsrv ret=[0]
2018/07/26 18:20:18 install ps3netsrv 1.47.08-2 Begin /bin/mkdir -p /var/packages/ps3netsrv
2018/07/26 18:20:18 install ps3netsrv 1.47.08-2 End /bin/mkdir -p /var/packages/ps3netsrv ret=[0]
2018/07/26 18:20:18 install ps3netsrv 1.47.08-2 Begin /bin/mv -f /volume1/@tmp/pkginstall/INFO /var/packages/ps3netsrv/INFO
2018/07/26 18:20:18 install ps3netsrv 1.47.08-2 End /bin/mv -f /volume1/@tmp/pkginstall/INFO /var/packages/ps3netsrv/INFO ret=[0]
2018/07/26 18:20:18 install ps3netsrv 1.47.08-2 Begin /bin/rm -rf /var/packages/ps3netsrv/scripts
2018/07/26 18:20:18 install ps3netsrv 1.47.08-2 End /bin/rm -rf /var/packages/ps3netsrv/scripts ret=[0]
2018/07/26 18:20:18 install ps3netsrv 1.47.08-2 Begin /bin/mv -f /volume1/@tmp/pkginstall/scripts /var/packages/ps3netsrv/scripts
2018/07/26 18:20:18 install ps3netsrv 1.47.08-2 End /bin/mv -f /volume1/@tmp/pkginstall/scripts /var/packages/ps3netsrv/scripts ret=[0]
2018/07/26 18:20:18 install ps3netsrv 1.47.08-2 Begin /bin/rm -rf /var/packages/ps3netsrv/WIZARD_UIFILES
2018/07/26 18:20:18 install ps3netsrv 1.47.08-2 End /bin/rm -rf /var/packages/ps3netsrv/WIZARD_UIFILES ret=[0]
2018/07/26 18:20:18 install ps3netsrv 1.47.08-2 Begin /bin/mv -f /volume1/@tmp/pkginstall/WIZARD_UIFILES /var/packages/ps3netsrv/WIZARD_UIFILES
2018/07/26 18:20:18 install ps3netsrv 1.47.08-2 End /bin/mv -f /volume1/@tmp/pkginstall/WIZARD_UIFILES /var/packages/ps3netsrv/WIZARD_UIFILES ret=[0]
2018/07/26 18:20:18 install ps3netsrv 1.47.08-2 Begin /bin/rm -rf /var/packages/ps3netsrv/conf
2018/07/26 18:20:18 install ps3netsrv 1.47.08-2 End /bin/rm -rf /var/packages/ps3netsrv/conf ret=[0]
2018/07/26 18:20:18 install ps3netsrv 1.47.08-2 Begin /bin/mv -f /volume1/@tmp/pkginstall/conf /var/packages/ps3netsrv/conf
2018/07/26 18:20:18 install ps3netsrv 1.47.08-2 End /bin/mv -f /volume1/@tmp/pkginstall/conf /var/packages/ps3netsrv/conf ret=[0]
2018/07/26 18:20:18 install ps3netsrv 1.47.08-2 Begin postinst
2018/07/26 18:20:18 install ps3netsrv 1.47.08-2 End postinst ret=[0]
2018/07/26 18:20:18 install ps3netsrv 1.47.08-2 Begin /bin/rm -rf /volume1/@tmp/pkginstall
2018/07/26 18:20:18 install ps3netsrv 1.47.08-2 End /bin/rm -rf /volume1/@tmp/pkginstall ret=[0]
2018/07/26 18:20:18 install ps3netsrv 1.47.08-2 successfully
2018/07/26 18:20:18 install ps3netsrv: begin to start version 1.47.08-2
2018/07/26 18:20:19 install ps3netsrv 1.47.08-2 Begin pre-load apparmor
2018/07/26 18:20:19 install ps3netsrv 1.47.08-2 End pre-load apparmor ret=[0]
2018/07/26 18:20:19 install ps3netsrv 1.47.08-2 Begin start-stop-status start
/volume1/@appstore/ps3netsrv/var/ps3netsrv.conf: line 2: folder/Games/PS3/GAMES/: No such file or directory
Starting ps3netsrv ...
/var/packages/ps3netsrv/scripts/service-setup: line 20: type: service_prestart: not found
2018/07/26 18:20:19 install ps3netsrv 1.47.08-2 End start-stop-status start ret=[0]
2018/07/26 18:20:19 install ps3netsrv: start version 1.47.08-2 successfully, result 0
2018/07/26 18:20:25 start ps3netsrv: begin to stop version 1.47.08-2
2018/07/26 18:20:25 start ps3netsrv 1.47.08-2 Begin start-stop-status stop
/volume1/@appstore/ps3netsrv/var/ps3netsrv.conf: line 2: folder/Games/PS3/GAMES/: No such file or directory
ps3netsrv is not running


@BenjV
Copy link

BenjV commented Jul 26, 2018

It is of course useless to show part of logfiles concerning a date 2018/04/27 when you installed the package on 2018/07/26
Please add the part of the logfiles that shows info from the installation of the package you have problems with.

@soapy01
Copy link
Author

soapy01 commented Jul 26, 2018

hello BenjV,

Thanks for your reply. I updated the logs.
A quick analyses reveals that a space in my dir is the cause of my problem
/volume1/Home folder/Games/PS3/GAMES
It only reads folder/GAMES/PS3/GAMES

I solved this by manually editting the conf file to /volume1/Home\folder/Games/PS3/GAMES/

Altough now my ISO files won't load, this is what comes out of the log:

Starting ps3netsrv ...
/var/packages/ps3netsrv/scripts/service-setup: line 20: type: service_prestart: not found
2018/07/26 18:36:30 start ps3netsrv 1.47.08-2 End start-stop-status start ret=[0]
2018/07/26 18:36:30 start ps3netsrv: start version 1.47.08-2 successfully, result 0
2018/07/26 18:36:55 stop ps3netsrv: begin to stop version 1.47.08-2
2018/07/26 18:36:55 stop ps3netsrv 1.47.08-2 Begin start-stop-status stop
Stopping ps3netsrv ...

@BenjV
Copy link

BenjV commented Jul 26, 2018

/volume1/Home\folder/Games/PS3/GAMES/

I see a backslash in this path.
And Home does not exists for the packages installer.
/volume1/Home is on a admin level equal to /volume1/Homes/ and depends on a user login and is not available during package installation.

But the biggest problem is, is that you are on the wrong place for support of this package because it is not a package from the SynoCommunity.

@soapy01
Copy link
Author

soapy01 commented Jul 26, 2018

my folder is /volume1/Home folder/Games/PS3/GAMES
the space between 'Home' and 'folder' causes an issue. I fixed this by adding a backslash.

@BenjV
Copy link

BenjV commented Jul 26, 2018

Why would a space needed to be fixed and how could a \ do that?
And were did you got this package?

@soapy01
Copy link
Author

soapy01 commented Jul 26, 2018

package: https://github.com/SynoCommunity/spksrc/tree/master/spk/ps3netsrv

It works like sshing into my nas, /volume1/Home folder/.. does not work but /volume1/Home\ folder/ does...

@ymartin59
Copy link
Contributor

ymartin59 commented Jul 26, 2018

@BenjV It is: https://synocommunity.com/package/ps3netsrv

@soapy01 I propose you first edit configuration with a system location you may observe from ssh terminal - for instance /volume1/homes/admin/Games where you replace admin with your account name, of simpler path like /volume1/downloads/ if you just create a "downloads" Shared Folder.

@Anonym-tsk May you please help about it?

@soapy01
Copy link
Author

soapy01 commented Jul 26, 2018

@BenjV afbeelding

@ymartin59
Copy link
Contributor

It is possible ps3netsrv does not support "space" in path location. I recommend to change for another location where no space is involved.

@Anonym-tsk
Copy link
Contributor

Anonym-tsk commented Jul 30, 2018

I tried all variants, but solution not found.
If command is SERVICE_COMMAND="/volume1/@appstore/ps3netsrv/bin/ps3netsrv \"/volume2/Temp folder\"", when executed ${SERVICE_COMMAND} it is splitted by whitespace and don't work.
I tried escape, quotes, eval - all don't work.
@ymartin59 can you help me?

@m4tt075
Copy link
Contributor

m4tt075 commented Jul 30, 2018

I'd listen to @ymartin59 and use a foldername without space. Alternatively, you can try to create a symbolic link without space to your folder with space and use the link without space in the service_command.

@BenjV
Copy link

BenjV commented Jul 30, 2018

First of all the path is red form the from the ps3netsrv.conf file so messing with the other script is useless.
You could change the ps3netsrv.conf file like this

PS3_DIR='"/volume1/Temp folder"'

You can seen in the ps3netsrv.log that the start command will change to:

/volume1/@appstore/ps3netsrv/bin/ps3netsrv "/volume1/Temp folder"

Even that will not start the ps3netsrv so the problem is in the application itself that cannot read the commanline correctly.
Only solution is to use a folder without a space.

@ymartin59
Copy link
Contributor

Any of these three invocations works on my system:

/var/packages/ps3netsrv/target/bin/ps3netsrv "/volume2/homes/yma/test space" 7000
/var/packages/ps3netsrv/target/bin/ps3netsrv '/volume2/homes/yma/test space' 7000
/var/packages/ps3netsrv/target/bin/ps3netsrv /volume2/homes/yma/test\ space 7000

Problem comes from "stdbuf" command parsing:

Starting ps3netsrv command /bin/stdbuf -o L -e L /volume1/@appstore/ps3netsrv/bin/ps3netsrv "/volume2/homes/yma/test space" 
/volume1/@appstore/ps3netsrv/bin/ps3netsrv: /lib/libstdc++.so.6: no version information available (required by /volume1/@appstore/ps3netsrv/bin/ps3netsrv)
/volume1/@appstore/ps3netsrv/bin/ps3netsrv: /lib/libstdc++.so.6: no version information available (required by /volume1/@appstore/ps3netsrv/bin/ps3netsrv)
ps3netsrv build 20170310 (mod by aldostools)
Path: "/volume2/homes/yma/test

Wrong port specified.

And I found no way to preserve space on stdbuf command line from PS3_DIR variable.
Probably the only option is to create a startup script to run from stdbuf, which will read configuration file and start ps3netsrv.

@Anonym-tsk
Copy link
Contributor

@ymartin59 @BenjV I think, problem is more global.
Try this simple example:

#!/bin/sh

 DIR="/tmp/Test folder"
 CMD="ls -la"

 mkdir -p "${DIR}"

 SERVICE_COMMAND="${CMD} ${DIR}"

 ${SERVICE_COMMAND}

I don't know how to fix it.

@BenjV
Copy link

BenjV commented Jul 31, 2018

This can be solve by changing the "Input Field Separator "(IFS) into something else then a space.
In the below example I changed it to a ~.
Remember that all command separators must now be a ~ and not a space after you change IFS.

#!/bin/sh

SAVEDIFS=${IFS}
IFS='~'

DIR="/tmp/Test folder"
CMD="ls~-la~"

SERVICE_COMMAND="${CMD}${DIR}"

${SERVICE_COMMAND}
IFS=${SAVEDIFS}

@Anonym-tsk
Copy link
Contributor

@BenjV very strange hack

@BenjV
Copy link

BenjV commented Jul 31, 2018

Not strange at all.
It is a long standing solution.
When unix was developed filenames with spaces were not allowed and so all the shell scripting tools have more or less problems with them.
On unix system everybody still uses an underscore in stead of a space.
A command like

ls -la /tmp/Test Folder

does also not function and should be quoted like

ls -la "/tmp/Test Folder"

But quoting becomes problematic with nested shell commands, so changing IFS is much simpeler.

@ymartin59
Copy link
Contributor

My question: is stdbuf really required here? if not, basic background execution should handle single quoting of path containing space

@Anonym-tsk
Copy link
Contributor

It doesn't work without stdbuf too

@Anonym-tsk
Copy link
Contributor

@BenjV your hack is not solution.
I can set IFS before call ${SERVICE_COMMAND}, but i can't revert it after, because ${SERVICE_COMMAND} called in SSS script.

@BenjV
Copy link

BenjV commented Aug 1, 2018

You could change the ${SERVICE_COMMAND} by replacing all the spaces in that line with ~
Then change the start-stop-status file where it is used like this:

SAVEDIFS=${IFS}
if [ -n "${SVC_CWD}" ]; then
cd "${SVC_CWD}"
fi
if [ -z "${SVC_BACKGROUND}" ]; then
IFS='~'
${SERVICE_COMMAND} >> ${OUT} 2>&1
else
${SERVICE_COMMAND} >> ${OUT} 2>&1 &
fi
IFS=${SAVEDIFS}

But that would only work for DSM 6 start command.

I would suggest to leave it as it is and just stipulate that shares with spaces in the name are not allowed.

@BenjV
Copy link

BenjV commented Aug 1, 2018

Ok I found a better solution.
The foldername has to be expanded by surrounding it with double quotes and the result of that should be surrounded by single quotes to prevent it from expanding again which will cause the space problem.
And of course the total expression must be surrounded by double quotes again.
So change the ${SERVICE_COMMAND} to:

SERVICE_COMMAND="/bin/stdbuf -oL -eL ${BIN} '"${PS3_DIR}"'"

Could you test this?

@Anonym-tsk
Copy link
Contributor

SERVICE_COMMAND="/bin/stdbuf -oL -eL ${BIN} '"${PS3_DIR}"'"

It doesn't work.
You can try it with simple script i posted before.
And i can't change start-stop-status, because it is auto-generated.
I can write new start-stop-status, but it is not very good idea.

@Anonym-tsk
Copy link
Contributor

Better way is to make startup script like this

#!/bin/sh
/bin/stdbuf -oL -eL ${BIN} "${PS3_DIR}"

and modify service-setup script

SERVICE_COMMAND="starter.sh"

@BenjV
Copy link

BenjV commented Aug 1, 2018

No that could not work

@Anonym-tsk
Copy link
Contributor

Strange. This script doesn't work for me.

ls: '/tmp/Test: No such file or directory
ls: folder': No such file or directory

@BenjV
Copy link

BenjV commented Aug 1, 2018

For me neither, I made a mistake.
I will keep on looking for a solution.

@BenjV
Copy link

BenjV commented Aug 1, 2018

Ok I think I found the solution
Use the single quote/double quote on the command like:

SERVICE_COMMAND="${CMD} '"${FOLDER}"'"

and put eval before the command exceution like:

eval ${SERVICE_COMMAND}

@Anonym-tsk
Copy link
Contributor

It is not possible, because one SSS script generated for all packages.
eval can break packages, because eval ${SERVICE_COMMAND} is not the same as ${SERVICE_COMMAND}.

@BenjV
Copy link

BenjV commented Aug 1, 2018

That's the whole point, when eval is used all quoting are respected and so you can single/double quote filesnames.
All other commands are not created with single/double quote and a they are working correctly.
So adding the eval to all packages won't hurt.

I have already tested it with a few packages and it creates no problem.
But of course all strings with (potential) space in them like filenames have to be changed to single/double quote combinations.

@Anonym-tsk
Copy link
Contributor

@ymartin59 What do you think about eval in SSS script?

@ymartin59
Copy link
Contributor

The option of a script "starter.sh" which reads configuration and start /var/packages/ps3netsrv/target/bin/ps3netsrv without stdbuf is probably the best to my mind.

@BenjV
Copy link

BenjV commented Aug 3, 2018

@ymartin59
Are you sure there are no other packages that uses a foldername on the commandline?
For example red with a uifile script?

Because if somebody uses a folder- or filename name with a space in it, that package will also fail.
The script will see it as a separate command after that space.
This is not the problem of stdbuf but of the fact that a foldername with a space in it will be broken up in two parts by the shell and processed as two commands.
This will happen with every command or program who reads a commandline with a folder or filename on it that contains a space.

The only way I found to prevent that, is using a combination with single quotes and double quotes around the variable holding that foldername in combination with use of eval to process that correctly.

@ymartin59
Copy link
Contributor

As far as I know, it is the first package that expects "data path location" as command line argument. Other applications have dedicated configuration file where wizard value are replaced.

@BenjV
Copy link

BenjV commented Aug 4, 2018

Ok, then the solution must come from not using stdbuf
Or for the user simply not using a folder with a space in the name.

Anonym-tsk pushed a commit to Anonym-tsk/spksrc that referenced this issue Aug 17, 2018
Anonym-tsk pushed a commit to Anonym-tsk/spksrc that referenced this issue Aug 17, 2018
stefaang pushed a commit to stefaang/spksrc that referenced this issue Jan 21, 2019
* Version upgrade
* location with whitespaces fix SynoCommunity#3399
* Russian translation
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

5 participants