FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » FUDforum Development » Bug Reports » import forum data problem
Show: Today's Messages :: Polls :: Message Navigator
Switch to threaded view of this topic Create a new topic Submit Reply
icon9.gif  import forum data problem [message #5949] Sat, 28 September 2002 05:07 Go to next message
artur4 is currently offline  artur4   United States
Messages: 20
Registered: September 2002
Karma: 0
Junior Member
When I'm trying to specify backup file with no path like:
FUDforum_28_09_2002-12:56.fud.gz, I get an error, that file doen't exist. If I specify the path, like:

/opt/apache/htdocs/forum/tmp/FUDforum_28_09_2002-12:56.fud.gz

I get the following:


Commencing restore of data files
ERROR: Directory '/opt/apache/htdocs/forum//opt/apache/htdocs/FUDforum2/messages' does not exist and the import script was unable to create it
Unable to open /opt/apache/htdocs/forum//opt/apache/htdocs/FUDforum2/messages/private for write
ERROR: Directory '/opt/apache/htdocs/forum//opt/apache/htdocs/FUDforum2/messages' does not exist and the import script was unable to create it
Unable to open /opt/apache/htdocs/forum//opt/apache/htdocs/FUDforum2/messages/msg_1 for write
ERROR: Directory '/opt/apache/htdocs/forum//opt/apache/htdocs/FUDforum2/include/theme/defaul t' does not exist and the import script was unable to create it
Unable to open /opt/apache/htdocs/forum//opt/apache/htdocs/FUDforum2/include/theme/default /tz.inc for write
ERROR: Directory '/opt/apache/htdocs/forum//opt/apache/htdocs/FUDforum2/include/theme/defaul t' does not exist and the import script was unable to create it


Please help.
Re: import forum data problem [message #5951 is a reply to message #5949] Sat, 28 September 2002 14:18 Go to previous messageGo to next message
Ilia is currently offline  Ilia   Canada
Messages: 13241
Registered: January 2002
Karma: 0
Senior Member
Administrator
Core Developer
Looks likes a simple permissions problems to me, the needed directories simply do not exist.

FUDforum Core Developer
Re: import forum data problem [message #5969 is a reply to message #5951] Sun, 29 September 2002 00:23 Go to previous messageGo to next message
artur4 is currently offline  artur4   United States
Messages: 20
Registered: September 2002
Karma: 0
Junior Member
prottoss wrote on Sat, 28 September 2002 10:18

Looks likes a simple permissions problems to me, the needed directories simply do not exist.


It seems a wrong path, the real root directory is
/opt/apache/htdocs/forum, that is a link to /opt/apache/htdocs/FUDforum2,
but it tries to get another path like:
/opt/apache/htdocs/forum//opt/apache/htdocs/FUDforum2/messages/private

All the permissions are all right. When I run successfull backup and at once trying to import it, I get the above errors. Actually I got the errors for all the files, but didn't specify them in the report.
Re: import forum data problem [message #5975 is a reply to message #5969] Sun, 29 September 2002 14:48 Go to previous messageGo to next message
Ilia is currently offline  Ilia   Canada
Messages: 13241
Registered: January 2002
Karma: 0
Senior Member
Administrator
Core Developer
Which version of FUDforum are you running, this is something that was an issue in older versions. Also, was the datadump made from the same forum version or different one, in case of the later, which version?

FUDforum Core Developer
Re: import forum data problem [message #5978 is a reply to message #5975] Sun, 29 September 2002 16:09 Go to previous messageGo to next message
artur4 is currently offline  artur4   United States
Messages: 20
Registered: September 2002
Karma: 0
Junior Member
prottoss wrote on Sun, 29 September 2002 10:48

Which version of FUDforum are you running, this is something that was an issue in older versions. Also, was the datadump made from the same forum version or different one, in case of the later, which version?


The version is the latest stable one: FUDforum 2.3.1
I was using the same FUDforum version for backup and import.
Re: import forum data problem [message #5992 is a reply to message #5978] Mon, 30 September 2002 15:27 Go to previous messageGo to next message
Ilia is currently offline  Ilia   Canada
Messages: 13241
Registered: January 2002
Karma: 0
Senior Member
Administrator
Core Developer
Fixed in CVS, thanks for the bug report.

FUDforum Core Developer
Re: import forum data problem [message #5996 is a reply to message #5992] Mon, 30 September 2002 18:37 Go to previous messageGo to next message
artur4 is currently offline  artur4   United States
Messages: 20
Registered: September 2002
Karma: 0
Junior Member
Thanks.
Re: import forum data problem [message #5997 is a reply to message #5996] Mon, 30 September 2002 18:47 Go to previous messageGo to next message
artur4 is currently offline  artur4   United States
Messages: 20
Registered: September 2002
Karma: 0
Junior Member
So where was the problem in the backup or import. Can I import the datadump from current 2.3.1 version to the new one?
Re: import forum data problem [message #5998 is a reply to message #5997] Mon, 30 September 2002 19:17 Go to previous messageGo to next message
Ilia is currently offline  Ilia   Canada
Messages: 13241
Registered: January 2002
Karma: 0
Senior Member
Administrator
Core Developer
Well, there is a slight problem with that. The datadump is bad because of a bug in the dump script not the importer.
You can however fix the problem fairly easily.

decompress '/opt/apache/htdocs/forum/tmp/FUDforum_28_09_2002-12:56.fud.gz' using gzip utility.

then run the following script:

perl -p -i -e 's!/opt/apache/htdocs/forum/!!g' FUDforum_28_09_2002-12:56.fud

This will modify the file and remove all /opt/apache/htdocs/forum/.


FUDforum Core Developer
Re: import forum data problem [message #6009 is a reply to message #5998] Mon, 30 September 2002 19:57 Go to previous messageGo to next message
artur4 is currently offline  artur4   United States
Messages: 20
Registered: September 2002
Karma: 0
Junior Member
The bug doesn't seem to be fixed. In the new version I lost bodies for all the messages. However, I'm still able to see the subject.

I tried to run datadump - import with the new version and still got the following:


Commencing restore of data files
ERROR: Directory '/opt/apache/htdocs/forum//opt/apache/htdocs/FUDforum21/adm' does not exist and the import script was unable to create it
Unable to open /opt/apache/htdocs/forum//opt/apache/htdocs/FUDforum21/adm/admdelfrm.php for write
ERROR: Directory '/opt/apache/htdocs/forum//opt/apache/htdocs/FUDforum21/adm' does not exist and the import script was unable to create it
Unable to open /opt/apache/htdocs/forum//opt/apache/htdocs/FUDforum21/adm/admlog.php for write
ERROR: Directory '/opt/apache/htdocs/forum//opt/apache/htdocs/FUDforum21/adm' does not exist and the import script was unable to create it
Unable to open /opt/apache/htdocs/forum//opt/apache/htdocs/FUDforum21/adm/admerr.php for write
ERROR: Directory '/opt/apache/htdocs/forum//opt/apache/htdocs/FUDforum21/adm' does not exist and the import script was unable to create it
Unable to open /opt/apache/htdocs/forum//opt/apache/htdocs/FUDforum21/adm/admmassemail.php for write
ERROR: Directory '/opt/apache/htdocs/forum//opt/apache/htdocs/FUDforum21/adm' does not exist and the import script was unable to create it
Unable to open /opt/apache/htdocs/forum//opt/apache/htdocs/FUDforum21/adm/admmime.php for write
ERROR: Directory '/opt/apache/htdocs/forum//opt/apache/htdocs/FUDforum21/adm' does not exist and the import script was unable to create it
Unable to open /opt/apache/htdocs/forum//opt/apache/htdocs/FUDforum21/adm/admext.php for write
ERROR: Directory '/opt/apache/htdocs/forum//opt/apache/htdocs/FUDforum21/adm' does not exist and the import script was unable to create it
Unable to open /opt/apache/htdocs/forum//opt/apache/htdocs/FUDforum21/adm/admmodfrm.php for write
ERROR: Directory '/opt/apache/htdocs/forum//opt/apache/htdocs/FUDforum21/adm' does not exist and the import script was unable to create it
Unable to open /opt/apache/htdocs/forum//opt/apache/htdocs/FUDforum21/adm/admclose.html for write
ERROR: Directory '/opt/apache/htdocs/forum//opt/apache/htdocs/FUDforum21/adm' does not exist and the import script was unable to create it
...



Re: import forum data problem [message #6010 is a reply to message #6009] Mon, 30 September 2002 20:01 Go to previous messageGo to next message
Ilia is currently offline  Ilia   Canada
Messages: 13241
Registered: January 2002
Karma: 0
Senior Member
Administrator
Core Developer
Did you use an old datadump? If so that obviously you'd have this problem cause as I've explained before the bug was in the DUMP script not the IMPORT script.

FUDforum Core Developer
Re: import forum data problem [message #6023 is a reply to message #6010] Tue, 01 October 2002 01:40 Go to previous messageGo to next message
artur4 is currently offline  artur4   United States
Messages: 20
Registered: September 2002
Karma: 0
Junior Member
Ok, now I did everything more carefull, but the perl script didn't work for me, so I did the following:

sed 's/\/opt\/apache\/htdocs\/FUDforum2//g' dumpdata_file > dumpdata_new

Then I imported the new file using the web interface and all the database and messages were all right.

The only problem was, that all the "gif" files were broken (I don't know why) and I had to restore them manually. Now everything seems to be all right.

Thanks.
Re: import forum data problem [message #6024 is a reply to message #6023] Tue, 01 October 2002 01:44 Go to previous message
Ilia is currently offline  Ilia   Canada
Messages: 13241
Registered: January 2002
Karma: 0
Senior Member
Administrator
Core Developer
Okie, the gif files are binary files, it is possible that the sed or my perl script had an adverse affect on them. Either way the problem which caused the original bug has been solved in the CVS and the fix will be avaliable in the 2.3.2 release due sometime this week.

FUDforum Core Developer
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: very terrible bug
Next Topic: Category Collapsing
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Tue Nov 26 11:16:19 GMT 2024

Total time taken to generate the page: 0.03829 seconds