Forum

Copied activity rem...
 
Notifications
Clear all

Copied activity remains associated with original project

13 Posts
2 Users
0 Reactions
9,814 Views
 Tim
(@bsmi)
Posts: 17
Active Member
Topic starter
 
[#2511]

Hi Babynus,
When I create copy of a project (in this case project id 67) associated activities copied but, except for the first one, the copies remain part of the original project. See attached screenshot showing the first activity assigned to correct new project highlighted with yellow and remaining activities circled in red. We can schedule some time to let you on my machine to show the problem if you are not able to replicate it. I am using version 5.0.2
Thank you.


 
Posted : 12 Aug 2015 22H21
(@babynus)
Posts: 14952
Member Admin
 

Cannot reproduce.
Could you check in log files if there is any error ?

Could you try and reproduce on Demo ?


 
Posted : 13 Aug 2015 1H28
 Tim
(@bsmi)
Posts: 17
Active Member
Topic starter
 

Hello Babynus,
Attached is the log file from yesterday. There are errors related to SQL command incorrect type and fields not found. Please review.
Thank you.


 
Posted : 13 Aug 2015 17H20
(@babynus)
Posts: 14952
Member Admin
 

Sorry, no log file attached (some format are forbidden, try and zip file)


 
Posted : 13 Aug 2015 18H43
 Tim
(@bsmi)
Posts: 17
Active Member
Topic starter
 

zipped file is attached
Thanks.


 
Posted : 13 Aug 2015 18H48
(@babynus)
Posts: 14952
Member Admin
 

I see many error between 12:40 up to 12:56
Did the tests occur during this period ?


 
Posted : 13 Aug 2015 20H05
(@babynus)
Posts: 14952
Member Admin
 

It is possible that you MySql timeout is too small.


 
Posted : 13 Aug 2015 20H10
 Tim
(@bsmi)
Posts: 17
Active Member
Topic starter
 

Yes. I did not do anything else yesterday.


 
Posted : 13 Aug 2015 20H10
 Tim
(@bsmi)
Posts: 17
Active Member
Topic starter
 

What it should be? Also it creates the records but assigns wrong projects. Does it assign project id after server confirms that record created??


 
Posted : 13 Aug 2015 20H16
(@babynus)
Posts: 14952
Member Admin
 

Check you MySql configuration, about timeouts.
For instance wait_timeout should possibly be increased.


 
Posted : 13 Aug 2015 20H17
(@babynus)
Posts: 14952
Member Admin
 

Other variables to check (I indicate default values):
interactive_timeout=28000
lock_wait_timeout=31536000
wait_timeout=28800


 
Posted : 13 Aug 2015 20H23
 Tim
(@bsmi)
Posts: 17
Active Member
Topic starter
 

Here is what I got from my hosting support:

MySQL connect timeout value is set to 10.
If you see error message 'MySQL server has gone away', it might be that your script is not optimized and makes too many connections to the database (or your website is very active, has many users online at the same time).
You may also get this error if your script executes heavy/slow MySQL queries.
First of all you should check if your database is well optimized and has indexes where needed. You should contact the script developers and ask assistance.


 
Posted : 14 Aug 2015 0H24
(@babynus)
Posts: 14952
Member Admin
 

Hi,

Issue is not about "connect timeout". 10 s for this is correct, as is it delay to get a connection to db.
Issue is about maintaining the connection. Defaut value in MySql is 8 hours (28800 seconds).
Your provider changed this value, and this is an issue for long treatments.
It forbids any "long time" process, such as batch treatments.
It is a choice of some "shared" hosting providers to avoid too hard load for single user, but may be an issue (as it is in this case).
No solution exists, unless changing provider.

NB : I agree that copy process is not really optimized; there is some work planned about this, not really easy as copy of projets is quite complex when you also copy assignments.


 
Posted : 14 Aug 2015 16H05
Share:

Scroll to Top