Re: declare project error

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I suspect that you still have a problem of mixing mmbh user and mehdi user.
Please be sure that /home/mmbh/xds-workspace/helloworld-native-application directory belongs to mmbh user and not to mehdi user.

IOW, execute following command and try again to create xds project :

    sudo chown -R $(id -u):$(id -g) /home/mmbh/xds-workspace/helloworld-native-application
    xds-cli prj add ...

HTH,
Seb.


On 16/04/2019 17:29, mahdi ben henda wrote:
hello Sébastien,
thank you it seems that that problem is solved but it says that I have a problem of permission and i didn't know how to solve it.
FolderAdd error: ServerPath sanity check error (2): open /home/devel/xds-workspace/helloworld-native-application/.xds_pathmap_check777255238: permission denied
kind regards.
Mohamed Mahdi Ben Henda,
Chair IEEE ENISo Student Branch,
industrial electronics engineering student at the national school of engineering of Sousse. 


On Tue, Apr 16, 2019 at 3:24 PM Sébastien Douheret <sebastien.douheret@xxxxxxx> wrote:

Hello,

regarding the container settings, you created docker container with "mmbh" user and consequently the shared directory between inside & outside docker container is "/home/mmbh/xds-workspace" :

So you must use the same user (meaning the same path) in the xds-cli command :

xds-cli prj add --label="Project_helloworld-native-application" --type=pm --path=/home/mehdi/xds-workspace/helloworld-native-application --server-path=/home/devel/xds-workspace/helloworld-native-application

Must be:

xds-cli prj add --label="Project_helloworld-native-application" --type=pm --path=/home/mmbh/xds-workspace/helloworld-native-application --server-path=/home/devel/xds-workspace/helloworld-native-application


Regards,
Sebastien.


