Hello,
I am merging two forums together via the tutorial present here.
I’m getting stuck on the command gunzip < /path/to/data/other-2018-08-02-134227-v2018xxx.tar.gz | psql -d copyme
It returns me plenty of lines with import errors in unintelligible characters.
Here are the steps performed:
- Discourse installation via official method on VPS.
- Import via GUI of the backup to merge (forumother)
- Backup of the latter (to have a backup with the latest version of discourse)
- Import of the backup of the destination forum (forumdest)
- Import of the backup of
forumothervia SFTP in the folder/var/discourse/shared/standalone/backups/default.
Then I go to the above folder and run the command tar xvzf forumother.tar.gz (with the real name of the backup).
Direction cd /var/discourse then ./launcher enter app
sudo -u postgres psql and CREATE DATABASE "copyme" ENCODING = 'utf8'; and I quit with q
It’s now that I’m stuck.
The command gunzip < public/backups/default/forumother.tar.gz | psql -d copyme does not work as it is.
The error is psql: error: connection to server on socket "/var/run/postgresql/.s.PGSQL.5432" failed: FATAL: role "root" does not exist
I can see that this is a connection problem, but I don’t see how to solve it.
I tried logging in as the postgres user su - postgres and then running the command gunzip ... but that’s when the command output is completely inconsistent.
postgres@testforum-app:~$ gunzip < /var/www/discourse/public/backups/default/forum-francophon
e-home-assistant-2022-04-24-120337-v20220407195246.tar.gz | psql -d copyme3
invalid command \W
invalid command \IeY┴WPC<P%£6◆BP␌U@Q█5
␋┼┴▒┌␋␍ ␌└└▒┼␍ \
␋┼┴▒┌␋␍ ␌└└▒┼␍ \]
␋┼┴▒┌␋␍ ␌└└▒┼␍ \FMݤ!≥"≠±↓QʏC MHȽ◆)E„/M
␋┼┴▒┌␋␍ ␌└└▒┼␍ \
␋┼┴▒┌␋␍ ␌└└▒┼␍ \
ERROR: ␋┼┴▒┌␋␍ ␉≤├␊ ␊─┤␊┼␌␊ ° ␊┼␌␍␋┼± "UTF8": █│␊° █│37 █│49
ERROR: ␋┼┴▒┌␋␍ ␉≤├␊ ␊─┤␊┼␌␊ ° ␊┼␌␍␋┼± "UTF8": █│␉␉
␋┼┴▒┌␋␍ ␌└└▒┼␍ \лT4٩3┼←
␋┼┴▒┌␋␍ ␌└└▒┼␍ \^E C◆≥]B2Ɣ?8[N→^G9← @ ±4?W␌Y°O͖↓HY┬4
ERROR: ␋┼┴▒┌␋␍ ␉≤├␊ ␊─┤␊┼␌␊ ° ␊┼␌␍␋┼± "UTF8": █│␉2
...
invalid command \UWXJ&qkW*S Qy2漆% > N≤OI2·^;├
␋┼┴▒┌␋␍ ␌└└▒┼␍ \2d-ɸjrR*֬
S3
invalid command \VI
invalid command \}Jݐ
invalid command \BQNr|΅tU~#_k#D,WHfqtC
invalid command \ syJ x%
invalid command \E q
invalid command \-KmJ
invalid command \
invalid command \/ly=}E~ԚYj nO
invalid command \SM!{Co ~UH^x)*O}9vUǙ k}LQ
invalid command \eH<= g TR P R 1}{~/t!wiw hӒC ґJmCĥ=;O^p*-
invalid command \ gq{cr}N;.
invalid command \2p3a - . C:m _Y @c<4/mvΩߵj]SޙU"O}$[
invalid command \)
invalid command \
invalid command \WHElnHBDm%?PBFrOڙ}d"
invalid command \P jsחPm q J[B @$Wt* ! &|Zz))Q6AJ Y%!/6=JRJBPþA)YTZ┘=!M^␉CO)→└␋9 ┤E▒5█E≤Pі
T│ȐOȾ B)W┌Ad : }1,kNDoO ' G^W5 :B␊I│7!N;─À @#┘
┼┴▒┌␋␍ ␌└└▒┼␍ \ 6◆3
␋┼┴▒┌␋␍ ␌└└▒┼␍ \2�Ψ)VD4π]
ERROR: ␋┼┴▒┌␋␍ ␉≤├␊ ␊─┤␊┼␌␊ ° ␊┼␌␍␋┼± "UTF8": █│89
├±␊@├␊├°┤└↑▒:·$
I tried to search on the forum, but I didn’t find anything on this.
So I count on your help and thank you in advance.
PS: My English is bad, so it’s possible that I’m not using the right words for a good search on the forum or I’m misinterpreting the tutorial quoted at the beginning of this post.
مرحباً،
أنا أقوم بدمج منتدين معًا عبر البرنامج التعليمي الموجود هنا.
أواجه صعوبة في الأمر gunzip < /path/to/data/other-2018-08-02-134227-v2018xxx.tar.gz | psql -d copyme
إنه يعيد لي العديد من الأسطر مع أخطاء استيراد بأحرف غير مفهومة.
هذه هي الخطوات التي تم تنفيذها:
- تثبيت Discourse بالطريقة الرسمية على VPS.
- الاستيراد عبر واجهة المستخدم الرسومية للنسخة الاحتياطية المراد دمجها (منتدى آخر).
- نسخة احتياطية للأخير (للحصول على نسخة احتياطية بأحدث إصدار من Discourse).
- استيراد النسخة الاحتياطية للمنتدى الوجهة (منتدى الوجهة).
- استيراد النسخة الاحتياطية لـ
منتدى آخرعبر SFTP في المجلد/var/discourse/shared/standalone/backups/default.
ثم أذهب إلى المجلد أعلاه وأقوم بتشغيل الأمر tar xvzf forumother.tar.gz (مع الاسم الحقيقي للنسخة الاحتياطية).
الاتجاه cd /var/discourse ثم ./launcher enter app
sudo -u postgres psql و CREATE DATABASE "copyme" ENCODING = 'utf8'; وأخرج باستخدام q
هنا أواجه المشكلة.
الأمر gunzip < public/backups/default/forumother.tar.gz | psql -d copyme لا يعمل كما هو.
الخطأ هو psql: error: connection to server on socket "/var/run/postgresql/.s.PGSQL.5432" failed: FATAL: role "root" does not exist
أرى أن هذه مشكلة اتصال، لكنني لا أرى كيف يمكن حلها.
حاولت تسجيل الدخول كمستخدم postgres su - postgres ثم تشغيل الأمر gunzip ... ولكن هذا هو الوقت الذي يكون فيه ناتج الأمر غير متناسق تمامًا.
postgres@testforum-app:~$ gunzip < /var/www/discourse/public/backups/default/forum-francophon
e-home-assistant-2022-04-24-120337-v20220407195246.tar.gz | psql -d copyme3
invalid command \W
invalid command \IeY┴WPC<P%£6◆BP␌U@Q█5
␋┼┴▒┌␋␍ ␌└└▒┼␍ \
␋┼┴▒┌␋␍ ␌└└▒┼␍ \]
␋┼┴▒┌␋␍ ␌└└▒┼␍ \FMݤ!≥"≠±↓QʏC MHȽ◆)E„/M
␋┼┴▒┌␋␍ ␌└└▒┼␍ \
␋┼┴▒┌␋␍ ␌└└▒┼␍ \
ERROR: ␋┼┴▒┌␋␍ ␉≤├␊ ␊─┤␊┼␌␊ ° ␊┼␌␍␋┼± "UTF8": █│␊° █│37 █│49
ERROR: ␋┼┴▒┌␋␍ ␉≤├␊ ␊─┤␊┼␌␊ ° ␊┼␌␍␋┼± "UTF8": █│␉␉
␋┼┴▒┌␋␍ ␌└└▒┼␍ \лT4٩3┼←
␋┼┴▒┌␋␍ ␌└└▒┼␍ \^E C◆≥]B2Ɣ?8[N→^G9← @ ±4?W␌Y°O͖↓HY┬4
ERROR: ␋┼┴▒┌␋␍ ␉≤├␊ ␊─┤␊┼␌␊ ° ␊┼␌␍␋┼± "UTF8": █│␉2
...
invalid command \UWXJ&qkW*S Qy2漆% > N≤OI2·^;├
␋┼┴▒┌␋␍ ␌└└▒┼␍ \2d-ɸjrR*֬
S3
invalid command \VI
invalid command \}Jݐ
invalid command \BQNr|΅tU~#_k#D,WHfqtC
invalid command \ syJ x%
invalid command \E q
invalid command \-KmJ
invalid command \
invalid command \/ly=}E~ԚYj nO
invalid command \SM!{Co ~UH^x)*O}9vUǙ k}LQ
invalid command \eH<= g TR P R 1}{~/t!wiw hӒC ґJmCĥ=;O^p*-
invalid command \ gq{cr}N;.
invalid command \2p3a - . C:m _Y @c<4/mvΩߵj]SޙU"O}$[
invalid command \)
invalid command \
invalid command \WHElnHBDm%?PBFrOڙ}d"
invalid command \P jsחPm q J[B @$Wt* ! &|Zz))Q6AJ Y%!/6=JRJBPþA)YTZ┘=!M^␉CO)→└␋9 ┤E▒5█E≤Pі
T│ȐOȾ B)W┌Ad : }1,kNDoO ' G^W5 :B␊I│7!N;─À @#┘
┼┴▒┌␋␍ ␌└└▒┼␍ \ 6◆3
␋┼┴▒┌␋␍ ␌└└▒┼␍ \2�Ψ)VD4π]
ERROR: ␋┼┴▒┌␋␍ ␉≤├␊ ␊─┤␊┼␌␊ ° ␊┼␌␍␋┼± "UTF8": █│89
├±␊@├␊├°┤└↑▒:·$
لقد حاولت البحث في المنتدى، لكنني لم أجد شيئًا حول هذا الموضوع.
لذا، أعتمد على مساعدتكم وأشكركم مقدمًا.
ملاحظة: لغتي الإنجليزية سيئة، لذلك من الممكن أنني لا أستخدم الكلمات الصحيحة للبحث الجيد في المنتدى أو أنني أسيء تفسير البرنامج التعليمي المذكور في بداية هذا المنشور.