Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can not send messages #1074

Closed
cryptographies opened this issue Dec 11, 2021 · 6 comments
Closed

Can not send messages #1074

cryptographies opened this issue Dec 11, 2021 · 6 comments

Comments

@cryptographies
Copy link

Notice: file_put_contents(): Write of 43 bytes failed with errno=13 Permission denied in C:\xampp\htdocs\madeline\madeline.php on line 245
Please do not remove madeline.phar, madeline.php and MadelineProto.log, or else MadelineProto will crash. If you have any problem with MadelineProto, report it to https://github.com/danog/MadelineProto or https://t.me/pwrtelegramgroup
Fatal error: Maximum execution time of 120 seconds exceeded in phar://C:/xampp/htdocs/madeline/madeline-cb7399b24ca6f15a60b2f30b54edb08735051822-80.phar/vendor/danog/madelineproto/src/danog/MadelineProto/Exception.php on line 84

@cryptographies
Copy link
Author

I gave permission to group "Everyone" with full access. But still getting this error.

@cryptographies
Copy link
Author

Exception:      	stream_socket_client(): Unable to connect to tcp://127.0.0.1:57133 (No connection could be made because the target machine actively refused it) in functions.php:39
Serialization:  	stream_socket_client(): Unable to connect to tcp://127.0.0.1:57133 (No connection could be made because the target machine actively refused it) while connecting to IPC socket
Serialization:  	MadelineProto is starting, please wait...
Exception:      	stream_socket_client(): Unable to connect to tcp://127.0.0.1:57133 (No connection could be made because the target machine actively refused it) in functions.php:39
Serialization:  	stream_socket_client(): Unable to connect to tcp://127.0.0.1:57133 (No connection could be made because the target machine actively refused it) while connecting to IPC socket
Serialization:  	MadelineProto is starting, please wait...
[11-Dec-2021 14:40:54 Europe/Berlin] PHP Fatal error:  Maximum execution time of 120 seconds exceeded in phar://C:/xampp/htdocs/madeline/madeline-cb7399b24ca6f15a60b2f30b54edb08735051822-80.phar/vendor/danog/madelineproto/src/danog/MadelineProto/Exception.php on line 84
[11-Dec-2021 18:44:24 Europe/Berlin] Enabled PHP logging
[11-Dec-2021 18:44:24 Europe/Berlin] Enabled PHP logging
Logger:         	MadelineProto
Logger:         	Copyright (C) 2016-2020 Daniil Gentili
Logger:         	Licensed under AGPLv3
Logger:         	https://github.com/danog/MadelineProto
Server:         	Starting IPC server C:\xampp\htdocs\madeline\session1.madeline (process)
Server:         	Error: Could not locate PHP executable binary in phar://C:/xampp/htdocs/madeline/madeline-cb7399b24ca6f15a60b2f30b54edb08735051822-80.phar/vendor/danog/madelineproto/src/danog/MadelineProto/Ipc/Runner/ProcessRunner.php:102
Stack trace:
#0 phar://C:/xampp/htdocs/madeline/madeline-cb7399b24ca6f15a60b2f30b54edb08735051822-80.phar/vendor/danog/madelineproto/src/danog/MadelineProto/Ipc/Runner/ProcessRunner.php(32): danog\MadelineProto\Ipc\Runner\ProcessRunner::locateBinary()
#1 phar://C:/xampp/htdocs/madeline/madeline-cb7399b24ca6f15a60b2f30b54edb08735051822-80.phar/vendor/danog/madelineproto/src/danog/MadelineProto/Ipc/Server.php(106): danog\MadelineProto\Ipc\Runner\ProcessRunner::start('C:\\xampp\\htdocs...', 1095831586)
#2 phar://C:/xampp/htdocs/madeline/madeline-cb7399b24ca6f15a60b2f30b54edb08735051822-80.phar/vendor/danog/madelineproto/src/danog/MadelineProto/Serialization.php(180): danog\MadelineProto\Ipc\Server::startMe(Object(danog\MadelineProto\SessionPaths))
#3 [internal function]: danog\MadelineProto\Serialization::unserialize(Object(danog\MadelineProto\SessionPaths), Object(danog\MadelineProto\SettingsEmpty), false)
#4 phar://C:/xampp/htdocs/madeline/madeline-cb7399b24ca6f15a60b2f30b54edb08735051822-80.phar/vendor/danog/madelineproto/src/danog/MadelineProto/Coroutine.php(115): Generator->send(Object(danog\MadelineProto\LightState))
#5 phar://C:/xampp/htdocs/madeline/madeline-cb7399b24ca6f15a60b2f30b54edb08735051822-80.phar/vendor/phabel.transpiler80:amphp/amp/lib/Success.php(37): danog\MadelineProto\Coroutine->danog\MadelineProto\{closure}(NULL, true)
#6 phar://C:/xampp/htdocs/madeline/madeline-cb7399b24ca6f15a60b2f30b54edb08735051822-80.phar/vendor/danog/madelineproto/src/danog/MadelineProto/Coroutine.php(154): Amp\Success->onResolve(Object(Closure))
#7 phar://C:/xampp/htdocs/madeline/madeline-cb7399b24ca6f15a60b2f30b54edb08735051822-80.phar/vendor/danog/madelineproto/src/danog/MadelineProto/Tools.php(448): danog\MadelineProto\Coroutine->__construct(Object(Generator))
#8 phar://C:/xampp/htdocs/madeline/madeline-cb7399b24ca6f15a60b2f30b54edb08735051822-80.phar/vendor/danog/madelineproto/src/danog/MadelineProto/Tools.php(417): danog\MadelineProto\Tools::call(Object(Generator))
#9 phar://C:/xampp/htdocs/madeline/madeline-cb7399b24ca6f15a60b2f30b54edb08735051822-80.phar/vendor/danog/madelineproto/src/danog/MadelineProto/API.php(287): danog\MadelineProto\Tools::timeoutWithDefault(Object(Generator), 30000, Array)
#10 phar://C:/xampp/htdocs/madeline/madeline-cb7399b24ca6f15a60b2f30b54edb08735051822-80.phar/vendor/danog/madelineproto/src/danog/MadelineProto/API.php(183): danog\MadelineProto\API->connectToMadelineProto(Object(danog\MadelineProto\SettingsEmpty))
#11 [internal function]: danog\MadelineProto\API->internalInitAPI(Object(danog\MadelineProto\SettingsEmpty))
#12 phar://C:/xampp/htdocs/madeline/madeline-cb7399b24ca6f15a60b2f30b54edb08735051822-80.phar/vendor/danog/madelineproto/src/danog/MadelineProto/Coroutine.php(69): Generator->current()
#13 phar://C:/xampp/htdocs/madeline/madeline-cb7399b24ca6f15a60b2f30b54edb08735051822-80.phar/vendor/danog/madelineproto/src/danog/MadelineProto/Tools.php(448): danog\MadelineProto\Coroutine->__construct(Object(Generator))
#14 phar://C:/xampp/htdocs/madeline/madeline-cb7399b24ca6f15a60b2f30b54edb08735051822-80.phar/vendor/danog/madelineproto/src/danog/MadelineProto/Async/AsyncConstruct.php(93): danog\MadelineProto\Tools::call(Object(Generator))
#15 phar://C:/xampp/htdocs/madeline/madeline-cb7399b24ca6f15a60b2f30b54edb08735051822-80.phar/vendor/danog/madelineproto/src/danog/MadelineProto/API.php(163): danog\MadelineProto\Async\AsyncConstruct->setInitPromise(Object(Generator))
#16 phar://C:/xampp/htdocs/madeline/madeline-cb7399b24ca6f15a60b2f30b54edb08735051822-80.phar/vendor/phabel.transpiler80:danog/magicalserializer/src/danog/Serializable.php(34): danog\MadelineProto\API->__magic_construct('session1.madeli...')
#17 C:\xampp\htdocs\madeline\kur.php(8): danog\MadelineProto\API->__construct('session1.madeli...')
#18 {main}
Server:         	Starting IPC server C:\xampp\htdocs\madeline\session1.madeline (web)
Serialization:  	MadelineProto is starting, please wait...
Exception:      	stream_socket_client(): Unable to connect to tcp://127.0.0.1:57133 (No connection could be made because the target machine actively refused it) in functions.php:39
Serialization:  	stream_socket_client(): Unable to connect to tcp://127.0.0.1:57133 (No connection could be made because the target machine actively refused it) while connecting to IPC socket
[11-Dec-2021 18:44:25 Europe/Berlin] Enabled PHP logging
Serialization:  	MadelineProto is starting, please wait...
[11-Dec-2021 18:44:27 Europe/Berlin] Enabled PHP logging
Logger:         	MadelineProto
Logger:         	Copyright (C) 2016-2020 Daniil Gentili
Logger:         	Licensed under AGPLv3
Logger:         	https://github.com/danog/MadelineProto
Serialization:  	Got exclusive session lock!
[11-Dec-2021 18:44:27 Europe/Berlin] Enabled PHP logging
Exception:      	stream_socket_client(): Unable to connect to tcp://127.0.0.1:57133 (No connection could be made because the target machine actively refused it) in functions.php:39
Serialization:  	stream_socket_client(): Unable to connect to tcp://127.0.0.1:57133 (No connection could be made because the target machine actively refused it) while connecting to IPC socket
Snitch:         	Please do not remove madeline.phar, madeline.php and MadelineProto.log, or else MadelineProto will crash. If you have any problem with MadelineProto, report it to https://github.com/danog/MadelineProto or https://t.me/pwrtelegramgroup
Serialization:  	Unlocking exclusive session lock!
Serialization:  	Unlocked exclusive session lock!
MTProto:        	Prompting final serialization (SHUTDOWN)...
MTProto:        	Done final serialization (SHUTDOWN)!
MTProto:        	Shutting down MadelineProto (MTProto)
[11-Dec-2021 18:44:27 Europe/Berlin] Enabled PHP logging
MTProto:        	Will unreference instance
DataCenterConnection: 	Disconnecting from shared DC 
DataCenterConnection: 	Backed up 0, added to 0 existing messages) from DC 
DataCenterConnection: 	Disconnecting from shared DC 
DataCenterConnection: 	Backed up 0, added to 0 existing messages) from DC 
DataCenterConnection: 	Disconnecting from shared DC 
DataCenterConnection: 	Backed up 0, added to 0 existing messages) from DC 
DataCenterConnection: 	Disconnecting from shared DC 
DataCenterConnection: 	Backed up 0, added to 0 existing messages) from DC 
DataCenterConnection: 	Disconnecting from shared DC 
DataCenterConnection: 	Backed up 0, added to 0 existing messages) from DC 
DataCenterConnection: 	Disconnecting from shared DC 
DataCenterConnection: 	Backed up 0, added to 0 existing messages) from DC 
DataCenterConnection: 	Disconnecting from shared DC 
DataCenterConnection: 	Backed up 0, added to 0 existing messages) from DC 
MTProto:        	Unreferenced instance
MTProto:        	Successfully destroyed MadelineProto
Serialization:  	MadelineProto is starting, please wait...
Exception:      	stream_socket_client(): Unable to connect to tcp://127.0.0.1:57133 (No connection could be made because the target machine actively refused it) in functions.php:39
Serialization:  	stream_socket_client(): Unable to connect to tcp://127.0.0.1:57133 (No connection could be made because the target machine actively refused it) while connecting to IPC socket
Serialization:  	MadelineProto is starting, please wait...
Exception:      	stream_socket_client(): Unable to connect to tcp://127.0.0.1:57133 (No connection could be made because the target machine actively refused it) in functions.php:39
Serialization:  	stream_socket_client(): Unable to connect to tcp://127.0.0.1:57133 (No connection could be made because the target machine actively refused it) while connecting to IPC socket
Serialization:  	MadelineProto is starting, please wait...
Exception:      	stream_socket_client(): Unable to connect to tcp://127.0.0.1:57133 (No connection could be made because the target machine actively refused it) in functions.php:39
Serialization:  	stream_socket_client(): Unable to connect to tcp://127.0.0.1:57133 (No connection could be made because the target machine actively refused it) while connecting to IPC socket

@hafidbenjammou
Copy link

hafidbenjammou commented Dec 11, 2021 via email

@danog
Copy link
Owner

danog commented Dec 12, 2021

@newfolders I recommend you switch to WSL, or otherwise try fixing permession issues, because the source of all your problems is the inability on behalf of madeline.php to write into the madeline-80.phar.version file.

@danog danog closed this as completed Dec 12, 2021
@danog
Copy link
Owner

danog commented Dec 15, 2021

Fixed, this was an issue with flock quirks on windows.

@cryptographies
Copy link
Author

Thank you @danog You are the best.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants