1 頁 (共 2 頁)

[其它]掛掉.....怎辦?

發表於 : 2006-04-20 23:11
Mett
小弟的網站

之前因為一直身在國外更新不易

所以一直維持在2.0.04的狀態

不過,從這個月開始遇到很多DOS攻擊,同時間幾百個IP同時開頁面

每個開的都還不同,幾天下來....

終於把虛擬主機弄崩潰了

現在想要作很久沒有做過的升級

結果

弄了從2.0.04直接升級到19的平台,也一條一條修正過

開出來的INSTALL頁面卻是空白.........@@

請問我該怎辦阿?
============================================
●架設主機作業系統:Linux在戰國策的虛擬主機
●您安裝的程式:快速架站程式。
●您的 phpBB2 版本:phpBB2.0.4
=============================================
快跳樓了,真的不知道怎麼回事阿~~

哪為大大可以指點一下迷津?

萬分感謝的啦~ :oops:

發表於 : 2006-04-20 23:24
阿維
你東西可能改錯了,再不然就是忘記執行"install/update_to_latest.php"檔案
因為我不知道你是不是有修改外掛,目前我只能這樣回答,你先試試看執行上面的檔案吧

發表於 : 2006-04-20 23:43
Mett
JORDAN 寫:你東西可能改錯了,再不然就是忘記執行"install/update_to_latest.php"檔案
因為我不知道你是不是有修改外掛,目前我只能這樣回答,你先試試看執行上面的檔案吧
喬丹大大~謝謝您的回復

我是真的不知道現在該怎麼辦

UDDATE其實我是有執行的

我那邊沒有掛超過兩個外掛,應該都跟平台沒有直接關係

出來的訊息如下:
=====================================================
Information
Database type :: mysql4
Previous version :: 2.0.4
Updated version :: 2.0.19

Updating database schema
Progress :: . . . . . Done
Result :: Some queries failed, the statements and errors are listing below

Error :: Can't open file: 'phpbb_sessions.MYI'. (errno: 145)
SQL :: ALTER TABLE phpbb_sessions ADD COLUMN session_admin tinyint(2) DEFAULT '0' NOT NULL


This is probably nothing to worry about, update will continue. Should this fail to complete you may need to seek help at our development board. See README for details on how to obtain advice.

Updating data
Progress :: . . . . . . . . . . . . . .

Updating version and optimizing tables
Progress :: . . Done
Result :: Some queries failed, the statements and errors are listing below

Error :: Can't open file: 'phpbb_sessions.MYI'. (errno: 145)
SQL :: DELETE FROM phpbb_sessions


This is probably nothing to worry about, update will continue. Should this fail to complete you may need to seek help at our development board. See README for details on how to obtain advice.

Update completed
Please make sure you have updated your board files too, this file is only updating your database.

You should now visit the General Configuration settings page in the Administration Panel and check the General Configuration of the board. If you updated from versions prior to RC-3 you must update some entries. If you do not do this emails sent from the board will contain incorrect information. Don't forget to delete this file!
=================================================

我真的不知道是怎麼回事阿~T_T

發表於 : 2006-04-21 00:04
chiouss
Mett 寫:Error :: Can't open file: 'phpbb_sessions.MYI'. (errno: 145)
你的 phpbb_sessions 這個 table 掰掰了。升級之前有記得備份吧?

發表於 : 2006-04-21 00:33
阿維
如果有刪除到就執行這些語法,如果有殘留乾脆刪除再重新建立這兩個資料表

代碼: 選擇全部

