Hi Kalpesh,

Unless I am missing something, this does not seem to be a GoCD question at 
this point.

There is a server that has the role of a GoCD Agent. There is a directory 
on that server outside of the GoCD Agent directory that is full. The full 
directory appears to be the home directory of the user that runs the GoCD 
Agent but the only way to know that for sure is to review the server 
configuration. GoCD itself will not put anything outside of the working 
directory unless explicitly or implicitly directed to do so by the specific 
process being implemented. (For example, the process as implemented could 
require downloading npm packages to the GoCD account's home directory.)

If this server's only role is as a static GoCD Agent, I recommend 
decommissioning it and building a replacement. From GoCD's perspective, 
everything on the Agent should be disposable once a Pipeline run is 
complete so you lose nothing of value by rebuilding.

Alternately, take a backup of the entire /var/go directory and then delete 
whatever you like. In theory this is fine but I can't comfortably recommend 
it because I don't know nearly enough about your environment to be able to 
say whether or not deleting any given thing from the file system is safe.

Good luck,
Jason


On Friday, 18 December 2020 at 09:37:25 UTC-5 [email protected] wrote:

> Hi Jason,
>
> Unfortunately we did some investigate and couldn't figure out which files 
> we need to get rid of. 
> There were lot of npm files, Cypress one's etc..,
>
> Regards,
> Kalpesh Malviya
>
> On Wednesday, 16 December 2020 at 21:08:29 UTC+5:30 
> [email protected] wrote:
>
>> Hi  Kalpesh,
>>
>> From the output provided it looks like /var/go is some user's home 
>> directory.
>>
>> I recommend checking to see if the user "go" is still using this 
>> directory as its home directory. If it is, I recommend further analysis on 
>> the contents of the directory to determine what can be safely deleted.
>>
>> Hope this helps,
>> Jason
>>
>>
>> On Wednesday, 16 December 2020 at 01:52:21 UTC-5 [email protected] wrote:
>>
>>> Hi Team,
>>>
>>> We have installed go-agent on the linux box.
>>>
>>> After successfully installation we changed the working dir by editing 
>>> the file
>>> `/usr/share/go-agent/wrapper-config/wrapper-properties.conf` to add the 
>>> following line  : 
>>>
>>> *`wrapper.working.dir=/data/go-agent` *Now after few months we have 
>>> recieved a mail from the linux team that there is space full on path* 
>>> /var/go*.  I'm not sure whether the files present under the dir 
>>> */var/go* is been used anymore as the current working dir is 
>>> */data/go-agent*. 
>>>
>>> Can you please check and confirm whether the contents of dir */var/go* 
>>> can be deleted
>>>
>>> I am attaching the contents of */var/go* below here.
>>> [[email protected] PROD:go]# pwd
>>> /var/go
>>> [[email protected] PROD:go]# ls -latr
>>> total 20
>>> -rw-r--r--         1  go      go          231  Aug 21  2019   .bashrc
>>> -rw-r--r--         1  go      go          193  Aug 21  2019   
>>> .bash_profile
>>> -rw-r--r--         1  go      go            18  Aug 21  2019   
>>> .bash_logout
>>> drwxr-----       3  go      go            19  Jul  8     13:51   .pki
>>> drwxr-xr-x.  22  root   root     4096  Jul 19    04:54   ..
>>> drwx------       3   go     go            25  Aug 12   12:47   .config
>>> drwxr-xr-x     2   go     go              6  Nov  4    14:53   .node-gyp
>>> drwxr-xr-x     4   go     go            37  Nov  5    10:03   .cache
>>> drwxr-xr-x     7   go     go          111  Dec  8    15:25   .npm
>>> drwxr-xr-x     4   go     go            31  Dec 10   11:48   blackduck
>>> drwxr-xr-x     2   go     go        4096  Dec 12   09:27   
>>> .oracle_jre_usage
>>> drwxr-xr-x     2   go     go            50  Dec 14    10:26   
>>> .standard-cache
>>> drwx------      11  go     go          211  Dec 15    16:32   .
>>> drwx------        2  go     go            60  Dec 15     16:32   .gnupg
>>>
>>>
>>>
>>> Below are the contents of dir */data/go-agent*  here :
>>> [[email protected] PROD:go-agent]# pwd
>>> /data/go-agent
>>> [[email protected] PROD:go-agent]# ls -latr
>>> total 61660
>>> -rw-r--r--             1    go     go     9660548 Jul 6      14:52     
>>> agent-launcher.jar
>>> -rw-r--r--             1    go     go   26133287 Jul 6      14:52     
>>> agent.jar
>>> -rw-r--r--             1    go     go   15290228 Jul 6      14:52     
>>> tfs-impl.jar
>>> drwxr-xr-x         2    go     go                 35 Jul 6      14:52   
>>>   config
>>> drwxrwxrwx   13    root  root             239 Dec 10  11:48     ..
>>> -rw-r--r--             1    go     go    12031656 Dec 10  14:03     
>>> agent-plugins.zip
>>> drwxrwxrwx     8     root root             248 Dec 10   14:03     .
>>> drwxr-xr-x         4     go    go                 63 Dec 10    14:03    
>>> plugins
>>> drwxr-xr-x         4     go    go                 88 Dec 10    14:03    
>>> plugins_work
>>> drwxr-xr-x         5     go    go                 51 Dec 10    14:03    
>>> felix-cache
>>> drwxr-xr-x       10     go    go             4096 Dec 10    14:18   data
>>> drwxr-xr-x     138     go    go             8192 Dec 15    18:49   
>>> pipelines
>>> -rw-r--r--              1    go    go                    0 Dec 16     
>>> 07:26  .tmp.file.list
>>> -rw-r--r--              1    go    go                    0 Dec 16     
>>> 07:28  .agent-bootstrapper.running
>>>
>>>
>>>
>>> Regards,
>>> Kalpesh Malviya
>>>
>>

-- 
You received this message because you are subscribed to the Google Groups 
"go-cd" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/go-cd/9df19c1a-59ab-4c16-80f0-85bd97621eafn%40googlegroups.com.

Reply via email to