รูปภาพแจ้งข่าว ทางเว็บบอร์ด openerpthailand.org ได้เปลี่ยนระบบเว็บบอร์ด ใหม่เป็น phpBB 3.1
  1. บุคคลทั่วไป จะไม่สามารถเข้าอ่านกระทู้บางบอร์ด แนะนำให้ท่าน สมัครสมาชิกคลิกตามลิงค์นี้
  2. สมาชิกใหม่ ถ้ายังไม่ได้แนะนำตัวจะไม่สามารถ ตั้งกระทู้ และ ดาวน์โหลด ไฟล์จากเว็บบอร์ดได้ ท่านจำเป็นต้องแนะนำตัวที่หมวดนี้
  3. ถ้ามีปัญหาการใช้งาน หรือ ข้อเสนอแนะใดๆ แนะนำได้ที่นี่
  4. ปุ่มรูปหัวใจใต้โพส แต่ละโพส ท่านสามารถกดเพื่อสื่อถึงคนโพสนั้นถูกใจท่าน
  5. ห้ามลง E-mail, เบอร์โทรส่วนตัว, Line id หรือข้อมูลส่วนตัวอื่นๆ เพื่อป้องกันการแอบอ้างและโฆษณาแฝง โดยสามารถติดต่อสมาชิกท่านอื่นผ่านระบบ PM ของบอร์ด
  6. ท่านสามารถปิดการแจ้งนี้ได้ ที่มุมขวาของกล่องข้อความนี้

บุคคลทั่วไปสามาเข้าสู่ระบบ ด้วย Account ของ FaceBook ได้แล้ว คลิกที่นี่ได้เลย

มีปัญหาเวลาเข้าเว็บ Open ERP ขึ้น xmlhttprequest error

ตอบกระทู้


คำถามนี้ เพื่อป้องกันการส่งแบบอัตโนมัติจากสแปมบอท
รูปแสดงอารมณ์
:D :) ;) :( :o :shock: :? 8-) :lol: :x :P :oops: :cry: :evil: :twisted: :roll: :!: :?: :idea: :arrow: :| :mrgreen: :geek: :ugeek:

BBCode เปิด
[img] เปิด
[flash] ปิด
[url] เปิด
[Smile icon] เปิด

กระทู้แนะนำ
   

มุมมองที่ขยายได้ กระทู้แนะนำ: มีปัญหาเวลาเข้าเว็บ Open ERP ขึ้น xmlhttprequest error

Re: มีปัญหาเวลาเข้าเว็บ Open ERP ขึ้น xmlhttprequest error

โพสต์ โดย pasakorn » จันทร์ 10 ธ.ค. 2012 11:09 pm

สวัสดีครับ เรียบร้อยแล้วครับ ใช้งานได้แล้วครับ ดังนี้ครับ เปลี่ยนเป็น Ubantu 12.04 แล้วทำการลงใหม่ตาม step ดังนี้
Root# sudo apt-get update
Root# sudo apt-get dist-upgrade
แล้วทำการสร้าง User
Root# sudo adduser --system --home=/opt/openerp --group openerp
ติดตั้ง Postgresql
Root# sudo apt-get install postgresql
เสร็จแล้ว เรียกใช้งาน
Root# sudo su - postgres
Postgres$ createuser --createdb --username postgres --no-createrole --no-superuser --pwprompt openerp
Enter password for new role: ********
Enter it again: ********
Postgres$ exit