On 16/04/2019 09:43, mahdi ben henda wrote:
> hello,
> thank you sébastien for your replay,
> for the command xds-cli prj ls -v it shows me nothing.
> mehdi@mehdi:~$ docker ps -a
> CONTAINER ID        IMAGE                                              COMMAND                  CREATED             STATUS              PORTS                                                                                        NAMES
> 3fb7e1f9904b        docker.automotivelinux.org/agl/worker-xds:6.99.4   "/usr/bin/wait_for_n…"   3 days ago          Up About a minute   0.0.0.0:8000->8000/tcp, 0.0.0.0:69->69/udp, 0.0.0.0:10809->10809/tcp, 0.0.0.0:2222->22/tcp   agl-xds-mehdi-0-mmbh
>
> mehdi@mehdi:~$ docker inspect 3fb7e1f9904b
> [
>     {
>         "Id": "3fb7e1f9904b7f8525710d4c2588eec40346140cb71f43a2e1f926216b52baec",
>         "Created": "2019-04-12T08:19:11.277424522Z",
>         "Path": "/usr/bin/wait_for_net.sh",
>         "Args": [
>             "/bin/systemd"
>         ],
>         "State": {
>             "Status": "running",
>             "Running": true,
>             "Paused": false,
>             "Restarting": false,
>             "OOMKilled": false,
>             "Dead": false,
>             "Pid": 5648,
>             "ExitCode": 0,
>             "Error": "",
>             "StartedAt": "2019-04-16T07:37:29.632181611Z",
>             "FinishedAt": "2019-04-15T21:19:30.933750314Z"
>         },
>         "Image": "sha256:210dffda7f698c62c2ceec456e17363e7754dab4db298639fb7ed74920977942",
>         "ResolvConfPath": "/var/lib/docker/containers/3fb7e1f9904b7f8525710d4c2588eec40346140cb71f43a2e1f926216b52baec/resolv.conf",
>         "HostnamePath": "/var/lib/docker/containers/3fb7e1f9904b7f8525710d4c2588eec40346140cb71f43a2e1f926216b52baec/hostname",
>         "HostsPath": "/var/lib/docker/containers/3fb7e1f9904b7f8525710d4c2588eec40346140cb71f43a2e1f926216b52baec/hosts",
>         "LogPath": "/var/lib/docker/containers/3fb7e1f9904b7f8525710d4c2588eec40346140cb71f43a2e1f926216b52baec/3fb7e1f9904b7f8525710d4c2588eec40346140cb71f43a2e1f926216b52baec-json.log",
>         "Name": "/agl-xds-mehdi-0-mmbh",
>         "RestartCount": 0,
>         "Driver": "overlay2",
>         "Platform": "linux",
>         "MountLabel": "",
>         "ProcessLabel": "",
>         "AppArmorProfile": "unconfined",
>         "ExecIDs": null,
>         "HostConfig": {
>             "Binds": [
>                 "/home/mmbh/xds-workspace:/home/devel/xds-workspace",
>                 "/home/mmbh/xds-workspace/.xdt_0:/xdt",
>                 "/sys/fs/cgroup:/sys/fs/cgroup:ro"
>             ],
>             "ContainerIDFile": "",
>             "LogConfig": {
>                 "Type": "json-file",
>                 "Config": {}
>             },
>             "NetworkMode": "default",
>             "PortBindings": {
>                 "10809/tcp": [
>                     {
>                         "HostIp": "",
>                         "HostPort": "10809"
>                     }
>                 ],
>                 "22/tcp": [
>                     {
>                         "HostIp": "",
>                         "HostPort": "2222"
>                     }
>                 ],
>                 "69/udp": [
>                     {
>                         "HostIp": "",
>                         "HostPort": "69"
>                     }
>                 ],
>                 "8000/tcp": [
>                     {
>                         "HostIp": "",
>                         "HostPort": "8000"
>                     }
>                 ]
>             },
>             "RestartPolicy": {
>                 "Name": "no",
>                 "MaximumRetryCount": 0
>             },
>             "AutoRemove": false,
>             "VolumeDriver": "",
>             "VolumesFrom": null,
>             "CapAdd": null,
>             "CapDrop": null,
>             "Dns": [],
>             "DnsOptions": [],
>             "DnsSearch": [],
>             "ExtraHosts": null,
>             "GroupAdd": null,
>             "IpcMode": "shareable",
>             "Cgroup": "",
>             "Links": null,
>             "OomScoreAdj": 0,
>             "PidMode": "",
>             "Privileged": true,
>             "PublishAllPorts": false,
>             "ReadonlyRootfs": false,
>             "SecurityOpt": [
>                 "label=disable"
>             ],
>             "UTSMode": "",
>             "UsernsMode": "",
>             "ShmSize": 67108864,
>             "Runtime": "runc",
>             "ConsoleSize": [
>                 0,
>                 0
>             ],
>             "Isolation": "",
>             "CpuShares": 0,
>             "Memory": 0,
>             "NanoCpus": 0,
>             "CgroupParent": "",
>             "BlkioWeight": 0,
>             "BlkioWeightDevice": [],
>             "BlkioDeviceReadBps": null,
>             "BlkioDeviceWriteBps": null,
>             "BlkioDeviceReadIOps": null,
>             "BlkioDeviceWriteIOps": null,
>             "CpuPeriod": 0,
>             "CpuQuota": 0,
>             "CpuRealtimePeriod": 0,
>             "CpuRealtimeRuntime": 0,
>             "CpusetCpus": "",
>             "CpusetMems": "",
>             "Devices": [],
>             "DeviceCgroupRules": null,
>             "DiskQuota": 0,
>             "KernelMemory": 0,
>             "MemoryReservation": 0,
>             "MemorySwap": 0,
>             "MemorySwappiness": null,
>             "OomKillDisable": false,
>             "PidsLimit": 0,
>             "Ulimits": null,
>             "CpuCount": 0,
>             "CpuPercent": 0,
>             "IOMaximumIOps": 0,
>             "IOMaximumBandwidth": 0,
>             "MaskedPaths": null,
>             "ReadonlyPaths": null
>         },
>         "GraphDriver": {
>             "Data": {
>                 "LowerDir": "/var/lib/docker/overlay2/218e4533fa72c9dbaa9ca375edce934f26593d458d84d29628ad2905e69b8d6f-init/diff:/var/lib/docker/overlay2/f81873e967e7bb5febb96d240b888618a95d2552108ee39c3303428c3be32bf9/diff:/var/lib/docker/overlay2/bb66c5a6bd3f3e29fa8f9bf04aabafdd78ed273b045d467c1171ebb7537b41e9/diff:/var/lib/docker/overlay2/ab4a04edf20f58bd8aed2374e040e6241a3927bdf47fac4b9de6492b9924d1d2/diff",
>                 "MergedDir": "/var/lib/docker/overlay2/218e4533fa72c9dbaa9ca375edce934f26593d458d84d29628ad2905e69b8d6f/merged",
>                 "UpperDir": "/var/lib/docker/overlay2/218e4533fa72c9dbaa9ca375edce934f26593d458d84d29628ad2905e69b8d6f/diff",
>                 "WorkDir": "/var/lib/docker/overlay2/218e4533fa72c9dbaa9ca375edce934f26593d458d84d29628ad2905e69b8d6f/work"
>             },
>             "Name": "overlay2"
>         },
>         "Mounts": [
>             {
>                 "Type": "bind",
>                 "Source": "/home/mmbh/xds-workspace",
>                 "Destination": "/home/devel/xds-workspace",
>                 "Mode": "",
>                 "RW": true,
>                 "Propagation": "rprivate"
>             },
>             {
>                 "Type": "bind",
>                 "Source": "/sys/fs/cgroup",
>                 "Destination": "/sys/fs/cgroup",
>                 "Mode": "ro",
>                 "RW": false,
>                 "Propagation": "rprivate"
>             },
>             {
>                 "Type": "bind",
>                 "Source": "/home/mmbh/xds-workspace/.xdt_0",
>                 "Destination": "/xdt",
>                 "Mode": "",
>                 "RW": true,
>                 "Propagation": "rprivate"
>             }
>         ],
>         "Config": {
>             "Hostname": "agl-xds-mehdi-0-mmbh",
>             "Domainname": "",
>             "User": "",
>             "AttachStdin": false,
>             "AttachStdout": false,
>             "AttachStderr": false,
>             "ExposedPorts": {
>                 "10809/tcp": {},
>                 "22/tcp": {},
>                 "69/udp": {},
>                 "8000/tcp": {}
>             },
>             "Tty": true,
>             "OpenStdin": true,
>             "StdinOnce": false,
>             "Env": [
>                 "PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
>             ],
>             "Cmd": [
>                 "/bin/systemd"
>             ],
>             "ArgsEscaped": true,
>             "Image": "docker.automotivelinux.org/agl/worker-xds:6.99.4",
>             "Volumes": null,
>             "WorkingDir": "",
>             "Entrypoint": [
>                 "/usr/bin/wait_for_net.sh"
>             ],
>             "OnBuild": null,
>             "Labels": {}
>         },
>         "NetworkSettings": {
>             "Bridge": "",
>             "SandboxID": "475d485d8e8a88f6709b26b223c819601862ab125a389ebf4dc15addee1b73f9",
>             "HairpinMode": false,
>             "LinkLocalIPv6Address": "",
>             "LinkLocalIPv6PrefixLen": 0,
>             "Ports": {
>                 "10809/tcp": [
>                     {
>                         "HostIp": "0.0.0.0",
>                         "HostPort": "10809"
>                     }
>                 ],
>                 "22/tcp": [
>                     {
>                         "HostIp": "0.0.0.0",
>                         "HostPort": "2222"
>                     }
>                 ],
>                 "69/udp": [
>                     {
>                         "HostIp": "0.0.0.0",
>                         "HostPort": "69"
>                     }
>                 ],
>                 "8000/tcp": [
>                     {
>                         "HostIp": "0.0.0.0",
>                         "HostPort": "8000"
>                     }
>                 ]
>             },
>             "SandboxKey": "/var/run/docker/netns/475d485d8e8a",
>             "SecondaryIPAddresses": null,
>             "SecondaryIPv6Addresses": null,
>             "EndpointID": "2389490ba2808f963ecbf1006bed41c715b3f3b679549c6379fc7d4293e6c64f",
>             "Gateway": "172.17.0.1",
>             "GlobalIPv6Address": "",
>             "GlobalIPv6PrefixLen": 0,
>             "IPAddress": "172.17.0.2",
>             "IPPrefixLen": 16,
>             "IPv6Gateway": "",
>             "MacAddress": "02:42:ac:11:00:02",
>             "Networks": {
>                 "bridge": {
>                     "IPAMConfig": null,
>                     "Links": null,
>                     "Aliases": null,
>                     "NetworkID": "58829f587e1fff2b3342b5aff20210f98c8d339a17d90e84356f42132f6fbf6d",
>                     "EndpointID": "2389490ba2808f963ecbf1006bed41c715b3f3b679549c6379fc7d4293e6c64f",
>                     "Gateway": "172.17.0.1",
>                     "IPAddress": "172.17.0.2",
>                     "IPPrefixLen": 16,
>                     "IPv6Gateway": "",
>                     "GlobalIPv6Address": "",
>                     "GlobalIPv6PrefixLen": 0,
>                     "MacAddress": "02:42:ac:11:00:02",
>                     "DriverOpts": null
>                 }
>             }
>         }
>     }
> ]
>
> Mohamed Mahdi Ben Henda,
> Chair IEEE ENISo Student Branch,
> industrial electronics engineering student at the national school of engineering of Sousse.
>
>
> On Mon, Apr 15, 2019 at 6:20 PM Sébastien Douheret <sebastien.douheret@xxxxxxx> wrote:
>
>     Hello,
>
>     would you please provide me the output of following commands ?
>
>     xds-cli prj ls -v
>
>     docker ps -a
>
>     docker inspect XXXX      ;# where  XXXX is the id of the docker container where xds-server is running
>
>
>     Regards,
>     Sebastien.
>
>


