Download
We're evolving to serve you better! This current forum has transitioned to read-only mode. For new discussions, support, and engagement, we've moved to GitHub Discussions.

Hang when trying to upload site via FTP

  • #6225
    Avatar photo[anonymous]

    Hi,

    I’ve been working successfully with Publii, it’s really a great piece of software. The site has gotten quite big and unfortunately lately the upload via FTP does not work anymore. “Test connection” in Tools works fine, but the deployment just hangs.

    In the deployment-errors.log I see the following:

    <--- Last few GCs --->
    
    [2292:0000039C00000000]     4026 ms: Scavenge 208.6 (228.8) -> 208.6 (228.8) MB, 47.3 / 0.0 ms  (average mu = 0.990, current mu = 0.990) allocation failure 
    [2292:0000039C00000000]     6684 ms: Mark-sweep 400.6 (420.8) -> 352.5 (372.9) MB, 417.7 / 0.0 ms  (+ 1.1 ms in 2 steps since start of marking, biggest step 0.8 ms, walltime since start of marking 3798 ms) (average mu = 0.928, current mu = 0.913) allocati
    
    <--- JS stacktrace --->
    
    FATAL ERROR: invalid table size Allocation failed - JavaScript heap out of memory
     1: 00007FF69FAC2F76 node::Buffer::New+47254
     2: 00007FF69FAC3175 node::Buffer::New+47765
     3: 00007FF69D8A1753 v8::internal::Version::GetVersion+803
     4: 00007FF69D8A16F1 v8::internal::Version::GetVersion+705
     5: 00007FF69DA44823 cppgc::internal::GlobalGCInfoTable::GCInfoFromIndex+195363
     6: 00007FF69DC33212 v8::Platform::SystemClockTimeMillis+1174690
     7: 00007FF69DC338BC v8::Platform::SystemClockTimeMillis+1176396
     8: 00007FF69DBABB60 v8::Platform::SystemClockTimeMillis+620016
     9: 00007FF69DC0503C v8::Platform::SystemClockTimeMillis+985804
    10: 00007FF69DC4501E v8::Platform::SystemClockTimeMillis+1247918
    11: 00007FF69DBF851B v8::Platform::SystemClockTimeMillis+933803
    12: 00007FF69DBF41FF v8::Platform::SystemClockTimeMillis+916623
    13: 00007FF69DBF8948 v8::Platform::SystemClockTimeMillis+934872
    14: 00007FF69DD7370F v8::internal::TickSample::print+497999
    15: 00007FF69E30961C v8_inspector::V8StackTraceId::ToString+3490316
    16: 00007FF69E336001 v8_inspector::V8StackTraceId::ToString+3673073
    17: 00007FF69E32E3D2 v8_inspector::V8StackTraceId::ToString+3641282
    18: 0000039C002355A9 
    

    The backup of the site is 2.5GB and some of the files are quite largeish (250 MB). Could size be an issue? I’m running v.0.38.3 (build 14238) on Windows.

    Thank you,

    Yves

    #6261
    Avatar photo[anonymous]

    Hi Yves,

    Well – it is a really big website and I suppose that your files are a reason.

    In such case I recommend the following flow:

    1) Switch to the manual deployment method under server settings

    2) Sync website – you will get output files of your website

    3) Upload the website files with your favourite FTP program

    4) Switch to the previous FTP method

    5) Now you should be able to sync smaller updates without issues with FTP

    #6297
    Avatar photo[anonymous]

    Hi Tomasz,

    Thanks for the insights and the workaround. Deleting the big files from the project and then synching manually once did the trick and everything works great again.

    Thanks for the help,

    Yves