• utzer [Friendica]
    utzer [Friendica]
    2020-08-30

    @Michael Vogel ja, hatte ich schon mal gemacht. Läuft jetzt wieder, normalerweise läuft es ohne Ausgabe auf der Konsole für 1-2 Minuten. Log Auszug kommt also in 2 Minuten.

    0
  • utzer [Friendica]
    utzer [Friendica]
    2020-08-30

    @Michael Vogel Sorry, da kam ein Eichhörnchen... naja wenigstens ist die Wäsche jetzt gefaltet. :-D

    2020-08-30T14:37:00Z console [INFO]: Update starting. {"from":1353,"to":1355} - {"file":"Update.php","line":114,"function":"run","uid":"05568b","process_id":536166}
    2020-08-30T14:37:00Z console [INFO]: Update function start. {"function":"pre_update_1354"} - {"file":"Update.php","line":194,"function":"runUpdateFunction","uid":"05568b","process_id":536166}
    2020-08-30T14:37:09Z console [INFO]: Update starting. {"from":1353,"to":1355} - {"file":"Update.php","line":114,"function":"run","uid":"4304ee","process_id":536322}
    

    Die Meldung steht immer noch in /admin. Der Befehl wurde beim ersten Versuch abgebrochen, wahrscheinlich gibt es deswegen mehrere Zeilen im Log. Danach kommt nur noch dieser Post hier, in dem Update.php steht im Log.

    0
  • utzer [Friendica]
    utzer [Friendica]
    2020-08-30

    @Michael Vogel alle Zeilen mit Update.php? Das war eine grep danach.

    0
  • utzer [Friendica]
    utzer [Friendica]
    2020-08-30

    @Michael Vogel

    | contact | CREATE TABLE `contact` (
      `id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT 'sequential ID',
      `uid` mediumint(8) unsigned NOT NULL DEFAULT 0 COMMENT 'Owner User id',
      `created` datetime NOT NULL DEFAULT '0001-01-01 00:00:00',
      `self` tinyint(1) NOT NULL DEFAULT 0 COMMENT '1 if the contact is the user him/her self',
      `remote_self` tinyint(1) NOT NULL DEFAULT 0,
      `rel` tinyint(3) unsigned NOT NULL DEFAULT 0 COMMENT 'The kind of the relation between the user and the contact',
      `duplex` tinyint(1) NOT NULL DEFAULT 0,
      `network` char(4) NOT NULL DEFAULT '' COMMENT 'Network of the contact',
      `name` varchar(255) NOT NULL DEFAULT '' COMMENT 'Name that this contact is known by',
      `nick` varchar(255) NOT NULL DEFAULT '' COMMENT 'Nick- and user name of the contact',
      `attag` varchar(255) NOT NULL DEFAULT '',
      `photo` varchar(255) DEFAULT '' COMMENT 'Link to the profile photo of the contact',
      `thumb` varchar(255) DEFAULT '' COMMENT 'Link to the profile photo (thumb size)',
      `micro` varchar(255) DEFAULT '' COMMENT 'Link to the profile photo (micro size)',
      `site-pubkey` text DEFAULT NULL,
      `issued-id` varchar(255) NOT NULL DEFAULT '',
      `dfrn-id` varchar(255) NOT NULL DEFAULT '',
      `url` varchar(255) NOT NULL DEFAULT '',
      `nurl` varchar(255) NOT NULL DEFAULT '',
      `addr` varchar(255) NOT NULL DEFAULT '',
      `alias` varchar(255) NOT NULL DEFAULT '',
      `pubkey` text DEFAULT NULL COMMENT 'RSA public key 4096 bit',
      `prvkey` text DEFAULT NULL COMMENT 'RSA private key 4096 bit',
      `batch` varchar(255) NOT NULL DEFAULT '',
      `request` varchar(255) DEFAULT NULL,
      `notify` varchar(255) DEFAULT NULL,
      `poll` varchar(255) DEFAULT NULL,
      `confirm` varchar(255) DEFAULT NULL,
      `poco` varchar(255) DEFAULT NULL,
      `aes_allow` tinyint(1) NOT NULL DEFAULT 0,
      `ret-aes` tinyint(1) NOT NULL DEFAULT 0,
      `usehub` tinyint(1) NOT NULL DEFAULT 0,
      `subhub` tinyint(1) NOT NULL DEFAULT 0,
      `hub-verify` varchar(255) NOT NULL DEFAULT '',
      `last-update` datetime NOT NULL DEFAULT '0001-01-01 00:00:00' COMMENT 'Date of the last try to update the contact info',
      `success_update` datetime NOT NULL DEFAULT '0001-01-01 00:00:00' COMMENT 'Date of the last successful contact update',
      `name-date` datetime NOT NULL DEFAULT '0001-01-01 00:00:00',
      `uri-date` datetime NOT NULL DEFAULT '0001-01-01 00:00:00',
      `avatar-date` datetime NOT NULL DEFAULT '0001-01-01 00:00:00',
      `term-date` datetime NOT NULL DEFAULT '0001-01-01 00:00:00',
      `priority` tinyint(3) unsigned NOT NULL DEFAULT 0,
      `blocked` tinyint(1) NOT NULL DEFAULT 1 COMMENT 'Node-wide block status',
      `readonly` tinyint(1) NOT NULL DEFAULT 0 COMMENT 'posts of the contact are readonly',
      `writable` tinyint(1) NOT NULL DEFAULT 0,
      `forum` tinyint(1) NOT NULL DEFAULT 0 COMMENT 'contact is a forum',
      `prv` tinyint(1) NOT NULL DEFAULT 0 COMMENT 'contact is a private group',
      `hidden` tinyint(1) NOT NULL DEFAULT 0,
      `archive` tinyint(1) NOT NULL DEFAULT 0,
      `pending` tinyint(1) NOT NULL DEFAULT 1,
      `rating` tinyint(4) NOT NULL DEFAULT 0,
      `reason` text DEFAULT NULL,
      `closeness` tinyint(3) unsigned NOT NULL DEFAULT 99,
      `info` mediumtext DEFAULT NULL,
      `profile-id` int(10) unsigned DEFAULT NULL COMMENT 'Deprecated',
      `bdyear` varchar(4) NOT NULL DEFAULT '',
      `bd` date NOT NULL DEFAULT '0001-01-01',
      `notify_new_posts` tinyint(1) NOT NULL DEFAULT 0,
      `fetch_further_information` tinyint(3) unsigned NOT NULL DEFAULT 0,
      `ffi_keyword_blacklist` text DEFAULT NULL,
      `location` varchar(255) DEFAULT '',
      `about` text DEFAULT NULL,
      `keywords` text DEFAULT NULL COMMENT 'public keywords (interests) of the contact',
      `gender` varchar(32) NOT NULL DEFAULT '' COMMENT 'Deprecated',
      `last-item` datetime NOT NULL DEFAULT '0001-01-01 00:00:00' COMMENT 'date of the last post',
      `failure_update` datetime NOT NULL DEFAULT '0001-01-01 00:00:00' COMMENT 'Date of the last failed update',
      `avatar` varchar(255) NOT NULL DEFAULT '',
      `xmpp` varchar(255) NOT NULL DEFAULT '',
      `contact-type` tinyint(4) NOT NULL DEFAULT 0,
      `deleted` tinyint(1) NOT NULL DEFAULT 0 COMMENT 'Contact has been deleted',
      `updated` datetime DEFAULT '0001-01-01 00:00:00' COMMENT 'Date of last contact update',
      `protocol` char(4) NOT NULL DEFAULT '' COMMENT 'Protocol of the contact',
      `block_reason` text DEFAULT NULL COMMENT 'Node-wide block reason',
      `unsearchable` tinyint(1) NOT NULL DEFAULT 0 COMMENT 'Contact prefers to not be searchable',
      `sensitive` tinyint(1) NOT NULL DEFAULT 0 COMMENT 'Contact posts sensitive content',
      `baseurl` varchar(255) DEFAULT '' COMMENT 'baseurl of the contact',
      `subscribe` varchar(255) DEFAULT NULL,
      `gsid` int(10) unsigned DEFAULT NULL COMMENT 'Global Server ID',
      `ffi_keyword_denylist` text DEFAULT NULL,
      PRIMARY KEY (`id`),
      KEY `alias_uid` (`alias`(32),`uid`),
      KEY `addr_uid` (`addr`(32),`uid`),
      KEY `nurl_uid` (`nurl`(32),`uid`),
      KEY `nick_uid` (`nick`(32),`uid`),
      KEY `self_uid` (`self`,`uid`),
      KEY `pending_uid` (`pending`,`uid`),
      KEY `blocked_uid` (`blocked`,`uid`),
      KEY `uid_name` (`uid`,`name`(190)),
      KEY `dfrn-id` (`dfrn-id`(64)),
      KEY `issued-id` (`issued-id`(64)),
      KEY `uid_rel_network_poll` (`uid`,`rel`,`network`,`poll`(64),`archive`),
      KEY `uid_network_batch` (`uid`,`network`,`batch`(64)),
      KEY `gsid` (`gsid`),
      KEY `attag_uid` (`attag`(32),`uid`),
      CONSTRAINT `contact_ibfk_1` FOREIGN KEY (`gsid`) REFERENCES `gserver` (`id`)
    ) ENGINE=InnoDB AUTO_INCREMENT=249065 DEFAULT CHARSET=utf8mb4 COMMENT='contact table' |
    
    0
  • utzer [Friendica]
    utzer [Friendica]
    2020-08-30

    @Michael Vogel hab ich eingefügt, Befehlt läuft.

    0
  • utzer [Friendica]
    utzer [Friendica]
    2020-08-30

    @Michael Vogel
    2020-08-30T19:28:59Z console [NOTICE]: Update starting. {"from":1353,"to":1355} - {"file":"Update.php","line":114,"function":"run","uid":"7ff057","process_id":688654}

    hmm ich finde nur diese eine Zeile...

    0
  • utzer [Friendica]
    utzer [Friendica]
    2020-08-30

    @Michael Vogel du meinst ich soll eine Spalte in der Tabelle löschen, die Spalte mit dem Name "ffi_keyword_blacklist"? Hmm dann muss ich erstmal rausfinden wie ich in mysql sowas mache. :-/

    0
  • utzer [Friendica]
    utzer [Friendica]
    2020-08-30

    @Michael Vogel
    Passt das so?
    ALTER TABLE "table_name" DROP COLUMN "column_name";

    also dann
    ALTER TABLE "contact" DROP COLUMN "ffi_keyword_blacklist";

    0
  • utzer [Friendica]
    utzer [Friendica]
    2020-08-30

    @Michael Vogel ich habe die Änderungen manuell eingefügt, aber warte, ich schaue nochmal ob ich die Datei mit deinem PR bei github irgendwie runterladen kann.

    0
  • utzer [Friendica]
    utzer [Friendica]
    2020-08-30

    @Michael Vogel ok, hab jetzt die geänderte Datei aus deinem Comit Branch oder so runtergeladen. Hab nochmal den Befehl ausgeführt, aber noch nicht die Spalte gelöscht.

    sudo tail -F /var/log/friendica/friendica.log |egrep -h "DB Error|Update.php"
    [code]2020-08-30T19:28:59Z console [NOTICE]: Update starting. {"from":1353,"to":1355} - {"file":"Update.php","line":114,"function":"run","uid":"7ff057","process_id":688654}
    

    2020-08-30T19:43:43Z console [NOTICE]: Update starting. {"from":1353,"to":1355} - {"file":"Update.php","line":114,"function":"run","uid":"928352","process_id":694806}[/code]

    0
  • utzer [Friendica]
    utzer [Friendica]
    2020-08-30

    @Michael Vogel Query OK

    Das hier geht, meins oben mit COLUMN nicht.
    ALTER TABLEcontactDROPffi_keyword_blacklist;

    0
  • utzer [Friendica]
    utzer [Friendica]
    2020-08-30

    @Michael Vogel es ist schwierig etwas im Log zu finden, weil ich das Log auf Debug habe, da kommen den ganzen Nachrichten hier ja auch ins Log, was es dann schwierig macht etwas zu finden. Hab mal auf "Info" umgestellt und führe nochmal den Befehlt aus.

    0
  • utzer [Friendica]
    utzer [Friendica]
    2020-08-30

    @Michael Vogel ich glaube es passiert nichts, denn 10 Sekunden nach dem Start den Befehls ist nichts bei "SHOW PROCESSLIST;" zu sehen.

    0
  • utzer [Friendica]
    utzer [Friendica]
    2020-08-30

    @Michael Vogel Ausgabe nur
    2020-08-30T19:52:35Z console [NOTICE]: Update starting. {"from":1353,"to":1355} - {"file":"Update.php","line":114,"function":"run","uid":"ec33cd","process_id":700160}

    0
  • utzer [Friendica]
    utzer [Friendica]
    2020-08-30

    @Michael Vogel das war nachdem ich die Spalte gelöscht hatte.

    0
  • utzer [Friendica]
    utzer [Friendica]
    2020-08-30

    @Michael Vogel

    Auf alle Fälle solltest Du das Update erst durchführen, nachdem das geklärt ist.

    OK, mache ich. Danke.

    0
  • utzer [Friendica]
    utzer [Friendica]
    2020-08-31

    @Michael Vogel Fällt dir noch irgendwas ein was ich machen kann?

    0
  • utzer [Friendica]
    utzer [Friendica]
    2020-08-31

    @Michael Vogel ja hatte ich gemacht, dass war weiter oben, wenig Ausgabe.

    Ich frage mich ob ich Dir mal den gesamten Logauszug geben soll, ich könnte den Webserver vorher stoppen, dann sollte weniger im Logfile auftauchen.

    0
  • utzer [Friendica]
    utzer [Friendica]
    2020-08-31

    @Michael Vogel error log hab ich aktiv, ja. Ich sehe aber auch dort nichts was auf den Updatevorgang hindeutet.

    0
  • utzer [Friendica]
    utzer [Friendica]
    2020-08-31

    @Michael Vogel es kommt immer nur diese eine Zeile im Friendica Log, ich werde das Gefühl nicht los, dass das Update gar nicht richtig startet.

    0
  • utzer [Friendica]
    utzer [Friendica]
    2020-08-31

    @Michael Vogel hmmm
    [31-Aug-2020 21:40:03 Europe/Berlin] PHP Fatal error: require_once(): Failed opening required 'update.php' (include_path='/srv/http/vendor/pear/text_languagedetect:.:') in /srv/http/src/Core/Update.php on line 107

    0
  • utzer [Friendica]
    utzer [Friendica]
    2020-08-31

    @Michael Vogel das kam jetzt aber glaube ich nur weil ich rumprobiert habe und mal sudo php /srv/http/bin/console.php dbstructure update -f aufgerufen hatte.

    0
  • utzer [Friendica]
    utzer [Friendica]
    2020-08-31

    @Michael Vogel kann leider kein PHP.

    In Zeile 107 (circa, weil ja Zeilen dazugekommen sind von Deinem PR) steht require_once 'update.php';, müsste dieses update.php nicht Update.php lauten, ist das nicht case sensitive?

    0
  • utzer [Friendica]
    utzer [Friendica]
    2020-09-01

    @Michael Vogel also dann nochmal zu den echo-Anweisungen, wäre es aufwändig für dich ein paar einzutragen?

    0
  • utzer [Friendica]
    utzer [Friendica]
    2020-09-06

    @Michael Vogel jetzt gibt es nen RC, dass erinnert mich daran, dass ich das Problem immer noch habe. 😔

    0
  • utzer [Friendica]
    utzer [Friendica]
    2020-09-08

    @Michael Vogel so der Host läuft, melde mich mal per Nachricht auf Friendica.

    0