แต่ตอน Install component
Root# sudo apt-get install python-dateutil python-feedparser python-gdata \
python-ldap python-libxslt1 python-lxml python-mako python-openid python-psycopg2 \
python-pybabel python-pychart python-pyparsing python-reportlab \
python-simplejson python-tz python-vatnumber python-vobject python-webdav \
python-werkzeug python-xlwt python-yaml python-zsi
ผมเอา python-pydot ออก เพราะตอนใส่ไปครบ แล้วมัน Error แต่แยกลงทีหลัง กลับไม่ Error (งงเหมือนกันครับ)
จากนั้นก็
Root# wget http://nightly.openerp.com/6.1/releases ... 1-1.tar.gz
Root# cd /opt/openerp
Root# sudo tar xvf ~/openerp-6.1-1.tar.gz
Root# sudo chown -R openerp: *
Root# sudo cp -a openerp-6.1-1 server -- ผมลองว่าเวลา upgrade ก็แค่เอาไฟล์ไปทับ น่าจะได้นะครับ ..เดียวจะลอง)
Root# sudo cp /opt/openerp/server/install/openerp-server.conf /etc/
Root# sudo chown openerp: /etc/openerp-server.conf
Root# sudo chmod 640 /etc/openerp-server.conf
Root# sudo vi /etc/openerp-server.conf
แล้วก็ใส่คำสั่ง logfile = /var/log/openerp/openerp-server.log แล้วก็ Save
ทดลอง Run Open ERP
Root# sudo su - openerp -s /bin/bash
openerp$ /opt/openerp/server/openerp-server

สำเร็จครับ Run ได้แล้ว จากนั้นก็มาทำ Script
Root# sudo vi /etc/init.d/openerp-server
เอา Script ตามนี้ใส่ไป(ผมได้จากเว็บเมืองนอก ที่เค้าทำไว้)
---------------------------------------------------------------------------------------------------------------------


#!/bin/sh

### BEGIN INIT INFO
# Provides: openerp-server
# Required-Start: $remote_fs $syslog
# Required-Stop: $remote_fs $syslog
# Should-Start: $network
# Should-Stop: $network
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Enterprise Resource Management software
# Description: Open ERP is a complete ERP and CRM software.
### END INIT INFO

PATH=/bin:/sbin:/usr/bin
DAEMON=/opt/openerp/server/openerp-server
NAME=openerp-server
DESC=openerp-server

# Specify the user name (Default: openerp).
USER=openerp

# Specify an alternate config file (Default: /etc/openerp-server.conf).
CONFIGFILE="/etc/openerp-server.conf"

# pidfile
PIDFILE=/var/run/$NAME.pid

# Additional options that are passed to the Daemon.
DAEMON_OPTS="-c $CONFIGFILE"

[ -x $DAEMON ] || exit 0
[ -f $CONFIGFILE ] || exit 0

checkpid() {
[ -f $PIDFILE ] || return 1
pid=`cat $PIDFILE`
[ -d /proc/$pid ] && return 0
return 1
}

case "${1}" in
start)
echo -n "Starting ${DESC}: "

start-stop-daemon --start --quiet --pidfile ${PIDFILE} \
--chuid ${USER} --background --make-pidfile \
--exec ${DAEMON} -- ${DAEMON_OPTS}

echo "${NAME}."
;;

stop)
echo -n "Stopping ${DESC}: "

start-stop-daemon --stop --quiet --pidfile ${PIDFILE} \
--oknodo

echo "${NAME}."
;;

restart|force-reload)
echo -n "Restarting ${DESC}: "

start-stop-daemon --stop --quiet --pidfile ${PIDFILE} \
--oknodo

sleep 1

start-stop-daemon --start --quiet --pidfile ${PIDFILE} \
--chuid ${USER} --background --make-pidfile \
--exec ${DAEMON} -- ${DAEMON_OPTS}

echo "${NAME}."
;;

*)
N=/etc/init.d/${NAME}
echo "Usage: ${NAME} {start|stop|restart|force-reload}" >&2
exit 1
;;
esac

exit 0

-----------------------------------------------------------------------------------------------------------------------------------
Root# sudo chmod 755 /etc/init.d/openerp-server
Root# sudo chown root: /etc/init.d/openerp-server
Root# sudo mkdir /var/log/openerp
Root# sudo chown openerp:root /var/log/openerp
มาถึงตอนลุ้นระทึกครับ
Root# sudo /etc/init.d/openerp-server start

