[DRE-maint] Bug#983924: GitLab 13.7.7: ERROR in <ttf-font-file> 1:0 Module parse failed: Unexpected character '' (1:0)

Pirate Praveen praveen at onenetbeyond.org
Wed Mar 3 15:12:47 GMT 2021



On 2021, മാർച്ച് 3 8:17:44 PM IST, Mike Gabriel <mike.gabriel at das-netzwerkteam.de> wrote:
>Hi Praveen,
>
>On  Mi 03 Mär 2021 15:38:46 CET, Pirate Praveen wrote:
>
>> On 2021, മാർച്ച് 3 7:54:13 PM IST, Mike Gabriel  
>> <mike.gabriel at das-netzwerkteam.de> wrote:
>>> Package: gitlab
>>> Version: 13.7.7-2~fto10+1
>>> Severity: serious
>>>
>>> Hi Praveen,
>>>
>>> I can't upgrade gitlab from 13.4.7-2~fto10+1, I get the below error
>>> messages (webpack and ttf fonts). Don't wonder about the /srv/gitlab
>>> paths, I have symlinked /var/lib/gitlab to /srv/gitlab (which always
>>> worked in the past) for better storage management.
>>
>> Can you share output of /usr/share/gitlab/node_modules ?
>>
>> It should be pointing to /var/lib/gitlab/node_modules.
>
>It does.
>
>> There was some changes in node_modules path to adapt to yarn 2.0 and  
>> node-modules plugin instead of yarn 1.0.
>
>Hmmm... How can I check this. If the symlink points to  
>/var/lib/gitlab/node_modules, then everything is fine? Or are more  
>checks required?

See if old directory /var/lib/gitlab/.node_modules is still present, if yes, that should be removed.

If that does not fix, backup yarn.lock and truncate -s0 yarn.lock to regenerate it.

Try manually running yarnpkg install (see /usr/lib/gitlab/scripts/rake-tasks.sh ) and webpack.

Another think you can do is to remove node_modules and let yarnpkg recreate it.

>> So it may be due to wrong paths. Another thing you can check is  
>> versions of node-katex node-babel7 etc see if new versions of any  
>> node modules are available.
>>
>> apt list --upgradable | grep node
>
>This shows nothing to be upgradeable.
>
>> Also make sure you have gitlab-apt-pin-preferences installed, which  
>> gives higher priority to required gitlab dependencies.
>
>gitlab-apt-pin-preferences is installed indeed.
>
>
>However, I see this when trying to update/dist-upgrade:
>
>root at snotra:~# LANG=C apt-get dist-upgrade
>Reading package lists... Done
>Building dependency tree
>Reading state information... Done
>Calculating upgrade... Done
>The following packages were automatically installed and are no longer  
>required:
>   libgo13 libgumbo1 libjs-uglify linux-image-5.6.0-0.bpo.2-amd64
>   linux-image-5.8.0-0.bpo.2-amd64 node-arr-diff node-arr-flatten  
>node-arr-union
>   node-array-unique node-base node-bluebird node-cache-base node-class-utils
>   node-collection-visit node-component-emitter node-concat-stream  
>node-copy-descriptor
>   node-css node-cyclist node-define-property node-expand-brackets  
>node-extend-shallow
>   node-extglob node-filename-regex node-flush-write-stream  
>node-for-in node-for-own
>   node-fragment-cache node-from2 node-get-value node-glob-base  
>node-has-value node-has-values
>   node-icss-replace-symbols node-is-dotfile node-is-equal-shallow  
>node-is-extendable
>   node-is-plain-object node-is-primitive node-lazy-cache  
>node-map-cache node-map-visit
>   node-mississippi node-mixin-deep node-node-uuid node-object-copy  
>node-object-visit
>   node-object.omit node-output-file-sync node-parallel-transform  
>node-parse-glob
>   node-pascalcase node-posix-character-classes node-regex-cache node-regex-not
>   node-repeat-element node-set-getter node-set-value node-snapdragon  
>node-static-extend
>   node-stream-each node-to-object-path node-to-regex node-typedarray  
>node-union-value
>   node-unset-value node-use ruby-daemons ruby-delayed-job  
>ruby-font-awesome-rails
>   ruby-uglifier
>Use 'apt autoremove' to remove them.

These can be removed if you like.p

>0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
>1 not fully installed or removed.
>After this operation, 0 B of additional disk space will be used.
>Do you want to continue? [Y/n]
>
>
>Mike

-- 
Sent from my Android device with K-9 Mail. Please excuse my brevity.



More information about the Pkg-ruby-extras-maintainers mailing list