fork-dev / TrackerWin

Bug and issue tracker for Fork for Windows
461 stars 10 forks source link

Weird message after hours of standby #1903

Open KazzmanK opened 1 year ago

KazzmanK commented 1 year ago

I do not have exact statistics, but at least once it appears during working hours, usually it happens overnight. image

Clicking Close just dismisses warning and everything goes smooth as usual. If error message contains timestamp it may be easier to link it to backup or antivirus, now I can not. Any ideas?

DanPristupov commented 1 year ago

Hi. Check the log file %localappdata%\fork\logs\fork.log

KazzmanK commented 1 year ago

Hi! It is full of similar messages. http://******@192.168.20.160 is our git server, manually I can access it any time (with Fork)

partial.txt

DanPristupov commented 1 year ago

Well, you asked for timestamps and I said how to find them.

Anyway try to track file operations to the file using Process Monitor (https://learn.microsoft.com/en-us/sysinternals/downloads/procmon)

KazzmanK commented 1 year ago

Well , there is a boatload calls to that config file with different process ids.

`🔷 2023-05-16 21:55:48.748 Automatically fetching ' ' 🔷 2023-05-16 21:55:48.998 Automatically fetching ' ' ◽️ 2023-05-16 21:56:09.415 Fork_Pipe24816_AskPass: received event '211' ⚠️ 2023-05-16 21:56:09.425 Cannot parse askpass request 'Password for 'http://**': ' ◽️ 2023-05-16 21:56:09.425 Fork_Pipe24816_AskPass: waiting for next event '980' ⚠️ 2023-05-16 21:56:14.470 Git request failed 'fetch --prune origin --verbose --progress': fatal: Failed to enumerate all Git configuration entries [128] warning: unable to access 'C:/Users/***/.gitconfig': Permission denied fatal: error processing config file(s)

error: unable to read askpass response from 'C:\Users**\AppData\Local\Fork\app-1.84.0\Fork.AskPass.exe' bash: line 1: /dev/tty: No such device or address error: failed to execute prompt script (exit code 1) fatal: could not read Password for 'http://*****': No such file or directory

🔷 2023-05-16 21:56:23.137 RefreshRepositoryData`

But there is nothing sufficient in procmon image

image

I must note, that this time there is no error message in UI May it be a git problem accessing credentials(?) with Fork.AskPass.exe ? And error message is just misleading?

KazzmanK commented 1 year ago

No issues so far after upgrading git to 2.40.1

DanPristupov commented 1 year ago

That is weird indeed. Can you try to switch Fork back to the internal git just to ensure that the issue is related to the git version?

KazzmanK commented 1 year ago

Unfortunately, my message was misleading. There were error messages in log file

warning: unable to access 'C:/Users/don/.gitconfig': Permission denied
fatal: error processing config file(s)

error: unable to read askpass response from 'C:\Users\don\AppData\Local\Fork\app-1.84.0\Fork.AskPass.exe'
bash: line 1: /dev/tty: No such device or address
error: failed to execute prompt script (exit code 1)

but there was no error dialogs.