แล้วก็มาเข้าเว็บที่เครื่องลูก http://IP_Address:8069/

ก็สำเร็จครับ สร้าง Database ได้ เข้าไปติดตั้ง แก้ไข Module ได้

ขอบพระคุณมากเลยครับ สำหรับคำแนะนำ

(Credit Web ที่ผมเอามาผสมผสาน นะครับ - http://elkafil.blogspot.com/2012/05/ins ... -1204.html)
( http://jayvora.blogspot.com/2012/03/how ... buntu.html )

Re: มีปัญหาเวลาเข้าเว็บ Open ERP ขึ้น xmlhttprequest error

โพสต์ โดย openerpthailand » จันทร์ 10 ธ.ค. 2012 4:01 pm

ubuntu เวอร์ชั่น 12.0 ครับ
ผมทดลอง OpenERP 6.1 ทั้ง เครื่อง Server และ กับ VPS ไม่มีปัญหาครับ

Re: มีปัญหาเวลาเข้าเว็บ Open ERP ขึ้น xmlhttprequest error

โพสต์ โดย pasakorn » จันทร์ 10 ธ.ค. 2012 2:36 pm

แนะนำเวอร์ชั่นไหนครับ ผมจะได้แจ้งกับทางด้าน VPS Hosting ครับ ขอบคุณครับ

Re: มีปัญหาเวลาเข้าเว็บ Open ERP ขึ้น xmlhttprequest error

โพสต์ โดย openerpthailand » จันทร์ 10 ธ.ค. 2012 2:12 pm

เวอร์ชั่น 10 ออกมานานแล้ว
ลองเปลี่ยน
/etc/apt/sources.list
ไปที่
http://us.archive.ubuntu.com/ubuntu

แนะนำหาทาง ใช้เวอร์ชั่นที่อัพเดดดีกว่าครับ เพราะถึงแก้ปัญหานี้ได้ก็อาจเจอปัญหา อื่นๆ ตามมาอีก

Re: มีปัญหาเวลาเข้าเว็บ Open ERP ขึ้น xmlhttprequest error

โพสต์ โดย pasakorn » อาทิตย์ 09 ธ.ค. 2012 10:58 pm

update ก่อนลงแล้วครับ หรือว่า source list ไม่ถูกต้องครับ
เนี่ยครับ
------------------------------------------------------------------------------------------
deb http://mirror1.ku.ac.th/ubuntu/ natty main restricted
deb-src http://mirror1.ku.ac.th/ubuntu/ natty main restricted

## Major bug fix updates produced after the final release of the
## distribution.
deb http://mirror1.ku.ac.th/ubuntu/ natty-updates main restricted
deb-src http://mirror1.ku.ac.th/ubuntu/ natty-updates main restricted

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team. Also, please note that software in universe WILL NOT receive any
## review or updates from the Ubuntu security team.
deb http://mirror1.ku.ac.th/ubuntu/ natty universe
deb-src http://mirror1.ku.ac.th/ubuntu/ natty universe
deb http://mirror1.ku.ac.th/ubuntu/ natty-updates universe
deb-src http://mirror1.ku.ac.th/ubuntu/ natty-updates universe

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team, and may not be under a free licence. Please satisfy yourself as to
## your rights to use the software. Also, please note that software in
## multiverse WILL NOT receive any review or updates from the Ubuntu
## security team.
deb http://mirror1.ku.ac.th/ubuntu/ natty multiverse
deb-src http://mirror1.ku.ac.th/ubuntu/ natty multiverse
deb http://mirror1.ku.ac.th/ubuntu/ natty-updates multiverse
deb-src http://mirror1.ku.ac.th/ubuntu/ natty-updates multiverse

## Uncomment the following two lines to add software from the 'backports'
## repository.
## N.B. software from this repository may not have been tested as
## extensively as that contained in the main release, although it includes
## newer versions of some applications which may provide useful features.
## Also, please note that software in backports WILL NOT receive any review
## or updates from the Ubuntu security team.
deb http://mirror1.ku.ac.th/ubuntu/ natty-backports main restricted universe multiverse
deb-src http://mirror1.ku.ac.th/ubuntu/ natty-backports main restricted universe multiverse
-------------------------------------------------------------------------------------------------------------------
ผมจะเช็คได้ไงครับ ว่า library อันไหนที่ใช่ของ Open ERP ครับ ขอบคุณครับ

Re: มีปัญหาเวลาเข้าเว็บ Open ERP ขึ้น xmlhttprequest error

โพสต์ โดย openerpthailand » อาทิตย์ 09 ธ.ค. 2012 10:50 pm

library ของ Ubantu เวอร์ชั่นที่ลงไป น่าจะไม่ใช่ เวอร์ชั่นที่ OpenERP เอามาใช้
ได้ update Ubantu ก่อนลง OpenERP หรือเปล่าครับ

Re: มีปัญหาเวลาเข้าเว็บ Open ERP ขึ้น xmlhttprequest error

โพสต์ โดย pasakorn » อาทิตย์ 09 ธ.ค. 2012 9:40 pm

/tmp เต็มจริงๆด้วยครับ ลบออกแล้ว ก็ run ขึ้น แต่ก็กลับมาเป็น Error แบบตอน Ubantu 10.10 อีกครับ
ผมเช่า VPS เค้าน่ะครับ แล้วเค้ารองรับได้แค่ Ubantu 11.04 ครับ จะแก้ปัญหาได้ยังไงบ้างครับ
งงมากเลยครับ
ผมลงตามเว็บนี้น่ะครับ
" http://jayvora.blogspot.com/2012/03/how ... buntu.html "
เคยลองแบบ ของคุณ Wichate "http://forum.ubuntuclub.com/forum/topic,23801.0.html"
คราวนี้มี Error ว่า user Openerp fail to access

งงครับ มึนไปหมดแล้ว

พัสกร

Re: มีปัญหาเวลาเข้าเว็บ Open ERP ขึ้น xmlhttprequest error

โพสต์ โดย openerpthailand » อาทิตย์ 09 ธ.ค. 2012 7:51 pm

tmp มีปัญหาครับ OpenERP เขียนไฟล์ใน tmp ไม่ได้
แต่ปกติ tmp น่าจะ 777 อยู่แล้ว ลองเช็คว่า tmp มีพื้นทืี่ว่างพอหรือเปล่า

ทำไมไม่ใช้ Ubuntu 12 ล่ะครับ เป็น LTS ด้วย
ผมใช้ตัวนี้อยู่ไม่มีปัญหาครับ
Ubuntu 12 , OpenERP 6.1

Re: มีปัญหาเวลาเข้าเว็บ Open ERP ขึ้น xmlhttprequest error

โพสต์ โดย pasakorn » อาทิตย์ 09 ธ.ค. 2012 7:32 pm

ใช้ Open ERP 6.1.1 ครับ run บน Ubantu 10.10 ครับ เลยลองใหม่ เปลี่ยนเป็น Ubantu 11.04 คราวนี้ขึ้นแบบนี้แทนครับ
500 Internal Error
error-web-openerp.jpg

ส่วนใน ssh มันขึ้นแบบนี้
OSError: [Errno 13] Permission denied: '/tmp/oe-sessions-openerp/tmpyOq70R.__wz_sess'
error-session-openerp.jpg


เลยงงเป็นไก่ตาแตกเลยครับ รบกวนแนะนำด้วยครับ ขอบคุณมากครับ

พัสกร

:( :( :( :(

Re: มีปัญหาเวลาเข้าเว็บ Open ERP ขึ้น xmlhttprequest error

โพสต์ โดย openerpthailand » อาทิตย์ 09 ธ.ค. 2012 1:19 am

OpenERP เวอร์ชั่นอะไรครับ
OS อะไรครับ

ข้างบน