PurpleI2P / i2pd

🛡 I2P: End-to-End encrypted and anonymous Internet
https://i2pd.website
BSD 3-Clause "New" or "Revised" License
3.21k stars 415 forks source link

Operation cancelled and i2pd aint starting #2084

Open nackedsnake opened 1 month ago

nackedsnake commented 1 month ago

Idk what i'm doing wrong, but when I'm starting i2pd on ubuntu, its writes that 00:51:45@981/none - i2pd v2.53.1 (0.9.63) starting... 00:51:45@981/warn - Family: Can't load family certificates from /root/.i2pd/certificates/family 00:51:45@61/warn - Transports: 15 ephemeral keys generated at the time 00:51:45@981/warn - Addressbook: Can't open /root/.i2pd/addressbook/addresses.csv 00:51:45@981/error - Addressbook: Resetting eTags 00:51:45@981/warn - Clients: Can't read /root/.i2pd/tunnels.conf: /root/.i2pd/tunnels.conf: cannot open file 00:51:46@463/warn - SSU2: Retry token is zero 00:51:47@731/warn - Profiling: No profile yet for JVtxNyN6i~8AWmrVnxJG8UmBlIHzscO61Y5jGEh4EI0= 00:51:50@463/warn - SSU2: Session with 50.72.163.172:30807 was not established after 5 seconds 00:51:52@518/warn - Profiling: No profile yet for mvrCBf0Tk4wsyCG760is1g00Vu~pWoZFJQPxS7Ln-GE= 00:51:52@518/warn - Profiling: No profile yet for sqcg450UJFuld6fylwBvcrdDFKC0s7~A5MTs18QqT2E= 00:51:52@518/warn - Profiling: No profile yet for HS2Ua272NOB63-p3oBH9tDCTQCh1UWA4vR7~zp8~iME= 00:51:52@518/warn - Profiling: No profile yet for -pCvXZ-ftrcbcMyOfEcnRcQmW~S092K6PCq6svQmY-s= 00:51:52@518/warn - Profiling: No profile yet for sSScwYut8QmPNsS30cMPZBqBxiyoKE-WCVtsGG31e~U= 00:51:52@518/warn - Profiling: No profile yet for NgT57KCsfP3QX9WWCvgzeBCM0bQiFkLiIJ4yg9YKMsg= 00:51:52@518/warn - Profiling: No profile yet for t19pDvFvBAwUAmyLJmHe93MNXLCHDt-Wph63nbzTAqU= 00:51:52@518/warn - Profiling: No profile yet for Gb5zu1PYEtSY4C~KKdKh0~sOHgWh9aQL03g8csL7adI= 00:51:52@540/warn - NTCP2: SessionCreated read error: End of file ^C00:51:57@518/warn - Profiling: No profile yet for thWaXDwleh~0-XI8hcKqklHEbDfpT2lr2BLlhpdgJ7g= 00:51:57@518/warn - Profiling: No profile yet for yG1ZixLRd91M6G-6AnFnQuQvGzJ~JBP~M0N8wbhylGs= 00:51:57@518/warn - Profiling: No profile yet for o6SXia7A0dIJ8INb7ZIJKgejR75CV1c3JFGzJUlU8I4= 00:51:57@518/warn - Profiling: No profile yet for tzhUOKFfPWhIylyUic8UKlKQ53z3O71fpS-Ei8j79Hk= 00:51:57@518/warn - Profiling: No profile yet for GBTQ56CwYhgv5P7rBPgA6nhth4exXVM6sEb71CV6n0c= 00:51:57@518/warn - Profiling: No profile yet for tzYVwBb8PupFogMwVcZylvOk8GQRShMw2UFb0ncJWNk= 00:51:57@463/warn - SSU2: Unexpected message type 103 from 45.179.239.39:13923 of 83 bytes 00:51:57@463/warn - SSU2: Retry token is zero 00:51:57@981/warn - Addressbook: Not saving empty addressbook 00:51:57@975/error - HTTP Server: Error handling accept: Operation canceled 00:51:57@975/error - HTTP Server: Error handling accept: Operation canceled

Vort commented 1 month ago

Idk what i'm doing wrong

i2pd tries to search files in home directory of root user, it does not look right.

anikey-from-i2p commented 1 month ago

Disclaimer: i am not developer of i2pd.

To the user: you should change the data path, which is currently /root/.i2pd, to something that exists and is writable by the user. (Or if you are running i2pd as root, which i do NOT recommend, try create the directory /root/.i2pd). You can do this by changing the datadir configuration value. Config Documentation

To the developers: i think you should add a more detailed error message than just cannot open file. There is this thing errno, which contains some information about the last error, like No such file or directory or Permission denied, which would help some more troubleshoot. Boost asio probably includes something like this as well.

r4sas commented 1 month ago

@nackedsnake OS? How are you starting it?