Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [ptp-user] (PTP synchronized projects) Problems using multiple ssh accounts grouped together for teamwork

Thank you very much for the answer.

Attach the error log that occurs when testing with the procedure below.

1. Synchronize projects as user A
2. 'mv .ptp-sync .ptp-sync.bak' on the remote system as user A
3. 'cp -r .ptp-sync.bak .ptp-sync' on remote system as user B
4. 'chmod g + rw -R .ptp-sync' on remote system as user B
5. Attempt to synchronize project as user A

What is the intention of 'chmod' in the error log?

—————

!ENTRY org.eclipse.ptp.rdt.sync.ui 4 4 2019-09-26 08:50:17.020
!MESSAGE Error
!STACK 1
org.eclipse.ptp.rdt.sync.core.exceptions.RemoteSyncException: org.eclipse.remote.core.exception.RemoteConnectionException: Permission denied
           at org.eclipse.ptp.internal.rdt.sync.git.core.GitRepo.uploadFilter(GitRepo.java:239)
           at org.eclipse.ptp.internal.rdt.sync.git.core.GitSyncService.doSync(GitSyncService.java:635)
           at org.eclipse.ptp.internal.rdt.sync.git.core.GitSyncService.synchronize(GitSyncService.java:544)
           at org.eclipse.ptp.rdt.sync.core.SyncManager$SynchronizeJob.run(SyncManager.java:80)
           at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
Caused by: org.eclipse.remote.core.exception.RemoteConnectionException: Permission denied
           at org.eclipse.remote.internal.jsch.core.commands.PutInfoCommand.chmod(PutInfoCommand.java:68)
           at org.eclipse.remote.internal.jsch.core.commands.PutInfoCommand.getResult(PutInfoCommand.java:43)
           at org.eclipse.remote.internal.jsch.core.JschFileStore.putInfo(JschFileStore.java:322)
           at org.eclipse.core.filesystem.provider.FileStore.transferAttributes(FileStore.java:466)
           at org.eclipse.core.filesystem.provider.FileStore.copyFile(FileStore.java:203)
           at org.eclipse.core.filesystem.provider.FileStore.copy(FileStore.java:131)
           at org.eclipse.core.internal.filesystem.local.LocalFile.copy(LocalFile.java:127)
           at org.eclipse.ptp.internal.rdt.sync.git.core.GitRepo.uploadFilter(GitRepo.java:205)
           ... 4 more
!SUBENTRY 1 org.eclipse.ptp.rdt.sync.git.core 4 0 2019-09-26 08:50:17.020
!MESSAGE org.eclipse.remote.core.exception.RemoteConnectionException: Permission denied
!STACK 1
org.eclipse.remote.core.exception.RemoteConnectionException: Permission denied
           at org.eclipse.remote.internal.jsch.core.commands.PutInfoCommand.chmod(PutInfoCommand.java:68)
           at org.eclipse.remote.internal.jsch.core.commands.PutInfoCommand.getResult(PutInfoCommand.java:43)
           at org.eclipse.remote.internal.jsch.core.JschFileStore.putInfo(JschFileStore.java:322)
           at org.eclipse.core.filesystem.provider.FileStore.transferAttributes(FileStore.java:466)
           at org.eclipse.core.filesystem.provider.FileStore.copyFile(FileStore.java:203)
           at org.eclipse.core.filesystem.provider.FileStore.copy(FileStore.java:131)
           at org.eclipse.core.internal.filesystem.local.LocalFile.copy(LocalFile.java:127)
           at org.eclipse.ptp.internal.rdt.sync.git.core.GitRepo.uploadFilter(GitRepo.java:205)
           at org.eclipse.ptp.internal.rdt.sync.git.core.GitSyncService.doSync(GitSyncService.java:635)
           at org.eclipse.ptp.internal.rdt.sync.git.core.GitSyncService.synchronize(GitSyncService.java:544)
           at org.eclipse.ptp.rdt.sync.core.SyncManager$SynchronizeJob.run(SyncManager.java:80)
           at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
!SUBENTRY 2 org.eclipse.remote.core 4 0 2019-09-26 08:50:17.020
!MESSAGE Permission denied

On Thu, Sep 26, 2019 at 2:09 AM John Eblen <jeblen@xxxxxxx> wrote:
Hi

One possible solution is to add hooks that alter permissions after updating and merging.
The following bug report details doing this for a different case:


Also, please file a bug report. IIRC, PTP updates the exclude file in case the user modifies the
file filter settings. It may be possible to preserve the existing permissions.


Thanks for reporting this problem!
John Eblen

On Wed, Sep 25, 2019 at 8:55 AM 태식김 <taisikt@xxxxxxxxx> wrote:
Hi

I want to use multiple ssh accounts grouped together for team work.
So, I tried changing the remote .ptp-sync / info / exclude file permissions by force from "-rw-------" to "-rw-rw——".

However, when syncing from one ssh account to another ssh account, an error occurs. When I checked the remote exclude file, I noticed it was changed back to "-rw-------". Perhaps "PTP synchronized projects" change remote exclude file permissions when synchronizing … 

is there no other solution?
_______________________________________________
ptp-user mailing list
ptp-user@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://www.eclipse.org/mailman/listinfo/ptp-user
_______________________________________________
ptp-user mailing list
ptp-user@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://www.eclipse.org/mailman/listinfo/ptp-user

Back to the top