#
# Table structure for table 'phpbb_sessions'
#
# Note that if you're running 3.23.x you may want to make
# this table a type HEAP. This type of table is stored
# within system memory and therefore for big busy boards
# is likely to be noticeably faster than continually
# writing to disk ...
#
CREATE TABLE phpbb_sessions (
   session_id char(32) DEFAULT '' NOT NULL,
   session_user_id mediumint(8) DEFAULT '0' NOT NULL,
   session_start int(11) DEFAULT '0' NOT NULL,
   session_time int(11) DEFAULT '0' NOT NULL,
   session_ip char(8) DEFAULT '0' NOT NULL,
   session_page int(11) DEFAULT '0' NOT NULL,
   session_logged_in tinyint(1) DEFAULT '0' NOT NULL,
   session_admin tinyint(2) DEFAULT '0' NOT NULL,
   PRIMARY KEY (session_id),
   KEY session_user_id (session_user_id),
   KEY session_id_ip_user_id (session_id, session_ip, session_user_id)
);

# --------------------------------------------------------
#
# Table structure for table `phpbb_sessions_keys`
#
CREATE TABLE phpbb_sessions_keys (
  key_id varchar(32) DEFAULT '0' NOT NULL,
  user_id mediumint(8) DEFAULT '0' NOT NULL,
  last_ip varchar(8) DEFAULT '0' NOT NULL,
  last_login int(11) DEFAULT '0' NOT NULL,
  PRIMARY KEY (key_id, user_id),
  KEY last_login (last_login)
);

發表於 : 2006-04-21 09:01
jwxinst
幸好是session
沒了session再新增就好了
不過可能會影響某些外掛的功能
得小心一點

發表於 : 2006-04-21 12:25
Mett
JORDAN 寫:如果有刪除到就執行這些語法,如果有殘留乾脆刪除再重新建立這兩個資料表

代碼: 選擇全部

#
# Table structure for table 'phpbb_sessions'
#
# Note that if you're running 3.23.x you may want to make
# this table a type HEAP. This type of table is stored
# within system memory and therefore for big busy boards
# is likely to be noticeably faster than continually
# writing to disk ...
#
CREATE TABLE phpbb_sessions (
   session_id char(32) DEFAULT '' NOT NULL,
   session_user_id mediumint(8) DEFAULT '0' NOT NULL,
   session_start int(11) DEFAULT '0' NOT NULL,
   session_time int(11) DEFAULT '0' NOT NULL,
   session_ip char(8) DEFAULT '0' NOT NULL,
   session_page int(11) DEFAULT '0' NOT NULL,
   session_logged_in tinyint(1) DEFAULT '0' NOT NULL,
   session_admin tinyint(2) DEFAULT '0' NOT NULL,
   PRIMARY KEY (session_id),
   KEY session_user_id (session_user_id),
   KEY session_id_ip_user_id (session_id, session_ip, session_user_id)
);

# --------------------------------------------------------
#
# Table structure for table `phpbb_sessions_keys`
#
CREATE TABLE phpbb_sessions_keys (
  key_id varchar(32) DEFAULT '0' NOT NULL,
  user_id mediumint(8) DEFAULT '0' NOT NULL,
  last_ip varchar(8) DEFAULT '0' NOT NULL,
  last_login int(11) DEFAULT '0' NOT NULL,
  PRIMARY KEY (key_id, user_id),
  KEY last_login (last_login)
);
我找了半天........沒找到那個檔案耶 :oops:

請問大大講的這個要建立在哪呢?

謝謝大大回復 :oops:

發表於 : 2006-04-21 12:30
Mett
:-o 剛又執行update_to_latest
Information
Database type :: mysql4
Previous version :: 2.0.19
Updated version :: 2.0.19

Updating database schema
Progress :: No updates required

Updating data
Progress :: No updates where required

Updating version and optimizing tables
Progress :: . . Done
Result :: No errors

Update completed
又好了???? :-o

