Ankündigung

Einklappen
Keine Ankündigung bisher.

Einrichten Telegram - 19000304

Einklappen
X
 
  • Filter
  • Zeit
  • Anzeigen
Alles löschen
neue Beiträge

  • TDI
    antwortet
    Bastian78, das kann ich so nicht bestätigen, die Installation von GitHub hat bei mir funktioniert (Stand 09.03.2020).

    Ich habe leider ein anderes Problem und bekomme den Telegram Receiver nicht zum laufen, der Telegram Contact hingehen funktioniert.

    Fehlermeldung aus dem ERRORLOG
    Datei: /usr/local/edomi/main/include/php/php-telegram-bot/src/Commands/UserCommands/StartCommand.php | Fehlercode: 0 | Zeile: 55 | Cannot call abstract method Longman\TelegramBot\Commands\Command::execute() EXCEPTION
    DEBUGLOG LBS190000304
    2020-03-09 20:00:31 702372 8193 debug LBS19000304 [v0.8]: Telegram Receiver LBS started
    2020-03-09 20:00:31 721556 8193 debug LBS19000304 [v0.8]: Daemon is not running
    2020-03-09 20:00:31 739541 8193 debug LBS19000304 [v0.8]: Telegram Receiver EXEC Daemon stop initiated
    2020-03-09 20:00:31 740242 8193 debug LBS19000304 [v0.8]: Telegram Receiver LBS ended
    2020-03-09 20:00:32 773106 8193 debug LBS19000304 [v0.8]: Telegram Receiver LBS started
    2020-03-09 20:00:32 789012 8193 debug LBS19000304 [v0.8]: Daemon is not running
    2020-03-09 20:00:32 805985 8193 debug LBS19000304 [v0.8]: Daemon is not running
    2020-03-09 20:00:32 806720 8193 debug LBS19000304 [v0.8]: Starting daemon ...
    2020-03-09 20:00:32 829794 8193 debug LBS19000304 [v0.8]: Telegram Receiver EXEC Daemon start initiated
    2020-03-09 20:00:32 830640 8193 debug LBS19000304 [v0.8]: Telegram Receiver LBS ended
    2020-03-09 20:00:32 906172 8193 debug LBS19000304 [v0.8]: Telegram Receiver LBS started
    2020-03-09 20:00:32 930500 8193 debug LBS19000304 [v0.8]: Daemon is running with PID: 8290
    2020-03-09 20:00:32 931154 8193 debug LBS19000304 [v0.8]: Restarting daemon ...
    2020-03-09 20:00:32 975709 8193 debug LBS19000304 [v0.8]: Telegram Receiver LBS ended
    2020-03-09 20:00:33 074655 8317 debug EXE19000304 [v0.8]: MYSQL DATABASE CREATION:
    2020-03-09 20:00:33 075594 8317 debug EXE19000304 [v0.8]: Telegram receiver daemon started
    Belegung der Ein- und Ausgänge:
    Systemstart = E1
    E2 = API Key ist eingetragen
    E3 = Bot Name ist eingetragen
    E5 = 8
    1h Trigger = E7

    A1 = Klemme
    A2 = Klemme
    A3 = Klemme
    A4 = Klemme

    CentOS7 + Edomi 2.00 als auch Edomi 2.01 wurden neu installiert.
    Ansonsten bin ich den Anweisungen und Hinweisen in diesem Thread als auch dem https://knx-user-forum.de/forum/proj...mand-validator Thread gefolgt, leider ohne Erfolg :/
    Evtl. hat noch jemand eine Idee.

    Vielen Dank

    Einen Kommentar schreiben:


  • Bastian78
    antwortet
    Hallo,


    ich bin die Installationsanleitung durchgegangen, leider erscheint auf der Console nach der Eingabe von


    [root@edomi php]# git clone https://github.com/php-telegram-bot/core

    dann folgende Meldung:

    Initialized empty Git repository in /usr/local/edomi/main/include/php/core/.git/
    error: while accessing https://github.com/php-telegram-bot/core/info/refs
    fatal: HTTP request failed

    Kann es sein das ein komplettes Verzeichnis down ist?

    Einen Kommentar schreiben:


  • elkomaster91
    antwortet


    Zitat von jonofe Beitrag anzeigen
    Löschen des Bots? Was genau meinst du damit?
    Wenn der Bot gelöscht ist, dann funktioniert der LBS mit diesem Bot natürlich nicht mehr.
    Nein, ich habe den Bot erst eben gelöscht. Nur dann bin ich die Nachrichten durchgegangen und habe gesehen, als ich den Start befehl gesendet habe das dann der Fehler zum ersten mal aufgetreten ist.

    Einen Kommentar schreiben:


  • jonofe
    antwortet
    Zitat von elkomaster91 Beitrag anzeigen
    Mir ist bei Löschen des Bot
    Löschen des Bots? Was genau meinst du damit?
    Wenn der Bot gelöscht ist, dann funktioniert der LBS mit diesem Bot natürlich nicht mehr.

    Einen Kommentar schreiben:


  • elkomaster91
    antwortet
    Vielen Dank für eure Mühe! Ich bin echt begeistert wie gut man hier unterstützt wird.

    Ich habe jetzt alles gelöscht:
    - LBS
    - Datenbank
    - Order
    - Telegram Bot

    Dann habe ich alles von vorne Installiert. Bei dem Composer Update hat der einiges noch gemacht.

    Jetzt geht es!!

    Mir ist bei Löschen des Bot aufgefallen das der Fehler erst aufgetreten ist als ich alle Nachrichten gelöscht hatte. Dann musste ich nochmals den Bot starten und das ist der Zeipunkt, an dem der Fehler das erste mal kam und das Empfangen nicht mehr funktioniert hat.

    Darf man das nicht machen?

    Einen Kommentar schreiben:


  • vento66
    antwortet
    Ja, da tut er noch so einiges...

    Einen Kommentar schreiben:


  • jonofe
    antwortet
    Macht das "composer update" noch irgendwas nach einem "composer install"? Ich vermute nicht.
    Ansonsten ist das mit Ausnahme des zip/unzip ziemlich genau das was in der Hilfe steht, oder?

    Einen Kommentar schreiben:


  • vento66
    antwortet
    So gerade mal eine neue VM aufgesetzt.

    So hat es funktioniert:


    Code:
    yum install zip unzip -y
    yum install -y php-mbstring php-xml git wget php-process
    cd /tmp
    wget --no-check-certificate https://getcomposer.org/installer
    php installer
    mv composer.phar /usr/local/bin/composer
    cd /usr/local/edomi/main/include/php
    git clone https://github.com/php-telegram-bot/core
    mv core php-telegram-bot
    cd php-telegram-bot
    composer install
    composer update

    Die Telegram LBS Contact in V1.1 und Reciver mit V 0.8

    Einen Kommentar schreiben:


  • elkomaster91
    antwortet
    Bei der Installation sind jetzt die ganzen Meldungen nicht gekommen
    Zitat von elkomaster91 Beitrag anzeigen
    Failed to download monolog/monolog from dist: The zip extension and unzip command are both missing, skipping.
    Your command-line PHP is using multiple ini files. Run `php --ini` to show them.

    Aber hat sich an der Funktion nichts geändert.

    Einen Kommentar schreiben:


  • vento66
    antwortet
    installier vorher mal zip und unzip

    PHP-Code:
    yum install zip unzip -
    dann Ordner php-telegram-bot löschen, und nochmal installieren.

    Einen Kommentar schreiben:


  • elkomaster91
    antwortet
    [root@edomi ~]# yum install -y php-mbstring php-xml git wget php-process
    Geladene Plugins: fastestmirror
    Loading mirror speeds from cached hostfile
    epel/x86_64/metalink | 28 kB 00:00
    * base: mirror.alpha-labs.net
    * epel: mirror.karneval.cz
    * extras: mirror.fra10.de.leaseweb.net
    * remi-php72: remi.schlundtech.de
    * remi-safe: remi.schlundtech.de
    * updates: mirror.fra10.de.leaseweb.net
    base | 3.6 kB 00:00
    extras | 2.9 kB 00:00
    remi-php72 | 3.0 kB 00:00
    remi-safe | 3.0 kB 00:00
    updates | 2.9 kB 00:00
    Paket php-mbstring-7.2.26-1.el7.remi.x86_64 ist bereits in der neuesten Version installiert.
    Paket php-xml-7.2.26-1.el7.remi.x86_64 ist bereits in der neuesten Version installiert.
    Paket git-1.8.3.1-20.el7.x86_64 ist bereits in der neuesten Version installiert.
    Paket wget-1.14-18.el7_6.1.x86_64 ist bereits in der neuesten Version installiert.
    Paket php-process-7.2.26-1.el7.remi.x86_64 ist bereits in der neuesten Version installiert.
    Nichts zu tun
    [root@edomi ~]# cd /tmp
    [root@edomi tmp]# wget --no-check-certificate https://getcomposer.org/installer
    --2019-12-30 14:31:01-- https://getcomposer.org/installer
    Auflösen des Hostnamen »getcomposer.org (getcomposer.org)«... 2001:41d0:302:1100::8:104f, 54.36.53.46
    Verbindungsaufbau zu getcomposer.org (getcomposer.org)|2001:41d0:302:1100::8:104f|:443. .. verbunden.
    HTTP-Anforderung gesendet, warte auf Antwort... 200 OK
    Länge: 273773 (267K) [application/octet-stream]
    In »»installer.5«« speichern.

    100%[======================================>] 273.773 --.-K/s in 0,06s

    2019-12-30 14:31:02 (4,41 MB/s) - »»installer.5«« gespeichert [273773/273773]

    [root@edomi tmp]# php installer
    All settings correct for using Composer
    Downloading...

    Composer (version 1.9.1) successfully installed to: /tmp/composer.phar
    Use it: php composer.phar

    [root@edomi tmp]# mv composer.phar /usr/local/bin/composer
    mv: „/usr/local/bin/composer“ überschreiben? y
    [root@edomi tmp]# cd /usr/local/edomi/main/include/php
    [root@edomi php]# git clone https://github.com/php-telegram-bot/core
    Klone nach 'core'...
    remote: Enumerating objects: 3, done.
    remote: Counting objects: 100% (3/3), done.
    remote: Compressing objects: 100% (3/3), done.
    remote: Total 8289 (delta 0), reused 0 (delta 0), pack-reused 8286
    Empfange Objekte: 100% (8289/8289), 2.45 MiB | 2.20 MiB/s, done.
    Löse Unterschiede auf: 100% (5983/5983), done.
    [root@edomi php]# mv core php-telegram-bot
    [root@edomi php]# cd php-telegram-bot
    [root@edomi php-telegram-bot]# composer install
    Do not run Composer as root/super user! See https://getcomposer.org/root for details
    Loading composer repositories with package information
    Installing dependencies (including require-dev) from lock file
    Warning: The lock file is not up to date with the latest changes in composer.json. You may be getting outdated dependencies. Run update to update them.
    Package operations: 38 installs, 0 updates, 0 removals
    Failed to download ralouphie/getallheaders from dist: The zip extension and unzip command are both missing, skipping.
    Your command-line PHP is using multiple ini files. Run `php --ini` to show them.
    Now trying to download from source
    - Installing ralouphie/getallheaders (3.0.3): Cloning 120b605dfe
    Failed to download psr/http-message from dist: The zip extension and unzip command are both missing, skipping.
    Your command-line PHP is using multiple ini files. Run `php --ini` to show them.
    Now trying to download from source
    - Installing psr/http-message (1.0.1): Cloning f6561bf28d
    Failed to download guzzlehttp/psr7 from dist: The zip extension and unzip command are both missing, skipping.
    Your command-line PHP is using multiple ini files. Run `php --ini` to show them.
    Now trying to download from source
    - Installing guzzlehttp/psr7 (1.6.1): Cloning 239400de7a
    Failed to download guzzlehttp/promises from dist: The zip extension and unzip command are both missing, skipping.
    Your command-line PHP is using multiple ini files. Run `php --ini` to show them.
    Now trying to download from source
    - Installing guzzlehttp/promises (v1.3.1): Cloning a59da6cf61
    Failed to download guzzlehttp/guzzle from dist: The zip extension and unzip command are both missing, skipping.
    Your command-line PHP is using multiple ini files. Run `php --ini` to show them.
    Now trying to download from source
    - Installing guzzlehttp/guzzle (6.3.3): Cloning 407b0cb880
    Failed to download sebastian/version from dist: The zip extension and unzip command are both missing, skipping.
    Your command-line PHP is using multiple ini files. Run `php --ini` to show them.
    Now trying to download from source
    - Installing sebastian/version (2.0.1): Cloning 99732be0dd
    Failed to download sebastian/type from dist: The zip extension and unzip command are both missing, skipping.
    Your command-line PHP is using multiple ini files. Run `php --ini` to show them.
    Now trying to download from source
    - Installing sebastian/type (1.1.3): Cloning 3aaaa15fa7
    Failed to download sebastian/resource-operations from dist: The zip extension and unzip command are both missing, skipping.
    Your command-line PHP is using multiple ini files. Run `php --ini` to show them.
    Now trying to download from source
    - Installing sebastian/resource-operations (2.0.1): Cloning 4d7a795d35
    Failed to download sebastian/recursion-context from dist: The zip extension and unzip command are both missing, skipping.
    Your command-line PHP is using multiple ini files. Run `php --ini` to show them.
    Now trying to download from source
    - Installing sebastian/recursion-context (3.0.0): Cloning 5b0cd72350
    Failed to download sebastian/object-reflector from dist: The zip extension and unzip command are both missing, skipping.
    Your command-line PHP is using multiple ini files. Run `php --ini` to show them.
    Now trying to download from source
    - Installing sebastian/object-reflector (1.1.1): Cloning 773f97c67f
    Failed to download sebastian/object-enumerator from dist: The zip extension and unzip command are both missing, skipping.
    Your command-line PHP is using multiple ini files. Run `php --ini` to show them.
    Now trying to download from source
    - Installing sebastian/object-enumerator (3.0.3): Cloning 7cfd9e65d1
    Failed to download sebastian/global-state from dist: The zip extension and unzip command are both missing, skipping.
    Your command-line PHP is using multiple ini files. Run `php --ini` to show them.
    Now trying to download from source
    - Installing sebastian/global-state (3.0.0): Cloning edf8a461cf
    Failed to download sebastian/exporter from dist: The zip extension and unzip command are both missing, skipping.
    Your command-line PHP is using multiple ini files. Run `php --ini` to show them.
    Now trying to download from source
    - Installing sebastian/exporter (3.1.2): Cloning 68609e1261
    Failed to download sebastian/environment from dist: The zip extension and unzip command are both missing, skipping.
    Your command-line PHP is using multiple ini files. Run `php --ini` to show them.
    Now trying to download from source
    - Installing sebastian/environment (4.2.2): Cloning f2a2c8e1c9
    Failed to download sebastian/diff from dist: The zip extension and unzip command are both missing, skipping.
    Your command-line PHP is using multiple ini files. Run `php --ini` to show them.
    Now trying to download from source
    - Installing sebastian/diff (3.0.2): Cloning 720fcc7e9b
    Failed to download sebastian/comparator from dist: The zip extension and unzip command are both missing, skipping.
    Your command-line PHP is using multiple ini files. Run `php --ini` to show them.
    Now trying to download from source
    - Installing sebastian/comparator (3.0.2): Cloning 5de4fc177a
    Failed to download phpunit/php-timer from dist: The zip extension and unzip command are both missing, skipping.
    Your command-line PHP is using multiple ini files. Run `php --ini` to show them.
    Now trying to download from source
    - Installing phpunit/php-timer (2.1.2): Cloning 1038454804
    Failed to download phpunit/php-text-template from dist: The zip extension and unzip command are both missing, skipping.
    Your command-line PHP is using multiple ini files. Run `php --ini` to show them.
    Now trying to download from source
    - Installing phpunit/php-text-template (1.2.1): Cloning 31f8b717e5
    Failed to download phpunit/php-file-iterator from dist: The zip extension and unzip command are both missing, skipping.
    Your command-line PHP is using multiple ini files. Run `php --ini` to show them.
    Now trying to download from source
    - Installing phpunit/php-file-iterator (2.0.2): Cloning 050bedf145
    Failed to download theseer/tokenizer from dist: The zip extension and unzip command are both missing, skipping.
    Your command-line PHP is using multiple ini files. Run `php --ini` to show them.
    Now trying to download from source
    - Installing theseer/tokenizer (1.1.3): Cloning 11336f6f84
    Failed to download sebastian/code-unit-reverse-lookup from dist: The zip extension and unzip command are both missing, skipping.
    Your command-line PHP is using multiple ini files. Run `php --ini` to show them.
    Now trying to download from source
    - Installing sebastian/code-unit-reverse-lookup (1.0.1): Cloning 4419fcdb5e
    Failed to download phpunit/php-token-stream from dist: The zip extension and unzip command are both missing, skipping.
    Your command-line PHP is using multiple ini files. Run `php --ini` to show them.
    Now trying to download from source
    - Installing phpunit/php-token-stream (3.1.1): Cloning 995192df77
    Failed to download phpunit/php-code-coverage from dist: The zip extension and unzip command are both missing, skipping.
    Your command-line PHP is using multiple ini files. Run `php --ini` to show them.
    Now trying to download from source
    - Installing phpunit/php-code-coverage (7.0.8): Cloning aa0d179a13
    Failed to download symfony/polyfill-ctype from dist: The zip extension and unzip command are both missing, skipping.
    Your command-line PHP is using multiple ini files. Run `php --ini` to show them.
    Now trying to download from source
    - Installing symfony/polyfill-ctype (v1.12.0): Cloning 550ebaac28
    Failed to download webmozart/assert from dist: The zip extension and unzip command are both missing, skipping.
    Your command-line PHP is using multiple ini files. Run `php --ini` to show them.
    Now trying to download from source
    - Installing webmozart/assert (1.5.0): Cloning 88e6d84706
    Failed to download phpdocumentor/reflection-common from dist: The zip extension and unzip command are both missing, skipping.
    Your command-line PHP is using multiple ini files. Run `php --ini` to show them.
    Now trying to download from source
    - Installing phpdocumentor/reflection-common (2.0.0): Cloning 63a995caa1
    Failed to download phpdocumentor/type-resolver from dist: The zip extension and unzip command are both missing, skipping.
    Your command-line PHP is using multiple ini files. Run `php --ini` to show them.
    Now trying to download from source
    - Installing phpdocumentor/type-resolver (1.0.1): Cloning 2e32a6d489
    Failed to download phpdocumentor/reflection-docblock from dist: The zip extension and unzip command are both missing, skipping.
    Your command-line PHP is using multiple ini files. Run `php --ini` to show them.
    Now trying to download from source
    - Installing phpdocumentor/reflection-docblock (4.3.2): Cloning b83ff7cfcf
    Failed to download doctrine/instantiator from dist: The zip extension and unzip command are both missing, skipping.
    Your command-line PHP is using multiple ini files. Run `php --ini` to show them.
    Now trying to download from source
    - Installing doctrine/instantiator (1.2.0): Cloning a2c590166b
    Failed to download phpspec/prophecy from dist: The zip extension and unzip command are both missing, skipping.
    Your command-line PHP is using multiple ini files. Run `php --ini` to show them.
    Now trying to download from source
    - Installing phpspec/prophecy (1.9.0): Cloning f6811d96d9
    Failed to download phar-io/version from dist: The zip extension and unzip command are both missing, skipping.
    Your command-line PHP is using multiple ini files. Run `php --ini` to show them.
    Now trying to download from source
    - Installing phar-io/version (2.0.1): Cloning 45a2ec53a7
    Failed to download phar-io/manifest from dist: The zip extension and unzip command are both missing, skipping.
    Your command-line PHP is using multiple ini files. Run `php --ini` to show them.
    Now trying to download from source
    - Installing phar-io/manifest (1.0.3): Cloning 7761fcacf0
    Failed to download myclabs/deep-copy from dist: The zip extension and unzip command are both missing, skipping.
    Your command-line PHP is using multiple ini files. Run `php --ini` to show them.
    Now trying to download from source
    - Installing myclabs/deep-copy (1.9.3): Cloning 007c053ae6
    Failed to download phpunit/phpunit from dist: The zip extension and unzip command are both missing, skipping.
    Your command-line PHP is using multiple ini files. Run `php --ini` to show them.
    Now trying to download from source
    - Installing phpunit/phpunit (8.4.1): Cloning 366a4a0f2b
    Failed to download dms/phpunit-arraysubset-asserts from dist: The zip extension and unzip command are both missing, skipping.
    Your command-line PHP is using multiple ini files. Run `php --ini` to show them.
    Now trying to download from source
    - Installing dms/phpunit-arraysubset-asserts (v0.1.0): Cloning d618ece5d5
    Failed to download psr/log from dist: The zip extension and unzip command are both missing, skipping.
    Your command-line PHP is using multiple ini files. Run `php --ini` to show them.
    Now trying to download from source
    - Installing psr/log (1.1.1): Cloning bf73deb2b3
    Failed to download monolog/monolog from dist: The zip extension and unzip command are both missing, skipping.
    Your command-line PHP is using multiple ini files. Run `php --ini` to show them.
    Now trying to download from source
    - Installing monolog/monolog (2.0.0): Cloning 68545165e1
    Failed to download squizlabs/php_codesniffer from dist: The zip extension and unzip command are both missing, skipping.
    Your command-line PHP is using multiple ini files. Run `php --ini` to show them.
    Now trying to download from source
    - Installing squizlabs/php_codesniffer (3.5.1): Cloning 82cd0f854c
    guzzlehttp/psr7 suggests installing zendframework/zend-httphandlerrunner (Emit PSR-7 responses)
    sebastian/global-state suggests installing ext-uopz (*)
    phpunit/php-code-coverage suggests installing ext-xdebug (^2.7.2)
    phpunit/phpunit suggests installing ext-xdebug (*)
    phpunit/phpunit suggests installing phpunit/php-invoker (^2.0.0)
    monolog/monolog suggests installing aws/aws-sdk-php (Allow sending log messages to AWS services like DynamoDB)
    monolog/monolog suggests installing doctrine/couchdb (Allow sending log messages to a CouchDB server)
    monolog/monolog suggests installing elasticsearch/elasticsearch (Allow sending log messages to an Elasticsearch server via official client)
    monolog/monolog suggests installing ext-amqp (Allow sending log messages to an AMQP server (1.0+ required))
    monolog/monolog suggests installing ext-mongodb (Allow sending log messages to a MongoDB server (via driver))
    monolog/monolog suggests installing graylog2/gelf-php (Allow sending log messages to a GrayLog2 server)
    monolog/monolog suggests installing mongodb/mongodb (Allow sending log messages to a MongoDB server (via library))
    monolog/monolog suggests installing php-amqplib/php-amqplib (Allow sending log messages to an AMQP server using php-amqplib)
    monolog/monolog suggests installing php-console/php-console (Allow sending log messages to Google Chrome)
    monolog/monolog suggests installing rollbar/rollbar (Allow sending log messages to Rollbar)
    monolog/monolog suggests installing ruflin/elastica (Allow sending log messages to an Elastic Search server)
    Generating autoload files
    [root@edomi php-telegram-bot]# reboot

    Einen Kommentar schreiben:


  • vento66
    antwortet
    Da muss doch irgendein Fehler bei der Installation auftreten........

    Einen Kommentar schreiben:


  • elkomaster91
    antwortet
    Habe jetzt auch die Datenbank und den Ordner gelöscht. Alles neu Installiert und Fehler ist immer noch da.

    Einen Kommentar schreiben:


  • elkomaster91
    antwortet
    Ja habe ich schon paar mal neu gestartet.

    Zitat von vento66 Beitrag anzeigen
    Die xxxx sind auch mmit dem zu ersetzen, was nach show databases angezeigt wird..... Die DB heist bei jedem anders.
    Ja habe ich gemacht. Habe den Fehler auch gefunden den ich gemacht habe. Es muss "drop DATABASE LBS ...." heißen. Hatte kein LBS drinnen.

    Gruß

    Einen Kommentar schreiben:


  • vento66
    antwortet
    Die xxxx sind auch mmit dem zu ersetzen, was nach show databases angezeigt wird..... Die DB heist bei jedem anders.

    Einen Kommentar schreiben:

Lädt...
X