On 15/04/2019 16:04, mahdi ben henda wrote:
hello,
I'm working to create my first AGL application on my raspberry pi or the xds-server is running locally in a docker container and the xds-agent is running correctly locally on my machine and I had downloaded an SDK from the xds dashboard so I wanted to test the helloworld-native-application but I find my self stuck in an error when I want to declare the project. i had run this command:"xds-cli prj add --label="Project_helloworld-native-application" --type=pm --path=/home/mehdi/xds-workspace/helloworld-native-application --server-path=/home/devel/xds-workspace/helloworld-native-application but i have this error and i didn't know the cause of it or how to solve it "FolderAdd error: Cannot create ServerPath directory: /home/devel/xds-workspace/helloworld-native-application" 
hope you can help with my problem and thank you for all your help and your time. 
kind regards.

Mohamed Mahdi Ben Henda,
Chair IEEE ENISo Student Branch,
industrial electronics engineering student at the national school of engineering of Sousse. 

_______________________________________________
automotive-discussions mailing list
automotive-discussions@xxxxxxxxxxxxxxxxxxxxxxxxx
https://lists.linuxfoundation.org/mailman/listinfo/automotive-discussions
-- 
sebastien.douheret@xxxxxxx - www.iot.bzh
-- 
sebastien.douheret@xxxxxxx - www.iot.bzh
_______________________________________________
automotive-discussions mailing list
automotive-discussions@xxxxxxxxxxxxxxxxxxxxxxxxx
https://lists.linuxfoundation.org/mailman/listinfo/automotive-discussions

[Index of Archives]     [LARTC]     [Bugtraq]     [Yosemite Forum]     [Photo]

  Powered by Linux