{"action":"created","issue":{"url":"https://api.github.com/repos/Fourdee/DietPi/issues/1997","repository_url":"https://api.github.com/repos/Fourdee/DietPi","labels_url":"https://api.github.com/repos/Fourdee/DietPi/issues/1997/labels{/name}","comments_url":"https://api.github.com/repos/Fourdee/DietPi/issues/1997/comments","events_url":"https://api.github.com/repos/Fourdee/DietPi/issues/1997/events","html_url":"https://github.com/Fourdee/DietPi/issues/1997","id":348397099,"node_id":"MDU6SXNzdWUzNDgzOTcwOTk=","number":1997,"title":"General | Recheck $FP_WORK_DIR","user":{"login":"MichaIng","id":28480705,"node_id":"MDQ6VXNlcjI4NDgwNzA1","avatar_url":"https://avatars2.githubusercontent.com/u/28480705?v=4","gravatar_id":"","url":"https://api.github.com/users/MichaIng","html_url":"https://github.com/MichaIng","followers_url":"https://api.github.com/users/MichaIng/followers","following_url":"https://api.github.com/users/MichaIng/following{/other_user}","gists_url":"https://api.github.com/users/MichaIng/gists{/gist_id}","starred_url":"https://api.github.com/users/MichaIng/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MichaIng/subscriptions","organizations_url":"https://api.github.com/users/MichaIng/orgs","repos_url":"https://api.github.com/users/MichaIng/repos","events_url":"https://api.github.com/users/MichaIng/events{/privacy}","received_events_url":"https://api.github.com/users/MichaIng/received_events","type":"User","site_admin":false},"labels":[{"id":187191721,"node_id":"MDU6TGFiZWwxODcxOTE3MjE=","url":"https://api.github.com/repos/Fourdee/DietPi/labels/Bug%20:beetle:","name":"Bug :beetle:","color":"fc2929","default":false},{"id":789668648,"node_id":"MDU6TGFiZWw3ODk2Njg2NDg=","url":"https://api.github.com/repos/Fourdee/DietPi/labels/Investigation%20Required%20:thinking:","name":"Investigation Required :thinking:","color":"6ebf28","default":false},{"id":322124763,"node_id":"MDU6TGFiZWwzMjIxMjQ3NjM=","url":"https://api.github.com/repos/Fourdee/DietPi/labels/Priority%20High%20:high_brightness:","name":"Priority High :high_brightness:","color":"eb6420","default":false},{"id":576178947,"node_id":"MDU6TGFiZWw1NzYxNzg5NDc=","url":"https://api.github.com/repos/Fourdee/DietPi/labels/Workaround/Fix%20available%20:clinking_glasses:","name":"Workaround/Fix available :clinking_glasses:","color":"0052cc","default":false}],"state":"open","locked":false,"assignee":{"login":"Fourdee","id":7077026,"node_id":"MDQ6VXNlcjcwNzcwMjY=","avatar_url":"https://avatars3.githubusercontent.com/u/7077026?v=4","gravatar_id":"","url":"https://api.github.com/users/Fourdee","html_url":"https://github.com/Fourdee","followers_url":"https://api.github.com/users/Fourdee/followers","following_url":"https://api.github.com/users/Fourdee/following{/other_user}","gists_url":"https://api.github.com/users/Fourdee/gists{/gist_id}","starred_url":"https://api.github.com/users/Fourdee/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Fourdee/subscriptions","organizations_url":"https://api.github.com/users/Fourdee/orgs","repos_url":"https://api.github.com/users/Fourdee/repos","events_url":"https://api.github.com/users/Fourdee/events{/privacy}","received_events_url":"https://api.github.com/users/Fourdee/received_events","type":"User","site_admin":false},"assignees":[{"login":"Fourdee","id":7077026,"node_id":"MDQ6VXNlcjcwNzcwMjY=","avatar_url":"https://avatars3.githubusercontent.com/u/7077026?v=4","gravatar_id":"","url":"https://api.github.com/users/Fourdee","html_url":"https://github.com/Fourdee","followers_url":"https://api.github.com/users/Fourdee/followers","following_url":"https://api.github.com/users/Fourdee/following{/other_user}","gists_url":"https://api.github.com/users/Fourdee/gists{/gist_id}","starred_url":"https://api.github.com/users/Fourdee/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Fourdee/subscriptions","organizations_url":"https://api.github.com/users/Fourdee/orgs","repos_url":"https://api.github.com/users/Fourdee/repos","events_url":"https://api.github.com/users/Fourdee/events{/privacy}","received_events_url":"https://api.github.com/users/Fourdee/received_events","type":"User","site_admin":false},{"login":"MichaIng","id":28480705,"node_id":"MDQ6VXNlcjI4NDgwNzA1","avatar_url":"https://avatars2.githubusercontent.com/u/28480705?v=4","gravatar_id":"","url":"https://api.github.com/users/MichaIng","html_url":"https://github.com/MichaIng","followers_url":"https://api.github.com/users/MichaIng/followers","following_url":"https://api.github.com/users/MichaIng/following{/other_user}","gists_url":"https://api.github.com/users/MichaIng/gists{/gist_id}","starred_url":"https://api.github.com/users/MichaIng/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MichaIng/subscriptions","organizations_url":"https://api.github.com/users/MichaIng/orgs","repos_url":"https://api.github.com/users/MichaIng/repos","events_url":"https://api.github.com/users/MichaIng/events{/privacy}","received_events_url":"https://api.github.com/users/MichaIng/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/Fourdee/DietPi/milestones/78","html_url":"https://github.com/Fourdee/DietPi/milestone/78","labels_url":"https://api.github.com/repos/Fourdee/DietPi/milestones/78/labels","id":3500804,"node_id":"MDk6TWlsZXN0b25lMzUwMDgwNA==","number":78,"title":"v6.13","description":"","creator":{"login":"Fourdee","id":7077026,"node_id":"MDQ6VXNlcjcwNzcwMjY=","avatar_url":"https://avatars3.githubusercontent.com/u/7077026?v=4","gravatar_id":"","url":"https://api.github.com/users/Fourdee","html_url":"https://github.com/Fourdee","followers_url":"https://api.github.com/users/Fourdee/followers","following_url":"https://api.github.com/users/Fourdee/following{/other_user}","gists_url":"https://api.github.com/users/Fourdee/gists{/gist_id}","starred_url":"https://api.github.com/users/Fourdee/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Fourdee/subscriptions","organizations_url":"https://api.github.com/users/Fourdee/orgs","repos_url":"https://api.github.com/users/Fourdee/repos","events_url":"https://api.github.com/users/Fourdee/events{/privacy}","received_events_url":"https://api.github.com/users/Fourdee/received_events","type":"User","site_admin":false},"open_issues":22,"closed_issues":38,"state":"open","created_at":"2018-07-16T20:05:25Z","updated_at":"2018-08-09T20:04:13Z","due_on":"2018-08-07T07:00:00Z","closed_at":null},"comments":11,"created_at":"2018-08-07T16:29:59Z","updated_at":"2018-08-10T12:26:55Z","closed_at":null,"author_association":"COLLABORATOR","body":"## Creating a bug report/issue:\r\n\r\n\r\n#### Required Information:\r\n- DietPi version\t| `6.13 testing branch`\r\n- Distro version\t| `stretch`\r\n\r\n#### Additional Information (if applicable):\r\n- Software title\t| DietPi-Globals, observed within DietPi-Drive_Manager\r\n\r\n#### Steps to reproduce:\r\n<!-- Explain how to reproduce the issue -->\r\n1. Move dietpi_userdata via DietPi-Drive_Manager\r\n\r\n#### Expected behaviour:\r\n<!-- What SHOULD be happening? -->\r\n- After move has finished, drive manager current drive edit should show up as before.\r\n\r\n#### Actual behaviour:\r\n<!-- What IS happening? -->\r\n- Several error messages about missing scrape files appear, drive manager whip menu without much content\r\n\r\n#### Extra details:\r\n<!-- Please post any extra details that might help solve the issue -->\r\n- Error messages:\r\n```\r\n[ INFO ] DietPi-Set_userdata | /mnt/dietpi_userdata is already symlinked to target directory.\r\n\r\n[  OK  ]  Completed\r\ncp: cannot create regular file '.fstab': No such file or directory\r\ngrep: .fstab: No such file or directory\r\ngrep: .fstab: No such file or directory\r\ngrep: .fstab: No such file or directory\r\ngrep: .fstab: No such file or directory\r\ngrep: .fstab: No such file or directory\r\ngrep: .fstab: No such file or directory\r\n/DietPi/dietpi/dietpi-drive_manager: line 160: .fstab: No such file or directory\r\n[ INFO ] DietPi-Drive_Manager | Detecting drives, please wait...\r\n[  OK  ] DietPi-Drive_Manager | Detecting currently mounted drives, please wait...\r\n/DietPi/dietpi/dietpi-drive_manager: line 192: .dietpi-drive_manager_df_tmp: No such file or directory\r\n/DietPi/dietpi/dietpi-drive_manager: line 117: .dietpi-drive_manager_df_tmp: No such file or directory\r\nrm: cannot remove '.dietpi-drive_manager_df_tmp': No such file or directory\r\n[  OK  ] DietPi-Drive_Manager | Detecting unmounted drives, please wait...\r\n/DietPi/dietpi/dietpi-drive_manager: line 324: .dietpi-drive_manager_blkid_tmp: No such file or directory\r\n/DietPi/dietpi/dietpi-drive_manager: line 117: .dietpi-drive_manager_blkid_tmp: No such file or directory\r\nrm: cannot remove '.dietpi-drive_manager_blkid_tmp': No such file or directory\r\n/DietPi/dietpi/dietpi-drive_manager: line 381: .dietpi-drive_manager_lsblk_tmp: No such file or directory\r\n/DietPi/dietpi/dietpi-drive_manager: line 117: .dietpi-drive_manager_lsblk_tmp: No such file or directory\r\nrm: cannot remove '.dietpi-drive_manager_lsblk_tmp': No such file or directory\r\ncp: cannot stat '.fstab': No such file or directory\r\nrm: cannot remove '.fstab': No such file or directory\r\n/DietPi/dietpi/dietpi-drive_manager: line 1070: ((: !  : syntax error: operand expected (error token is \"!  \")\r\n/DietPi/dietpi/dietpi-drive_manager: line 1210: ((: !  && !  : syntax error: operand expected (error token is \"&& !  \")\r\n```\r\n![chart](https://user-images.githubusercontent.com/28480705/43788861-d9d31a54-9a6e-11e8-91eb-588dffdb1b75.png)\r\n- Opening a second SSH sessions reveals, that /tmp/dietpi-drive_manager is not available anymore:\r\n```\r\n2018-08-07 18:13:02 root@VM-Stretch:~# ls -al /tmp\r\ntotal 4\r\ndrwxrwxrwt  7 root root  140 Aug  7 18:13 .\r\ndrwxr-xr-x 21 root root 4096 Jul 29 12:33 ..\r\ndrwxrwxrwt  2 root root   40 Aug  7 17:54 .font-unix\r\ndrwxrwxrwt  2 root root   40 Aug  7 17:54 .ICE-unix\r\ndrwxrwxrwt  2 root root   40 Aug  7 17:54 .Test-unix\r\ndrwxrwxrwt  2 root root   40 Aug  7 17:54 .X11-unix\r\ndrwxrwxrwt  2 root root   40 Aug  7 17:54 .XIM-unix\r\n```\r\n- More related errors on navigation, even shell errors on quit:\r\n```\r\nshell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory\r\nchdir: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory\r\n```\r\n- Perhaps somehow the \"trap\" on quitting the script, has access to the parent script variable $G_WORK_DIR and removes it as cleanup. This should actually not be the case, but I have no other idea. Investigation required!"},"comment":{"url":"https://api.github.com/repos/Fourdee/DietPi/issues/comments/412067193","html_url":"https://github.com/Fourdee/DietPi/issues/1997#issuecomment-412067193","issue_url":"https://api.github.com/repos/Fourdee/DietPi/issues/1997","id":412067193,"node_id":"MDEyOklzc3VlQ29tbWVudDQxMjA2NzE5Mw==","user":{"login":"MichaIng","id":28480705,"node_id":"MDQ6VXNlcjI4NDgwNzA1","avatar_url":"https://avatars2.githubusercontent.com/u/28480705?v=4","gravatar_id":"","url":"https://api.github.com/users/MichaIng","html_url":"https://github.com/MichaIng","followers_url":"https://api.github.com/users/MichaIng/followers","following_url":"https://api.github.com/users/MichaIng/following{/other_user}","gists_url":"https://api.github.com/users/MichaIng/gists{/gist_id}","starred_url":"https://api.github.com/users/MichaIng/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MichaIng/subscriptions","organizations_url":"https://api.github.com/users/MichaIng/orgs","repos_url":"https://api.github.com/users/MichaIng/repos","events_url":"https://api.github.com/users/MichaIng/events{/privacy}","received_events_url":"https://api.github.com/users/MichaIng/received_events","type":"User","site_admin":false},"created_at":"2018-08-10T12:26:55Z","updated_at":"2018-08-10T12:26:55Z","author_association":"COLLABORATOR","body":"@Fourdee \r\nHmm, jep in case stay with old code. I will test a bid, if `disown` or the failure on `set -o noclobber` is the problem. Interesting that this just occurs on first run setup? Are there some of scripts running in background `&`, so that `/tmp/dietpi-process.pid` might exist from one script, while another one tries to create it (and fails due to `set -o noclobber`)? Then this failure could be reason for EXIT trap trigger? Doesn't make sense to me, but who knows how this works.\r\n\r\nAs `disown` is done on every other processing message, would be even more strange, why this only on first run setup triggers EXIT trap."}}
{"actor":{"display_login":"MichaIng"}}