:-( 可是開index還是空白....

發表於 : 2006-04-21 13:15
Mett
大大說的是includes\sessions.php嗎?

是要修改這個檔? :oops:

真不好意思,一直問,可能沒人要理我了

發表於 : 2006-04-21 13:17
jwxinst

代碼: 選擇全部

CREATE TABLE phpbb_sessions ( 
   session_id char(32) DEFAULT '' NOT NULL, 
   session_user_id mediumint(8) DEFAULT '0' NOT NULL, 
   session_start int(11) DEFAULT '0' NOT NULL, 
   session_time int(11) DEFAULT '0' NOT NULL, 
   session_ip char(8) DEFAULT '0' NOT NULL, 
   session_page int(11) DEFAULT '0' NOT NULL, 
   session_logged_in tinyint(1) DEFAULT '0' NOT NULL, 
   session_admin tinyint(2) DEFAULT '0' NOT NULL, 
   PRIMARY KEY (session_id), 
   KEY session_user_id (session_user_id), 
   KEY session_id_ip_user_id (session_id, session_ip, session_user_id) 
); 

 
Table structure for table `phpbb_sessions_keys` 
 
CREATE TABLE phpbb_sessions_keys ( 
  key_id varchar(32) DEFAULT '0' NOT NULL, 
  user_id mediumint(8) DEFAULT '0' NOT NULL, 
  last_ip varchar(8) DEFAULT '0' NOT NULL, 
  last_login int(11) DEFAULT '0' NOT NULL, 
  PRIMARY KEY (key_id, user_id), 
  KEY last_login (last_login) 
);
應該可以直接從 mysql裡加....
難道你把session.php砍了?沒吧....

PS: 建議你, 請先備份回去, 把資料庫備回在執行所有UPDATE前的狀態

發表於 : 2006-04-21 13:34
Mett
當然沒砍啦~ :oops:

剛進去Administration Panel看到以下訊息
phpBB : Critical Error

Error creating new session

DEBUG MODE

SQL Error : 1016 Can't open file: 'phpbb_sessions.MYI'. (errno: 145)

INSERT INTO phpbb_sessions (session_id, session_user_id, session_start, session_time, session_ip, session_page, session_logged_in, session_admin) VALUES ('9515dab4b0dbedae128a12d3af90de13', -1, 1145597070, 1145597070, 'daf6d4b6', 0, 0, 0)

Line : 189
File : sessions.php

jwxinst大大說的是從MYSQL直接新增指令?
剛在我的MYADMIN那邊有看phpbb_sessions

顯示也是錯誤
Can't open file: 'phpbb_sessions.MYI'. (errno: 145)

錯誤
SQL 語法:

SHOW KEYS FROM `phpbb_sessions` ;


MySQL 傳回:

#1016 - Can't open file: 'phpbb_sessions.MYI'. (errno: 145)

是將JORDAN大大PO的那個語法寫進phpbb_sessions裡面覆蓋過去就好了嗎?

謝謝大大回復 :-D

發表於 : 2006-04-21 13:52
阿維
你將空間的帳號密碼用PM告訴我吧,乾脆我來處理比較快... =.="
=-=-=-=-=-=-=-=-=-=-=
你的phpbb_sessions資料表出現"使用中"的訊息
反正很少有外掛會用到這個資料表,所以我把它砍了重新建立,現在已經沒問題了 ;-)

發表於 : 2006-04-21 15:23
Mett
:-D :-D :-D :-D
真是感謝JORDAN大大~~~

感激不盡~~ :lol:

網站又活啦~~ :-D :-D :-D

發表於 : 2006-04-21 18:49
Mowd
通常會這樣是因為當有人正在登入論壇時,Mysql忽然掛掉或是電腦當機或重開機,就會出現session table不正確的訊息

這時候只要進去phpMyAdmin,選擇修復資料表就好了

因為我偶爾也會發生這樣的情形,提供做參考。

發表於 : 2006-04-21 18:59
chiouss
Mowd 寫:通常會這樣是因為當有人正在登入論壇時,Mysql忽然掛掉或是電腦當機或重開機,就會出現session table不正確的訊息

這時候只要進去phpMyAdmin,選擇修復資料表就好了

因為我偶爾也會發生這樣的情形,提供做參考。
這種事情不應該這麼容易發生吧? 冏